MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSL3DTriangleFan Class Reference
Inheritance diagram for TSL3DTriangleFan:

Detailed Description

3D triangle fan specific access methods.

A 3D triangle fan is a chain of closed, filled, 3 point features. The first point defines the common centre point of the fan. The first three points of the fan define a 3D triangle. Each subsequent point defines a triangle made up of the common centre point, the previous point and the new point.

This class represents the access methods that are specific to a 3D triangle fan. They also allow setting of the various attributes.

Deprecated
Deprecated as of MapLink 11.1. Advised to use MapLink Earth SDK instead.

Public Member Functions

double area () const
 
double perimeter () const
 
const TSL3DCoordSetpoints () const
 
bool points (TSL3DCoordSet *newPoints, bool keepCoordSet=false)
 
bool points (const TSL3DCoordSet &newPoints)
 
- Public Member Functions inherited from TSL3DEntity
TSL3DBoundingBox boundingBox (int surfaceID=-1) const
 
void boundingBox (TSL3DCoord &bottomLeft, TSL3DCoord &topRight, int surfaceID=-1) const
 
TSL3DCoord centroid () const
 
TSL3DEntityclone () 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)
 
TSL3DEntitySetparent ()
 
const TSL3DEntitySetparent () 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)
 
- Public Member Functions inherited from TSLEntityBase
bool addDataSet ()
 
bool addDataSet (TSLDataHandler *toUseDataHandler)
 
bool clearRenderingAttributes ()
 
TSLDataSetdataSet ()
 
const TSLDataSetdataSet () 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
 
TSL3DEntityis3DEntity ()
 
const TSL3DEntityis3DEntity () const
 
TSLEntityisEntity ()
 
const TSLEntityisEntity () 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 TSL3DTriangleFancreate (TSLFeatureID featureID, TSL3DCoordSet *coords, bool keepCoordSet=false)
 
static TSL3DTriangleFancreate (TSLFeatureID featureID, const TSL3DCoordSet &coords)
 
static const TSL3DTriangleFanis3DTriangleFan (const TSL3DEntity *entity)
 
static TSL3DTriangleFanis3DTriangleFan (TSL3DEntity *entity)
 

Additional Inherited Members

- Protected Member Functions inherited from TSLEntityBase
 ~TSLEntityBase ()
 

Member Function Documentation

◆ area()

double TSL3DTriangleFan::area ( ) const

Query the area of the 3D triangle fan

Calculates and returns the area of the 3D triangle fan in TMC units.

◆ create() [1/2]

static TSL3DTriangleFan * TSL3DTriangleFan::create ( TSLFeatureID featureID,
const TSL3DCoordSet & coords )
static

Creates a 3D triangle fan 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.

Parameters
featureIDID 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.
coordsCoordinate set describing the 3D triangle fan
Returns
NULL on error.

◆ create() [2/2]

static TSL3DTriangleFan * TSL3DTriangleFan::create ( TSLFeatureID featureID,
TSL3DCoordSet * coords,
bool keepCoordSet = false )
static

Creates a 3D triangle fan 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.

Parameters
featureIDID 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.
coordsCoordinate set describing the 3D triangle fan
keepCoordSetFlag to indicate whether the entity should keep the specified coordinate set, or clone it. Note that if this flag is set, the entity assumes control of the coordinate set and invalidates it. The user should not attempt to make further use of the coordinate set.
Returns
NULL on error.

◆ is3DTriangleFan() [1/2]

static const TSL3DTriangleFan * TSL3DTriangleFan::is3DTriangleFan ( const TSL3DEntity * entity)
static

Query whether the entity is a 3d triangle fan.

If this entity is a 3D triangle fan, returns an accessor, otherwise returns NULL.

Parameters
entitythe entity to query.

◆ is3DTriangleFan() [2/2]

static TSL3DTriangleFan * TSL3DTriangleFan::is3DTriangleFan ( TSL3DEntity * entity)
static

Query whether the entity is a 3d triangle fan.

If this entity is a 3D triangle fan, returns an accessor, otherwise returns NULL.

Parameters
entitythe entity to query.

◆ perimeter()

double TSL3DTriangleFan::perimeter ( ) const

Query the perimeter of the 3D triangle fan

Calculates and returns the perimeter of the 3D triangle fan in TMC units.

Returns perimeter of the 3D triangle fan

◆ points() [1/3]

const TSL3DCoordSet & TSL3DTriangleFan::points ( ) const

Query the coordinates defining the 3D triangle fan

Return the points associated with this 3D triangle fan

◆ points() [2/3]

bool TSL3DTriangleFan::points ( const TSL3DCoordSet & newPoints)

Sets the points associated with this 3D triangle fan

Parameters
newPointsNew set of coordinates defining this 3D triangle fan
Returns
true on success, false otherwise.

◆ points() [3/3]

bool TSL3DTriangleFan::points ( TSL3DCoordSet * newPoints,
bool keepCoordSet = false )

Sets the points associated with this 3D triangle fan

Parameters
newPointsNew set of coordinates defining this 3D triangle fan
keepCoordSetFlag to indicate whether the entity should keep the specified coordinate set, or clone it. Note that if this flag is set, the entity assumes control of the coordinate set and invalidates it. The user should not attempt to make further use of the coordinate set.
Returns
true on success, false otherwise.