![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
An arrow consists of a tail and optionally an arrow head at the front.
Once an arrow object is created, the client code should provide configuration via the head() and tail() accessor methods. When all configuration is complete, the client code must invoke the generate() method to populate the entity set with the entities required for the arrow.
Public Member Functions | |
TSLArrowHead * | head () const |
TSLArrowTail * | tail () const |
bool | generate () |
![]() | |
bool | appendData (const char *filename) |
bool | appendDataFromBuffer (unsigned char *buffer, TSLSize length) |
bool | clear () |
TSLArc * | createArc (TSLFeatureID featureID, double startAngle, double endAngle, TSLTMC cx, TSLTMC cy, TSLTMC radx, TSLTMC rady=0, double rotation=0) |
TSLBorderedPolygon * | createBorderedPolygon (TSLFeatureID featureID, TSLCoordSet *coords, TSLTMC width, bool keepCoordSet=false) |
TSLBorderedPolygon * | createBorderedPolygon (TSLFeatureID featureID, const TSLCoordSet &coords, TSLTMC width) |
TSLEntity * | createClone (const TSLEntity *source) |
TSLEllipse * | createEllipse (TSLFeatureID featureID, TSLTMC cx, TSLTMC cy, TSLTMC radx, TSLTMC rady=0, double rotation=0.0) |
TSLEntitySet * | createEntitySet () |
TSLGeodeticArc * | createGeodeticArc (TSLFeatureID featureID, double startAngle, double endAngle, TSLTMC cx, TSLTMC cy, double radx, double rady=0.0, double rotation=0) |
TSLGeodeticEllipse * | createGeodeticEllipse (TSLFeatureID featureID, TSLTMC cx, TSLTMC cy, double radx, double rady=0.0, double rotation=0.0) |
TSLGeodeticPolygon * | createGeodeticPolygon (TSLFeatureID featureID, TSLCoordSet *coords, bool keepCoordSet=false) |
TSLGeodeticPolygon * | createGeodeticPolygon (TSLFeatureID featureID, const TSLCoordSet &coords) |
TSLGeodeticPolyline * | createGeodeticPolyline (TSLFeatureID featureID, TSLCoordSet *coords, bool keepCoordSet=false) |
TSLGeodeticPolyline * | createGeodeticPolyline (TSLFeatureID featureID, const TSLCoordSet &coords) |
TSLGeodeticSymbol * | createGeodeticSymbol (TSLFeatureID featureID, TSLTMC x, TSLTMC y, TSLTMC height=100, double rotation=0) |
TSLGeodeticText * | createGeodeticText (TSLFeatureID featureID, TSLTMC x, TSLTMC y, const char *value, TSLTMC height=100, TSLHorizontalAlignment xalign=TSLHorizontalAlignmentCentre, TSLVerticalAlignment yalign=TSLVerticalAlignmentMiddle, double rotation=0) |
TSLPolygon * | createPolygon (TSLFeatureID featureID, TSLCoordSet *coords, bool keepCoordSet=false) |
TSLPolygon * | createPolygon (TSLFeatureID featureID, const TSLCoordSet &coords) |
TSLPolyline * | createPolyline (TSLFeatureID featureID, TSLCoordSet *coords, bool keepCoordSet=false) |
TSLPolyline * | createPolyline (TSLFeatureID featureID, const TSLCoordSet &coords) |
TSLRectangle * | createRectangle (TSLFeatureID featureID, const TSLCoord &bottomLeft, const TSLCoord &topRight, double rotation=0) |
TSLSymbol * | createSymbol (TSLFeatureID featureID, TSLTMC x, TSLTMC y, TSLTMC height=100, double rotation=0) |
TSLText * | createText (TSLFeatureID featureID, TSLTMC x, TSLTMC y, const char *value, TSLTMC height=100, TSLHorizontalAlignment xalign=TSLHorizontalAlignmentCentre, TSLVerticalAlignment yalign=TSLVerticalAlignmentMiddle, double rotation=0) |
TSLUserGeometryEntity * | createUserGeometry (TSLClientUserGeometryEntity *client, bool takeOwnership=true) |
bool | deleteBufferData (unsigned char *buffer) const |
int | find (const TSLEntity *entity) const |
bool | insert (TSLEntity *source, int index=-1) |
bool | loadData (const char *filename) |
bool | loadDataFromBuffer (unsigned char *buffer, TSLSize length) |
TSLEntity * | operator[] (int index) |
const TSLEntity * | operator[] (int index) const |
bool | removeEntity (TSLEntity *entity) |
bool | removeEntity (Int index) |
bool | saveData (const char *filename, TSLMapLinkVersion ver=TSL_CURRENT_MAPLINK_VERSION) const |
unsigned char * | saveDataToBuffer (TSLSize *length, TSLMapLinkVersion ver=TSL_CURRENT_MAPLINK_VERSION) const |
int | size () const |
![]() | |
TSLCoord | centroid () const |
TSLEntity * | clone () const |
bool | contains (const TSLEntity *other) const |
bool | crosses (const TSLEntity *other) const |
void | alwaysMergeDifferences (bool _alwaysMergeDifferences) |
TSLEntity * | difference (const TSLEntity *other) const |
double | distance (const TSLCoord &point, bool useRenderedExtent=true, int drawingSurfaceID=-1) const |
TSLEnvelope | envelope (int surfaceID=-1) const |
bool | equals (const TSLEntity *other) const |
TSLEntity * | intersection (const TSLEntity *other) const |
bool | intersects (const TSLEntity *other) const |
bool | intersects (const TSLEnvelope *envelope) const |
bool | move (const TSLCoord &location, const TSLCoord &reference) |
bool | overlaps (const TSLEntity *other) const |
TSLEntitySet * | parent () |
const TSLEntitySet * | parent () const |
void | renderLevel (int level) |
int | renderLevel () const |
bool | rotate (double angle, const TSLCoord *origin=NULL) |
double | rotation () const |
bool | rotation (double newValue) |
bool | scale (double scaleParam, TSLCoord *origin=0) |
bool | scaleXY (double scaleX, double scaleY, TSLCoord *origin=0) |
double | squareDistance (const TSLCoord &point, bool useRenderedExtent=true, int drawingSurfaceID=-1) const |
double | squareDistance (const TSLEntity *otherEntity) const |
bool | touches (const TSLEntity *other) const |
bool | translate (TSLTMC xoffset, TSLTMC yoffset) |
TSLEntity * | unionWith (const TSLEntity *other) const |
bool | within (const TSLEntity *other) const |
TSLCoord | adjustedWeightedCentroid () |
reserved for future use | |
TSLCoord | centreOfGravity () |
reserved for future use | |
![]() | |
bool | addDataSet () |
bool | addDataSet (TSLDataHandler *toUseDataHandler) |
bool | clearRenderingAttributes () |
TSLDataSet * | dataSet () |
const TSLDataSet * | dataSet () const |
short | dataSourceID () const |
void | dataSourceID (short dataSourceID) |
bool | deleteDataSet () |
void | destroy () |
TSLEntityID | entityID () const |
void | entityID (TSLEntityID value) |
TSLFeatureID | featureID () const |
void | featureID (TSLFeatureID newValue) |
bool | getRendering (TSLRenderingAttributeInt attribute, int *result) const |
bool | getRendering (TSLRenderingAttributeDouble attribute, double *result) const |
bool | getRendering (TSLRenderingAttributeBool attribute, bool *result) const |
bool | getRendering (TSLRenderingAttributes &result) const |
TSL3DEntity * | is3DEntity () |
const TSL3DEntity * | is3DEntity () const |
TSLEntity * | isEntity () |
const TSLEntity * | isEntity () const |
bool | isOptimisedEntity () const |
void | name (const char *newValue) |
const char * | name () const |
void | releaseResources (int surfaceID) |
bool | setRendering (TSLRenderingAttributeInt attribute, int value) |
bool | setRendering (TSLRenderingAttributeDouble attribute, double value) |
bool | setRendering (TSLRenderingAttributeBool attribute, bool value) |
bool | setRendering (const TSLRenderingAttributes &attributes) |
void | sourceID (int value) |
int | sourceID () const |
TSLGeometryType | type () const |
void | version (TSLVersion value) |
TSLVersion | version () const |
Static Public Member Functions | |
static TSLArrow * | create (const TSLCoordSet &tailPoints, const TSLCoord &armEnd) |
static TSLArrow * | create () |
![]() | |
static TSLEntitySet * | create () |
static const TSLEntitySet * | isEntitySet (const TSLEntity *entity) |
static TSLEntitySet * | isEntitySet (TSLEntity *entity) |
![]() | |
static TSLEntity * | createFromWKB (const unsigned char *wkb, unsigned int wkbLength, double TMCPerMU, double mapOffsetX=0.0, double mapOffsetY=0.0, bool multiAsEntitySet=false, double maxCurveAngle=0.0) |
static TSLEntity * | createFromWKT (const char *wkt, double TMCPerMU, double mapOffsetX=0.0, double mapOffsetY=0.0, bool multiAsEntitySet=false, double maxCurveAngle=0.0) |
Additional Inherited Members | |
![]() | |
TSLEntitySet () | |
~TSLEntitySet () | |
![]() | |
~TSLEntity () | |
![]() | |
~TSLEntityBase () | |
|
static |
Creates an instance of TSLArrow.
After creation of the arrow, configure the head and tail as appropriate before finally calling generate().
|
static |
Creates an instance of TSLArrow, initialised with the points provided.
The returned arrow will have a closed (triangular) head at the front, and a tail following the coordinates defined by tailPoints, with a width of one pixel.
After creation of the arrow, configure the head and tail further as appropriate before finally calling generate().
tailPoints | The set of points defining the arrow's tail. |
armEnd | The endpoint of one arm of the arrow's head. |
bool TSLArrow::generate | ( | ) |
Using the configuration set up in combination of the TSLArrow, TSLArrowHead and TSLArrowTail, the arrow geometry is created.
TSLArrowHead * TSLArrow::head | ( | ) | const |
Gets or creates the TSLArrowHead. It creates a TSLArrowHead the first time it is called.
The application may modify the returned object but must not delete it. The TSLArrow object retains ownership of the head object.
TSLArrowTail * TSLArrow::tail | ( | ) | const |
Gets the TSLArrowTail.
The application may modify the returned object but must not delete it. The TSLArrow object retains ownership of the tail object.