Open Source 2D CAD
DL_MTextData Struct Reference

MText Data. More...

#include <dl_entities.h>

Public Member Functions

 DL_MTextData (double ipx, double ipy, double ipz, double dirx, double diry, double dirz, double height, double width, int attachmentPoint, int drawingDirection, int lineSpacingStyle, double lineSpacingFactor, const std::string &text, const std::string &style, double angle)
 Constructor. More...

Public Attributes

double angle
int attachmentPoint
 Attachment point. More...
double dirx
double diry
double dirz
int drawingDirection
 Drawing direction. More...
double height
double ipx
double ipy
double ipz
double lineSpacingFactor
 Line spacing factor. More...
int lineSpacingStyle
 Line spacing style. More...
std::string style
std::string text
double width

Detailed Description

MText Data.

Constructor & Destructor Documentation

DL_MTextData::DL_MTextData ( double  ipx,
double  ipy,
double  ipz,
double  dirx,
double  diry,
double  dirz,
double  height,
double  width,
int  attachmentPoint,
int  drawingDirection,
int  lineSpacingStyle,
double  lineSpacingFactor,
const std::string &  text,
const std::string &  style,
double  angle 


Parameters: see member variables.

Member Data Documentation

double DL_MTextData::angle

Rotation angle.

int DL_MTextData::attachmentPoint

Attachment point.

1 = Top left, 2 = Top center, 3 = Top right, 4 = Middle left, 5 = Middle center, 6 = Middle right, 7 = Bottom left, 8 = Bottom center, 9 = Bottom right

double DL_MTextData::dirx

X Coordinate of X direction vector.

double DL_MTextData::diry

Y Coordinate of X direction vector.

double DL_MTextData::dirz

Z Coordinate of X direction vector.

int DL_MTextData::drawingDirection

Drawing direction.

1 = left to right, 3 = top to bottom, 5 = by style

double DL_MTextData::height

Text height

double DL_MTextData::ipx

X Coordinate of insertion point.

double DL_MTextData::ipy

Y Coordinate of insertion point.

double DL_MTextData::ipz

Z Coordinate of insertion point.

double DL_MTextData::lineSpacingFactor

Line spacing factor.

0.25 .. 4.0

int DL_MTextData::lineSpacingStyle

Line spacing style.

1 = at least, 2 = exact

std::string DL_MTextData::style

Style string.

std::string DL_MTextData::text

Text string.

double DL_MTextData::width

Width of the text box.

The documentation for this struct was generated from the following file: