16 #include <matrix/vlVector.h>
17 #include <osg/Matrixd>
21 class DtOverlayRenderer;
23 class DtFilledPolygon;
26 class DtDisplayUnitsConverter;
28 class DtIntersectorsContainer;
66 void initialize(
const DtVector& normalColor,
const DtVector& highLightColor,
73 void setChannelX(
double x);
76 double channelX()
const;
79 void setChannelY(
double y);
82 double channelY()
const;
85 void setGeocentric(DtVector geocentric);
88 DtVector geocentric()
const;
91 DtVector& geocentric();
94 void setGeodetic(DtVector geodetic);
97 DtVector geodetic()
const;
100 DtVector& geodetic();
103 void setMode(Mode
mode);
106 const Mode&
mode()
const;
109 void setHighlight(
bool isHighLight);
112 bool highlight()
const;
115 void setNormalColor(DtVector color);
118 DtVector normalColor()
const;
121 void setHighlightColor(DtVector color);
124 DtVector highlightColor()
const;
127 void setVertexWidth(
int width);
130 int vertexWidth()
const;
133 void setHighlightRangeSquare(
int range);
136 int highlightRangeSquare()
const;
166 virtual void reset();
175 virtual void setVertexChannelCoordinate(
int index,
double channelX,
double channelY);
180 virtual void setVertexLongitude(
int index,
double longitude);
185 virtual void setVertexLatitude(
int index,
double latitude);
189 virtual double getVertexLongitude(
int index);
193 virtual double getVertexLatitude(
int index);
198 virtual void place(
double channelX,
double channelY);
206 virtual void move(
double channelX,
double channelY);
209 virtual void dirty();
214 virtual void cleanup(
bool deleteGeometry);
219 virtual void update(
double channelX,
double channelY);
232 virtual void draw(
double channelX,
double channelY);
236 virtual void drawVertex(
Vertex& vertex);
242 virtual void handleHighlight(
int index,
double channelX,
double channelY);
247 virtual void geodeticToGeocentric(
const DtVector& geodetic, DtVector& geocentric);
252 virtual void geocentricToGeodetic(
const DtVector& geocentric, DtVector& geodetic);
258 virtual void geocentricToChannel(
const DtVector& geocentric,
double& mouseX,
double& mouseY);
265 virtual bool channelToGeocentric(
double channelX,
double channelY, DtVector& geocentric);
bool myIsHighlight
Definition: DtOsgGeoExtentRectangle.h:148
Vertex is placed.
Definition: DtOsgGeoExtentRectangle.h:49
The vertex of the rectangle.
Definition: DtOsgGeoExtentRectangle.h:39
bool myIsDirty
Definition: DtOsgGeoExtentRectangle.h:275
Mode
The current operation mode.
Definition: DtOsgGeoExtentRectangle.h:44
Definition: vrfObjectManipulationHandlerBaseClass.h:62
int myVertexWidth
Definition: DtOsgGeoExtentRectangle.h:152
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
A rectangle defines an axis-aligned geospatial extent. A bounding box that is aligned with a spatial ...
Definition: DtOsgGeoExtentRectangle.h:33
Utility class that contains intersectors for all model sets in the system (3d, xr, 2d) Use an object of this class when all models sets can be possibly needed. When you know which model set you need, you can just use the DtIntersectorCreator to create an intersector for a model set Models sets corresponding to 3d, xr and 2d are created by default (these correspond to values of 0, 1 and 5) Additional model sets can be registered with DtIntersectorsContainer::registerModelSet.
Definition: DtIntersectorsContainer.h:37
DtVector myGeodetic
Definition: DtOsgGeoExtentRectangle.h:146
double myChannelX
Definition: DtOsgGeoExtentRectangle.h:143
double myChannelY
Definition: DtOsgGeoExtentRectangle.h:144
DtVector myGeocentric
Definition: DtOsgGeoExtentRectangle.h:145
osg::Matrixd myPreviousMVPMatrix
Definition: DtOsgGeoExtentRectangle.h:274
Vertex is not placed.
Definition: DtOsgGeoExtentRectangle.h:47
DtVector myColor
Definition: DtOsgGeoExtentRectangle.h:276
DtDe & myDe
Definition: DtOsgGeoExtentRectangle.h:269
bool myAxisAligned
Definition: DtOsgGeoExtentRectangle.h:277
DtFilledPolygon * myPolygon
Definition: DtOsgGeoExtentRectangle.h:151
A variable vertex convex filled 2D polygon.
Definition: DtFilledPolygon.h:27
The abstract Channel Class.
Definition: DtChannel.h:35
Utility class for doing global unit conversion. All conversions functions use the following naming co...
Definition: DtDisplayUnitsSettingsManager.h:62
const DtDisplayUnitsConverter & myConverter
Definition: DtOsgGeoExtentRectangle.h:270
int myHighlightRangeSquare
Definition: DtOsgGeoExtentRectangle.h:153
const char int mode
Definition: ioapi.h:38
Contains DLL export macros.
DtVector myNormalColor
Definition: DtOsgGeoExtentRectangle.h:149
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
Vertex is dragging.
Definition: DtOsgGeoExtentRectangle.h:51
DtVector myHighlightColor
Definition: DtOsgGeoExtentRectangle.h:150
boost::signalslib::signal< void(int index, double longtitude, double latitude)> signal_vertexChanged
Definition: DtOsgGeoExtentRectangle.h:225
DtChannel * myChannel
Definition: DtOsgGeoExtentRectangle.h:273
DtOsgGeoExtentRectangle::Vertex::Mode myMode
Definition: DtOsgGeoExtentRectangle.h:147
DtFilledPolygon * myRectangle
Definition: DtOsgGeoExtentRectangle.h:272
The DtOverlayRenderer implements the overlay concept. An overlay is a 2D scene that is drawn on top o...
Definition: DtOverlayRenderer.h:67