![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
3D triangle specific access methods.
A 3D triangle is a closed, filled, 3 point feature.
This class represents the access methods that are specific to a 3D triangle. They also allow setting of the various attributes.
Public Member Functions | |
double | area () const |
bool | corners (TSL3DCoord *c1, TSL3DCoord *c2, TSL3DCoord *c3) const |
const TSL3DCoordSet & | corners () const |
bool | corners (const TSL3DCoord &c1, const TSL3DCoord &c2, const TSL3DCoord &c3) |
bool | corners (const TSL3DCoordSet &corners) |
double | perimeter () const |
![]() | |
TSL3DBoundingBox | boundingBox (int surfaceID=-1) const |
void | boundingBox (TSL3DCoord &bottomLeft, TSL3DCoord &topRight, int surfaceID=-1) const |
TSL3DCoord | centroid () const |
TSL3DEntity * | clone () const |
double | distance (const TSL3DCoord &point, bool useRenderedExtent=true, int drawingSurfaceID=-1) const |
bool | equals (const TSL3DEntity *other) const |
void | move (const TSL3DCoord &location, const TSL3DCoord &reference) |
TSL3DEntitySet * | parent () |
const TSL3DEntitySet * | parent () const |
void | scale (double scaleParam, const TSL3DCoord *origin=0) |
void | scale (double scaleX, double scaleY, double scaleZ, const TSL3DCoord *origin=0) |
double | squareDistance (const TSL3DCoord &point, bool useRenderedExtent=true, int drawingSurfaceID=-1) const |
void | translate (double latitudeOffset, double longitudeOffset, double altitudeOffset) |
![]() | |
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 TSL3DTriangle * | create (TSLFeatureID featureID, const TSL3DCoord &c1, const TSL3DCoord &c2, const TSL3DCoord &c3) |
static TSL3DTriangle * | create (TSLFeatureID featureID, const TSL3DCoordSet &coords) |
static TSL3DTriangle * | create (TSLFeatureID featureID, TSL3DCoordSet *coords, bool keepCoordSet=false) |
static const TSL3DTriangle * | is3DTriangle (const TSL3DEntity *entity) |
static TSL3DTriangle * | is3DTriangle (TSL3DEntity *entity) |
Additional Inherited Members | |
![]() | |
~TSLEntityBase () | |
double TSL3DTriangle::area | ( | ) | const |
Query the area of the 3D triangle
Calculates and returns the area of the 3D triangle in TMC units.
const TSL3DCoordSet & TSL3DTriangle::corners | ( | ) | const |
Query method for the corners of the 3D triangle.
Returns coordset defining corners of 3D triangle.
bool TSL3DTriangle::corners | ( | const TSL3DCoord & | c1, |
const TSL3DCoord & | c2, | ||
const TSL3DCoord & | c3 ) |
Set method for corners of the 3D triangle
A 3D triangle is a closed, filled, 3 point feature.
c1,c2,c3 | New corners of 3D triangle |
bool TSL3DTriangle::corners | ( | const TSL3DCoordSet & | corners | ) |
Set method for corners of the 3D triangle
A triangle is a closed, filled, 3 point feature.
coords | New corners of triangle |
bool TSL3DTriangle::corners | ( | TSL3DCoord * | c1, |
TSL3DCoord * | c2, | ||
TSL3DCoord * | c3 ) const |
Query method for the corners of the 3D triangle
c1,c2,c3 | Storage for corners |
|
static |
Creates a 3D triangle with the specified parameters.
A 3D triangle is a closed, filled, 3 point feature.
This call should only be used for temporary entities. For example, this call may be used to create entities that are used in the spatial tests.
featureID | ID of the feature code to assign to the entity. This is used when rendering map features if no specific attribute set has been created for the entity. |
c1,c2,c3,Coordinates | describing the 3D triangle |
|
static |
Creates a 3D triangle with the specified parameters.
A 3D triangle is a closed, filled, 3 point feature.
This call should only be used for temporary entities. For example, this call may be used to create entities that are used in the spatial tests.
featureID | ID of the feature code to assign to the entity. This is used when rendering map features if no specific attribute set has been created for the entity. |
coords | Coordinate set describing the 3D triangle. This must contain 3 points |
|
static |
Creates a 3D triangle with the specified parameters.
This call should only be used for temporary entities. For example, this call may be used to create entities that are used in the spatial tests.
featureID | ID of the feature code to assign to the entity. This is used when rendering map features if no specific attribute set has been created for the entity. |
coords | Coordinate set describing the 3D triangle. |
keepCoordSet | Flag to indicate whether the 3D triangle should keep the specified coordinate set, or clone it. Note that if this flag is set, the 3D triangle assumes control of the coordinate set and invalidates it. The user should not attempt to make further use of the coordinate set. |
|
static |
Query whether the entity is a 3d triangle.
If this entity is a 3D triangle, returns an accessor, otherwise returns NULL.
entity | the entity to query. |
|
static |
Query whether the entity is a 3d triangle.
If this entity is a 3D triangle, returns an accessor, otherwise returns NULL.
entity | the entity to query. |
double TSL3DTriangle::perimeter | ( | ) | const |
Query the perimeter of the 3D triangle
Calculates and returns the perimeter of the 3D triangle in TMC units.
Returns perimeter of the 3D triangle