MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSLMUPolyline Class Reference

A polyline containing geometry in Map-Units, i.e. geometry in a particular coordinate system. More...

Inheritance diagram for TSLMUPolyline:

Detailed Description

A polyline containing geometry in Map-Units, i.e. geometry in a particular coordinate system.

Public Member Functions

virtual TSLMUGeometryclone ()
 
TSLvector< TSLMUCoord > & getCoords ()
 
void setCoords (const TSLvector< TSLMUCoord > *newCoords)
 
virtual bool calculateExtent (TSLMUExtent &extent) const
 
- Public Member Functions inherited from TSLMUGeometry
void destroy ()
 Destructor.
 
TSLMUGeometry::GeometryType type () const
 
TSLFeatureID featureID () const
 
void featureID (TSLFeatureID id)
 
const char * featureName () const
 
void featureName (const char *name)
 
unsigned int numAttributes () const
 
bool getAttribute (unsigned int index, TSLSimpleString *attributeName, TSLSimpleString *attributeValue)
 
const char * getAttribute (const char *attributeName) const
 
void setAttribute (const char *attributeName, const char *attributeValue)
 
void clearAttribute (const char *attributeName)
 
void clearAttributes ()
 Clear all attributes.
 
void rotation (double rot)
 
double rotation () const
 

Static Public Member Functions

static TSLMUPolylinecreate (const TSLvector< TSLMUCoord > *coords=NULL, TSLFeatureID featureID=TSLFeatureID_Default, const char *featureName=NULL)
 

Protected Member Functions

 TSLMUPolyline (const TSLvector< TSLMUCoord > *coords=NULL, TSLFeatureID featureID=TSLFeatureID_Default, const char *featureName=NULL)
 
 TSLMUPolyline (const TSLMUPolyline &other)
 Copy constructor.
 
virtual ~TSLMUPolyline ()
 Destructor.
 
- Protected Member Functions inherited from TSLMUGeometry
 TSLMUGeometry (TSLMUGeometry::GeometryType type, TSLFeatureID featureID=TSLFeatureID_Default, const char *featureName=NULL)
 
 TSLMUGeometry (const TSLMUGeometry &other)
 
virtual ~TSLMUGeometry ()
 

Additional Inherited Members

- Public Types inherited from TSLMUGeometry
enum  GeometryType {
  GeometryTypeNone , GeometryTypeSet , GeometryTypePoint , GeometryTypePolyline ,
  GeometryTypePolygon
}
 This enum represents the type of a given TSLMUGeometry instance. More...
 

Constructor & Destructor Documentation

◆ TSLMUPolyline() [1/2]

TSLMUPolyline::TSLMUPolyline ( const TSLvector< TSLMUCoord > * coords = NULL,
TSLFeatureID featureID = TSLFeatureID_Default,
const char * featureName = NULL )
protected

Constructor

Parameters
coordsInitial geometry for the line. TSLMUPolyline does not take ownership of this list
featureIDThe feature ID
featureNameThe feature name

◆ TSLMUPolyline() [2/2]

TSLMUPolyline::TSLMUPolyline ( const TSLMUPolyline & other)
protected

Copy constructor.

◆ ~TSLMUPolyline()

virtual TSLMUPolyline::~TSLMUPolyline ( )
protectedvirtual

Destructor.

Member Function Documentation

◆ calculateExtent()

virtual bool TSLMUPolyline::calculateExtent ( TSLMUExtent & extent) const
virtual

Calculate the extent of this geometry

Parameters
extentWill be set to the calculated extent.
Returns
true if the extent was calculated, false otherwise.

Implements TSLMUGeometry.

◆ clone()

virtual TSLMUGeometry * TSLMUPolyline::clone ( )
virtual

Create a clone of this geometry

Returns
A clone of this geometry. This object is owned by the caller.

Implements TSLMUGeometry.

◆ create()

static TSLMUPolyline * TSLMUPolyline::create ( const TSLvector< TSLMUCoord > * coords = NULL,
TSLFeatureID featureID = TSLFeatureID_Default,
const char * featureName = NULL )
static

Constructor

Parameters
coordsInitial geometry for the line. TSLMUPolyline does not take ownership of this list
featureIDThe feature ID
featureNameThe feature name

◆ getCoords()

TSLvector< TSLMUCoord > & TSLMUPolyline::getCoords ( )

Query the geometry of this polyline

This list may be modified by the application to edit the geometry of this line No validation will be performed on these coordinates.

Returns
A reference to this object's point list

◆ setCoords()

void TSLMUPolyline::setCoords ( const TSLvector< TSLMUCoord > * newCoords)

Set the geometry of this polyline

Parameters
newCoordsThe new geometry for the polyline. TSLMUPolyline does not take ownership of this list