VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
makVrv::DtOsgGeoExtentRectangle Class Reference

A rectangle defines an axis-aligned geospatial extent. A bounding box that is aligned with a spatial reference's coordinate system.

Classes

class  Vertex
 

Public Member Functions

 DtOsgGeoExtentRectangle (DtDe &de, DtVector color)
 
virtual ~DtOsgGeoExtentRectangle ()
 
virtual bool initialize (DtChannel *channel)
 
virtual void reset ()
 
virtual void hide ()
 
virtual void setVertexWindowCoordinate (int index, double windowX, double windowY)
 
virtual void setVertexLongitude (int index, double longitude)
 
virtual void setVertexLatitude (int index, double latitude)
 
virtual double getVertexLongitude (int index)
 
virtual double getVertexLatitude (int index)
 
virtual void place (double windowX, double windowY)
 
virtual void drag ()
 
virtual void move (double windowX, double windowY)
 
virtual void dirty ()
 
virtual void cleanup (bool deleteGeometry)
 
virtual void update (double mouseX, double mouseY)
 

Public Attributes

boost::signalslib::signal
< void(int index, double
longtitude, double latitude)> 
signal_vertexChanged
 

Protected Member Functions

virtual void draw (double mouseX, double mouseY)
 
virtual void handleHighlight (int index, double mouseX, double mouseY)
 
virtual void geodeticToGeocentric (const DtVector &geodetic, DtVector &geocentric)
 
virtual void geocentricToGeodetic (const DtVector &geocentric, DtVector &geodetic)
 
virtual void geocentricToWindow (const DtVector &geocentric, double &mouseX, double &mouseY)
 
virtual void windowToGeocentric (double mouseX, double mouseY, DtVector &geocentric)
 

Protected Attributes

DtDemyDe
 
const DtDisplayUnitsConvertermyConverter
 
VertexmyVertices [4]
 
DtFilledPolygonmyRectangle
 
DtCameraNodemyCameraNode
 
DtChannelmyChannel
 
bool myIsDirty
 
DtVector myColor
 
DtIntersectorsContainermyIntersectors = nullptr
 

Constructor & Destructor Documentation

makVrv::DtOsgGeoExtentRectangle::DtOsgGeoExtentRectangle ( DtDe de,
DtVector  color 
)

CTOR.

Parameters
deThe DtDe.
colorThe color of the rectangle([0,1]).
virtual makVrv::DtOsgGeoExtentRectangle::~DtOsgGeoExtentRectangle ( )
virtual

DTOR.

Member Function Documentation

virtual bool makVrv::DtOsgGeoExtentRectangle::initialize ( DtChannel channel)
virtual

Initialized the rectangle.

Parameters
channelThe channel to draw the rectangle on. Return true if the channel gets successfully initialized.
virtual void makVrv::DtOsgGeoExtentRectangle::reset ( )
virtual

Cleans the data from the previous operation.

virtual void makVrv::DtOsgGeoExtentRectangle::hide ( )
virtual

Hides the polygon.

virtual void makVrv::DtOsgGeoExtentRectangle::setVertexWindowCoordinate ( int  index,
double  windowX,
double  windowY 
)
virtual

Sets the window coordinate of the vertex.

Parameters
indexThe index of the vertex.
mouseXThe x coordinate of the vertex in window coordinate.
mouseYThe y coordinate of the vertex in window coordinate.
virtual void makVrv::DtOsgGeoExtentRectangle::setVertexLongitude ( int  index,
double  longitude 
)
virtual

Sets the longitude of the vetex.

Parameters
indexThe index of the vertex.
longitudeThe longitude of the vertex.
virtual void makVrv::DtOsgGeoExtentRectangle::setVertexLatitude ( int  index,
double  latitude 
)
virtual

Sets the latitude of the vetex.

Parameters
bottomLeftBottom left coordinate or upper right vertex.
latitudeThe latitude of the vertex.
virtual double makVrv::DtOsgGeoExtentRectangle::getVertexLongitude ( int  index)
virtual

Gets the longitude of the vetex.

Parameters
indexThe index of the vertex.
virtual double makVrv::DtOsgGeoExtentRectangle::getVertexLatitude ( int  index)
virtual

Gets the latitude of the vetex.

Parameters
indexThe index of the vertex.
virtual void makVrv::DtOsgGeoExtentRectangle::place ( double  windowX,
double  windowY 
)
virtual

Called when the user places the vertex.

Parameters
mouseXThe x coordinate of the vertex in window coordinate.
mouseYThe y coordinate of the vertex in window coordinate.
virtual void makVrv::DtOsgGeoExtentRectangle::drag ( )
virtual

Called when the user drags the vertex of the rectangle.

virtual void makVrv::DtOsgGeoExtentRectangle::move ( double  windowX,
double  windowY 
)
virtual

Called when the user move the coordinate of the vertex of the rectangle.

Parameters
mouseXThe x coordinate of the vertex in window coordinate.
mouseYThe y coordinate of the vertex in window coordinate.
virtual void makVrv::DtOsgGeoExtentRectangle::dirty ( )
virtual

Mark the rectangle as dirty, the underlying geometry need to be sync with updated vertex.

virtual void makVrv::DtOsgGeoExtentRectangle::cleanup ( bool  deleteGeometry)
virtual

Cleans up the rectangle.

Parameters
deleteGeometryif sets to true, delete the geometry otherwise,just reset all.
virtual void makVrv::DtOsgGeoExtentRectangle::update ( double  mouseX,
double  mouseY 
)
virtual

Updates the rectangle if its dirty.

Parameters
namemouseX the mouse x coordinate in window space
namemouseX the mouse y coordinate in window space
virtual void makVrv::DtOsgGeoExtentRectangle::draw ( double  mouseX,
double  mouseY 
)
protectedvirtual

Draw the rectangle.

Parameters
mouseXThe current x coordiante of the the mouse in window space.
mouseXThe current y coordinate of the the mouse in window space.
virtual void makVrv::DtOsgGeoExtentRectangle::handleHighlight ( int  index,
double  mouseX,
double  mouseY 
)
protectedvirtual

Handles the highlight of the vertex.

Parameters
indexThe index of the vertex.
mouseXThe current x coordiante of the the mouse in window space.
mouseXThe current y coordinate of the the mouse in window space.
virtual void makVrv::DtOsgGeoExtentRectangle::geodeticToGeocentric ( const DtVector geodetic,
DtVector geocentric 
)
protectedvirtual

Convient function for converting from geodetic coordinate to geocentric coordinate.

Parameters
geodeticthe geodetic coordinate
geocentricthe geocentric coordinate
virtual void makVrv::DtOsgGeoExtentRectangle::geocentricToGeodetic ( const DtVector geocentric,
DtVector geodetic 
)
protectedvirtual

Convient function for converting from geocentric coordinate to geodetic coordinate.

Parameters
geocentricthe geocentric coordinate
geodeticthe geodetic coordinate
virtual void makVrv::DtOsgGeoExtentRectangle::geocentricToWindow ( const DtVector geocentric,
double mouseX,
double mouseY 
)
protectedvirtual

Convient function for converting from geocentric coordinate to window coordinate.

Parameters
geocentricthe geocentric coordinate
mouseXthe x window coordinate
mouseYthe y window coordinate
virtual void makVrv::DtOsgGeoExtentRectangle::windowToGeocentric ( double  mouseX,
double  mouseY,
DtVector geocentric 
)
protectedvirtual

Convient function for converting from window coordinate to geocentric coordinate.

Member Data Documentation

boost::signalslib::signal<void(int index, double longtitude, double latitude)> makVrv::DtOsgGeoExtentRectangle::signal_vertexChanged
DtDe& makVrv::DtOsgGeoExtentRectangle::myDe
protected
const DtDisplayUnitsConverter& makVrv::DtOsgGeoExtentRectangle::myConverter
protected
Vertex* makVrv::DtOsgGeoExtentRectangle::myVertices[4]
protected
DtFilledPolygon* makVrv::DtOsgGeoExtentRectangle::myRectangle
protected
DtCameraNode* makVrv::DtOsgGeoExtentRectangle::myCameraNode
protected
DtChannel* makVrv::DtOsgGeoExtentRectangle::myChannel
protected
bool makVrv::DtOsgGeoExtentRectangle::myIsDirty
protected
DtVector makVrv::DtOsgGeoExtentRectangle::myColor
protected
DtIntersectorsContainer* makVrv::DtOsgGeoExtentRectangle::myIntersectors = nullptr
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)