![]() |
VR-Forces 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, DtChannel *channel, DtVector color) | |
| virtual | ~DtOsgGeoExtentRectangle () |
| virtual void | reset () |
| virtual void | hide () |
| virtual void | setVertexChannelCoordinate (int index, double channelX, double channelY) |
| 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 channelX, double channelY) |
| virtual void | drag () |
| virtual void | move (double channelX, double channelY) |
| virtual void | dirty () |
| virtual void | cleanup (bool deleteGeometry) |
| virtual void | update (double channelX, double channelY) |
| virtual DtChannel * | channel () const |
Public Attributes | |
| boost::signalslib::signal < void(int index, double longtitude, double latitude)> | signal_vertexChanged |
Protected Member Functions | |
| virtual void | draw (double channelX, double channelY) |
| virtual void | drawVertex (Vertex &vertex) |
| virtual void | handleHighlight (int index, double channelX, double channelY) |
| virtual void | geodeticToGeocentric (const DtVector &geodetic, DtVector &geocentric) |
| virtual void | geocentricToGeodetic (const DtVector &geocentric, DtVector &geodetic) |
| virtual void | geocentricToChannel (const DtVector &geocentric, double &mouseX, double &mouseY) |
| virtual bool | channelToGeocentric (double channelX, double channelY, DtVector &geocentric) |
Protected Attributes | |
| DtDe & | myDe |
| const DtDisplayUnitsConverter & | myConverter |
| Vertex * | myVertices [4] |
| DtFilledPolygon * | myRectangle |
| DtChannel * | myChannel |
| osg::Matrixd | myPreviousMVPMatrix |
| bool | myIsDirty |
| DtVector | myColor |
| bool | myAxisAligned |
| DtIntersectorsContainer * | myIntersectors = nullptr |
| makVrv::DtOsgGeoExtentRectangle::DtOsgGeoExtentRectangle | ( | DtDe & | de, |
| DtChannel * | channel, | ||
| DtVector | color | ||
| ) |
CTOR.
| de | The DtDe. |
| channel | The channel that the rectangle is drawn on. |
| color | The color of the rectangle([0,1]). |
|
virtual |
DTOR.
|
virtual |
Cleans the data from the previous operation.
|
virtual |
Hides the polygon.
|
virtual |
Sets the channel coordinate of the vertex.
| index | The index of the vertex. |
| x | The channelX coordinate of the vertex in channel space. |
| y | The channelY coordinate of the vertex in channel space. |
|
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.
| channelX | The x coordinate of the vertex in channel coordinates. |
| channelY | The y coordinate of the vertex in channel coordinates. |
|
virtual |
Called when the user drags the vertex of the rectangle.
Called when the user move the coordinate of the vertex of the rectangle.
| channelX | The x coordinate of the vertex in channel coordinates. |
| channelY | The y coordinate of the vertex in channel coordinates. |
|
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 | channelX the mouse x coordinate in channel space |
| name | channelY the mouse y coordinate in channel space |
|
virtual |
Gets the channel that the rectangle is drawn on.
|
protectedvirtual |
Draw the rectangle.
| channelX | The current x coordiante of the the mouse in channel space. |
| channelY | The current y coordinate of the the mouse in channel space. |
|
protectedvirtual |
Draws a vertex.
| vertex | The vertex to draw. |
|
protectedvirtual |
Handles the highlight of the vertex.
| index | The index of the vertex. |
| channelX | The current x coordiante of the the mouse in channel space. |
| channelY | The current y coordinate of the the mouse in channel 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.
| channelX | the x channel coordinate |
| channelY | the y channel coordinate |
| geocentric | the output 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 |
|
protected |