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

A set of Map-Unit based geometry. More...

Inheritance diagram for TSLMUGeometrySet:

Detailed Description

A set of Map-Unit based geometry.

Public Member Functions

virtual TSLMUGeometryclone ()
 
unsigned int size () const
 
void clear ()
 
const TSLMUGeometryat (unsigned int index) const
 
TSLMUGeometryat (unsigned int index)
 
const TSLMUGeometryoperator[] (unsigned int index) const
 
TSLMUGeometryoperator[] (unsigned int index)
 
void append (TSLMUGeometry *geom)
 
void insert (TSLMUGeometry *geom, unsigned int index)
 
bool erase (unsigned int index)
 
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 TSLMUGeometrySetcreate ()
 Constructor.
 

Protected Member Functions

 TSLMUGeometrySet ()
 
 TSLMUGeometrySet (const TSLMUGeometrySet &other)
 
virtual ~TSLMUGeometrySet ()
 
- 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

◆ TSLMUGeometrySet() [1/2]

TSLMUGeometrySet::TSLMUGeometrySet ( )
protected

◆ TSLMUGeometrySet() [2/2]

TSLMUGeometrySet::TSLMUGeometrySet ( const TSLMUGeometrySet & other)
protected

◆ ~TSLMUGeometrySet()

virtual TSLMUGeometrySet::~TSLMUGeometrySet ( )
protectedvirtual

Member Function Documentation

◆ append()

void TSLMUGeometrySet::append ( TSLMUGeometry * geom)

Add geometry to the set

Parameters
geomThe geometry to add. TSLMUGeometrySet will take ownership of this object.

◆ at() [1/2]

TSLMUGeometry * TSLMUGeometrySet::at ( unsigned int index)

Query the geometry at index

Parameters
indexThe index to query
Returns
The queried geometry, or NULL on error

◆ at() [2/2]

const TSLMUGeometry * TSLMUGeometrySet::at ( unsigned int index) const

Query the geometry at index

Parameters
indexThe index to query
Returns
The queried geometry, or NULL on error

◆ calculateExtent()

virtual bool TSLMUGeometrySet::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.

◆ clear()

void TSLMUGeometrySet::clear ( )

Clear the set

All geometries contained within this set will be deleted

◆ clone()

virtual TSLMUGeometry * TSLMUGeometrySet::clone ( )
virtual

Create a clone of this geometry This will create a copy of the geometry set, and all geometry contained within it

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

Implements TSLMUGeometry.

◆ create()

static TSLMUGeometrySet * TSLMUGeometrySet::create ( )
static

Constructor.

◆ erase()

bool TSLMUGeometrySet::erase ( unsigned int index)

Erase geometry from the set

Parameters
indexThe index of the geometry to erase
Returns
true if the element was removed, false if the index is out of range.

◆ insert()

void TSLMUGeometrySet::insert ( TSLMUGeometry * geom,
unsigned int index )

Add geometry to the set at the specified index

Parameters
geomThe geometry to add. TSLMUGeometrySet will take ownership of this object.
indexThe index to insert the geometry at.

◆ operator[]() [1/2]

TSLMUGeometry * TSLMUGeometrySet::operator[] ( unsigned int index)

Array operator

Parameters
indexThe index to query
Returns
The queried geometry, or NULL on error

◆ operator[]() [2/2]

const TSLMUGeometry * TSLMUGeometrySet::operator[] ( unsigned int index) const

Array operator

Parameters
indexThe index to query
Returns
The queried geometry, or NULL on error

◆ size()

unsigned int TSLMUGeometrySet::size ( ) const

Query the size of the geometry set

Returns
The number of geometries in the set