![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
TSLArrowHead defines the head of an arrow.
The most basic arrow head consists of two lines (arms) that extend out from the tip of the arrow.
An arrow head must, at least, be defined with the coordinate defining the end of one arm via a call to armEnd(TSLCoord). The end of the other arm is calculated automatically.
Public Member Functions | |
bool | closed () const |
void | closed (bool value) |
TSLCoord | armEnd () const |
void | armEnd (const TSLCoord &ptn) |
void | polygonal (bool isPolygonal) |
bool | polygonal () const |
TSLArrowHead * | enclosingArrowHead (float sizeRatio=1.2) |
Protected Member Functions | |
TSLArrowHead () | |
~TSLArrowHead () | |
TSLArrowHead (const TSLArrowHead &) | |
TSLArrowHead & | operator= (const TSLArrowHead &) |
|
protected |
|
protected |
|
protected |
TSLCoord TSLArrowHead::armEnd | ( | ) | const |
Get the known end of the arrow head's arms.
void TSLArrowHead::armEnd | ( | const TSLCoord & | ptn | ) |
Set the known end of the arrow head's arms. The end of the other arm is calculated automatically.
ptn | Coordinate location of end of one arm. |
bool TSLArrowHead::closed | ( | ) | const |
Returns the current closed state of the arrow head.
void TSLArrowHead::closed | ( | bool | value | ) |
Sets whether the arrow head closes off or not. If the arrow head is closed, a line will join the two arm ends.
Closed | state of the arrow head |
TSLArrowHead * TSLArrowHead::enclosingArrowHead | ( | float | sizeRatio = 1.2 | ) |
Gets or creates an arrow head that encloses this arrow head. By default, an enclosing arrow head will be open.
The application may modify the returned object but must not delete it. The TSLArrow object retains ownership of this object.
sizeRatio | Controls how large the enclosing arrow head is in relation to the enclosed arrow head. There is no upper limit or lower limit, but a value between 1.2 and 2 is sensible. |
|
protected |
bool TSLArrowHead::polygonal | ( | ) | const |
Returns true if the arrow head is polygonal.
void TSLArrowHead::polygonal | ( | bool | isPolygonal | ) |
Specifies whether the arrow head is polygonal or not. A polygonal arrow head resembles a teepee, with the inner triangle
Polygonal | state of the arrow head |