Specialist entity for the handling of user-defined geometry objects.
The User Geometry Entity allows the developer to create an object that can be stored inside a TMF file and drawn as part of the drawing of a Standard Data-Layer.
The developer should at minimum derive from TSLClientUserGeometryEntity in the application and implement the pure virtual draw method. Additional methods on TSLClientUserGeometryEntity may be overridden as necessary.
Only the methods defined on TSLClientUserGeometryEntity are supported for a user defined Entity at present. This means that setting of attributes, etc. is not supported.
This extension is purely for rendering of objects defined by the user.
It is the developer's responsibility to ensure thread safety.
Note: If you are not using the version of Visual Studio that MapLink was built with then you need to manage the deletion of the TSLClientUserGeometryEntity derived object yourself.
|
TSLClientUserGeometryEntity * | getClientUserGeometryEntity () |
|
const TSLClientUserGeometryEntity * | getClientUserGeometryEntity () const |
|
void | setClientUserGeometryEntity (TSLClientUserGeometryEntity *client, bool ownsClient=false) |
|
bool | valid () 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 TSLUserGeometryEntity * | create (TSLClientUserGeometryEntity *client, bool takeOwnership=true) |
|
static const TSLUserGeometryEntity * | isUserGeometry (const TSLEntity *entity) |
|
static TSLUserGeometryEntity * | isUserGeometry (TSLEntity *entity) |
|
static bool | registerUserGeometryClientLoadCallback (TSLUserGeometryLoadCallback callback) |
|
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) |
|