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

Detailed Description

This class represents a rectangular extent in Map Units, i.e. an extent in a particular coordinate system.

Public Member Functions

 TSLMUExtent ()
 
 TSLMUExtent (double minX, double minY, double maxX, double maxY, const TSLCoordinateSystem *csys=NULL)
 
double height () const
 
bool intersect (const TSLMUExtent &e) const
 
double minX () const
 
double minY () const
 
double maxX () const
 
double maxY () const
 
const TSLCoordinateSystemcoordinateSystem () const
 
bool operator== (const TSLMUExtent &e) const
 
bool operator!= (const TSLMUExtent &e) const
 
TSLMUExtentoperator= (const TSLMUExtent &e)
 
void setExtent (double minX, double minY, double maxX, double maxY)
 
void coordinateSystem (const TSLCoordinateSystem *csys)
 
double width () const
 

Constructor & Destructor Documentation

◆ TSLMUExtent() [1/2]

TSLMUExtent::TSLMUExtent ( )
inline

◆ TSLMUExtent() [2/2]

TSLMUExtent::TSLMUExtent ( double minX,
double minY,
double maxX,
double maxY,
const TSLCoordinateSystem * csys = NULL )
inline

Creates a bounding box with the given extent.

Parameters
minXThe X coordinate of the bottom left corner of the extent.
minYThe Y coordinate of the bottom left corner of the extent.
maxXThe X coordinate of the top right corner of the extent.
maxYThe Y coordinate of the top right corner of the extent.
csysThe coordinate system of this extent.

Member Function Documentation

◆ coordinateSystem() [1/2]

const TSLCoordinateSystem * TSLMUExtent::coordinateSystem ( ) const
inline
Returns
The coordinate system of this extent

◆ coordinateSystem() [2/2]

void TSLMUExtent::coordinateSystem ( const TSLCoordinateSystem * csys)
inline

Sets the coordinate system of this extent

Parameters
csysThe coordinate system for this extent

◆ height()

double TSLMUExtent::height ( ) const
inline

Returns the height of the extent.

◆ intersect()

bool TSLMUExtent::intersect ( const TSLMUExtent & e) const
inline

Query if Map Unit Extents intersect.

For the purposes of this method, an extent is considered intersecting if it touches the boundary.

Parameters
eMUExtent to check.
Returns
true if this MUExtent intersects the specified MUExtent, false otherwise.

◆ maxX()

double TSLMUExtent::maxX ( ) const
inline

Returns the top right X coordinate of the extent.

◆ maxY()

double TSLMUExtent::maxY ( ) const
inline

Returns the top right Y coordinate of the extent.

◆ minX()

double TSLMUExtent::minX ( ) const
inline

Returns the bottom left X coordinate of the extent.

◆ minY()

double TSLMUExtent::minY ( ) const
inline

Returns the bottom left Y coordinate of the extent.

◆ operator!=()

bool TSLMUExtent::operator!= ( const TSLMUExtent & e) const
inline

◆ operator=()

TSLMUExtent & TSLMUExtent::operator= ( const TSLMUExtent & e)
inline

◆ operator==()

bool TSLMUExtent::operator== ( const TSLMUExtent & e) const
inline

◆ setExtent()

void TSLMUExtent::setExtent ( double minX,
double minY,
double maxX,
double maxY )
inline

Sets the corners of the extent to the given values

Parameters
minXThe X coordinate of the bottom left corner of the new extent.
minYThe Y coordinate of the bottom left corner of the new extent
maxXThe X coordinate of the top right corner of the new extent.
maxYThe Y coordinate of the top right corner of the new extent

◆ width()

double TSLMUExtent::width ( ) const
inline

Returns the width of the extent.