#include <gre/labelplacement.h>
Public Member Functions | |
| void | AddAttachment (const RVC::ELEMENT &element) |
| void | AddAttachment (const LABELATTACHMENT &attachment) |
| void | ComputeLabelExtents (MGD::CONTEXT *gc, REGION2D ®ion, bool bIgnoreLeaders=false) const |
| void | DeleteAttachment (const RVC::ELEMENT &element) |
| void | Detach () |
| ERRVALUE | Draw (GRE_LAYERDC *pDC, const COLOR *ForegroundColor=0) const |
| ERRVALUE | DrawSample (MGD::CONTEXT &gc, const COLOR *ForegroundColor=0, bool bDrawLeaders=true) const |
| const MILIST< LABELATTACHMENT > & | GetAttachments () const |
| double | GetBaseAngle () const |
| const POLYLINE & | GetBaseLine () const |
| bool | GetBaseLineStyle (LINESTYLE &) const |
| TEXTBASEORIGIN | GetBaseOrigin () const |
| const DPOINT2D & | GetBasePoint () const |
| bool | GetDrawBaseLine () const |
| GRE_LAYER * | GetLayer () const |
| const DPOINT2D & | GetOffset () const |
| const POINTSTYLE & | GetPointStyle () const |
| const SIMPLE_ARRAY< UINT8 > & | GetPointSymbol () const |
| double | GetPriority () const |
| const REGION2D & | GetRegion () const |
| const LABELSTYLE & | GetStyle () const |
| const DPOINT2D & | GetSymbolPoint () const |
| const MISTRING & | GetText () const |
| bool | HasPoint () const |
| bool | HasText () const |
| bool | IsAttached (const RVC::ELEMENT &elem) const |
| bool | IsAttached (ELEMTYPE ElemType, INT32 ElemNum) const |
| bool | IsLocked () const |
| LABELPLACE (const LABELPLACE &rhs) | |
| LABELPLACE () | |
| void | LockPosition (bool locked=true) |
| void | Move (const DPOINT2D &delta) |
| LABELPLACE & | operator= (const LABELPLACE &rhs) |
| void | SetBaseLine (const DPOINT2D &pt, double angle, TEXTBASEORIGIN origin) |
| void | SetBaseLine (const POLYLINE &baseline) |
| void | SetBaseLineStyle (const LINESTYLE &style) |
| void | SetCopyOnWrite (bool bCopyOnWrite=true) |
| void | SetDrawBaseLine (bool draw=true) |
| void | SetPoint (const DPOINT2D &location) |
| void | SetPointStyle (const POINTSTYLE &style) |
| void | SetPointSymbol (const RVC::STYLE::SYMBOLPATTERN &symbol) |
| void | SetPointSymbol (const SIMPLE_ARRAY< UINT8 > &symbol) |
| void | SetPriority (double priority) |
| void | SetRegion (const REGION2D ®ion) |
| void | SetStyle (const LABELSTYLE &style) |
| void | SetText (const MISTRING &str) |
| ~LABELPLACE () | |
Private Attributes | |
| bool | m_bCopyOnWrite |
| PRIV * | m_priv |
Other things we may need in this class: Flag to disallow moving - script for stacking label flags would want to prevent the optimizer from moving labels.
Definition at line 190 of file labelplacement.h.
|
|
Default constructor.
|
|
|
Copy constructor.
|
|
|
|
|
|
Add an element attachment for this label (no leader line).
|
|
|
Add an element attachment for this label.
|
|
||||||||||||||||
|
|
|
|
Remove the attachment information for a given element.
|
|
|
|
|
||||||||||||
|
Draw a label into a view.
|
|
||||||||||||||||
|
Draw a label into an arbitrary device.
|
|
|
Get the list of attachments.
|
|
|
|
|
|
|
|
|
Get the line style for drawing the baseline.
|
|
|
|
|
|
|
|
|
|
|
|
Get the layer for this label. Note: you don't have to set the layer because LABLEPLACEMENT::Add does it for you. |
|
|
Get the offset from the original location. If the optimizer is not run, this will return a (0,0) |
|
|
Get the POINTSTYLE to use for the symbol.
|
|
|
Get the symbol data for the point symbol.
|
|
|
Get the priority used in label optimization Higher numbers are higher priority.
|
|
|
Return the region of the actual label.
|
|
|
|
|
|
Get the location of the point symbol (if any) in screen coordinates.
|
|
|
|
|
|
Returns true if the place holds point symbol information.
|
|
|
Returns true if the place holds text label information.
|
|
|
Returns true if the label is attached to the given element.
|
|
||||||||||||
|
Returns true if the label is attached to the given element.
|
|
|
Return true if label is locked. When deconflicting labels, locked labels are not allowed to move. |
|
|
Lock a label in place. This prevents deconflicting from being able to move the label. |
|
|
Move a label a given ammount.
|
|
|
Assignment operator.
|
|
||||||||||||||||
|
|
|
|
|
|
|
Set the style for drawing the baseline.
|
|
|
Definition at line 369 of file labelplacement.h. |
|
|
|
|
|
Set the location of the point symbol (if any) in screen coordinates.
|
|
|
Set the POINTSTYLE to use for the symbol.
|
|
|
Set the symbol data for the point symbol.
|
|
|
Set the symbol data for the point symbol.
|
|
|
Set the priority used in label optimization Higher numbers are higher priority.
|
|
|
Set the extents region of the label.
|
|
|
|
|
|
|
|
|
Definition at line 464 of file labelplacement.h. |
|
|
Definition at line 463 of file labelplacement.h. |
1.3.8-20040913