![]() |
VR-Forces 5.0.3 Developer's Guide
|
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 | |
| DtDe & | myDe |
| const DtDisplayUnitsConverter & | myConverter |
| Vertex * | myVertices [4] |
| DtFilledPolygon * | myRectangle |
| DtCameraNode * | myCameraNode |
| DtChannel * | myChannel |
| bool | myIsDirty |
| DtVector | myColor |
| DtIntersectorsContainer * | myIntersectors = nullptr |
CTOR.
| de | The DtDe. |
| color | The color of the rectangle([0,1]). |
|
virtual |
DTOR.
Initialized the rectangle.
| channel | The channel to draw the rectangle on. Return true if the channel gets successfully initialized. |
|
virtual |
Cleans the data from the previous operation.
|
virtual |
Hides the polygon.
|
virtual |
Sets the window coordinate of the vertex.
| index | The index of the vertex. |
| mouseX | The x coordinate of the vertex in window coordinate. |
| mouseY | The y coordinate of the vertex in window coordinate. |
|
virtual |
Sets the longitude of the vetex.
| index | The index of the vertex. |
| longitude | The longitude of the vertex. |
|
virtual |
Sets the latitude of the vetex.
| bottomLeft | Bottom left coordinate or upper right vertex. |
| latitude | The latitude of the vertex. |
Gets the longitude of the vetex.
| index | The index of the vertex. |
Gets the latitude of the vetex.
| index | The index of the vertex. |
Called when the user places the vertex.
| mouseX | The x coordinate of the vertex in window coordinate. |
| mouseY | The y coordinate of the vertex in window coordinate. |
|
virtual |
Called when the user drags the vertex of the rectangle.
Called when the user move the coordinate of the vertex of the rectangle.
| mouseX | The x coordinate of the vertex in window coordinate. |
| mouseY | The y coordinate of the vertex in window coordinate. |
|
virtual |
Mark the rectangle as dirty, the underlying geometry need to be sync with updated vertex.
|
virtual |
Cleans up the rectangle.
| deleteGeometry | if sets to true, delete the geometry otherwise,just reset all. |
Updates the rectangle if its dirty.
| name | mouseX the mouse x coordinate in window space |
| name | mouseX the mouse y coordinate in window space |
|
protectedvirtual |
Draw the rectangle.
| mouseX | The current x coordiante of the the mouse in window space. |
| mouseX | The current y coordinate of the the mouse in window space. |
|
protectedvirtual |
Handles the highlight of the vertex.
| index | The index of the vertex. |
| mouseX | The current x coordiante of the the mouse in window space. |
| mouseX | The current y coordinate of the the mouse in window space. |
|
protectedvirtual |
Convient function for converting from geodetic coordinate to geocentric coordinate.
| geodetic | the geodetic coordinate |
| geocentric | the geocentric coordinate |
|
protectedvirtual |
Convient function for converting from geocentric coordinate to geodetic coordinate.
| geocentric | the geocentric coordinate |
| geodetic | the geodetic coordinate |
|
protectedvirtual |
Convient function for converting from geocentric coordinate to window coordinate.
| geocentric | the geocentric coordinate |
| mouseX | the x window coordinate |
| mouseY | the y window coordinate |
|
protectedvirtual |
Convient function for converting from window coordinate to geocentric coordinate.
| boost::signalslib::signal<void(int index, double longtitude, double latitude)> makVrv::DtOsgGeoExtentRectangle::signal_vertexChanged |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |