16 #include <matrix/vlVector.h>
17 #include <osg/Matrixd>
21 class DtOverlayRenderer;
23 class DtFilledPolygon;
26 class DtDisplayUnitsConverter;
28 class DtIntersectorsContainer;
68 void initialize(
const DtVector& normalColor,
const DtVector& highLightColor,
75 void setChannelX(
double x);
78 double channelX()
const;
81 void setChannelY(
double y);
84 double channelY()
const;
87 void setGeocentric(DtVector geocentric);
90 DtVector geocentric()
const;
93 DtVector& geocentric();
96 void setGeodetic(DtVector geodetic);
99 DtVector geodetic()
const;
102 DtVector& geodetic();
105 void setMode(Mode
mode);
108 const Mode&
mode()
const;
111 void setHighlight(
bool isHighLight);
114 bool highlight()
const;
117 void setNormalColor(DtVector color);
120 DtVector normalColor()
const;
123 void setHighlightColor(DtVector color);
126 DtVector highlightColor()
const;
129 void setVertexWidth(
int width);
132 int vertexWidth()
const;
135 void setHighlightRangeSquare(
int range);
138 int highlightRangeSquare()
const;
168 virtual void reset();
177 virtual void setVertexChannelCoordinate(
int index,
double channelX,
double channelY);
182 virtual void setVertexLongitude(
int index,
double longitude);
187 virtual void setVertexLatitude(
int index,
double latitude);
191 virtual double getVertexLongitude(
int index);
195 virtual double getVertexLatitude(
int index);
200 virtual void place(
double channelX,
double channelY);
208 virtual void move(
double channelX,
double channelY);
211 virtual void dirty();
216 virtual void cleanup(
bool deleteGeometry);
221 virtual void update(
double channelX,
double channelY);
234 virtual void draw(
double channelX,
double channelY);
238 virtual void drawVertex(
Vertex& vertex);
244 virtual void handleHighlight(
int index,
double channelX,
double channelY);
249 virtual void geodeticToGeocentric(
const DtVector& geodetic, DtVector& geocentric);
254 virtual void geocentricToGeodetic(
const DtVector& geocentric, DtVector& geodetic);
260 virtual void geocentricToChannel(
const DtVector& geocentric,
double& mouseX,
double& mouseY);
267 virtual bool channelToGeocentric(
double channelX,
double channelY, DtVector& geocentric);
bool myIsHighlight
Definition: DtOsgGeoExtentRectangle.h:150
Vertex is placed.
Definition: DtOsgGeoExtentRectangle.h:49
The vertex of the rectangle.
Definition: DtOsgGeoExtentRectangle.h:39
bool myIsDirty
Definition: DtOsgGeoExtentRectangle.h:277
Mode
The current operation mode.
Definition: DtOsgGeoExtentRectangle.h:44
Definition: vrfObjectManipulationHandlerBaseClass.h:62
int myVertexWidth
Definition: DtOsgGeoExtentRectangle.h:154
#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:148
double myChannelX
Definition: DtOsgGeoExtentRectangle.h:145
double myChannelY
Definition: DtOsgGeoExtentRectangle.h:146
DtVector myGeocentric
Definition: DtOsgGeoExtentRectangle.h:147
osg::Matrixd myPreviousMVPMatrix
Definition: DtOsgGeoExtentRectangle.h:276
Vertex is not placed.
Definition: DtOsgGeoExtentRectangle.h:47
DtVector myColor
Definition: DtOsgGeoExtentRectangle.h:278
DtDe & myDe
Definition: DtOsgGeoExtentRectangle.h:271
bool myAxisAligned
Definition: DtOsgGeoExtentRectangle.h:279
DtFilledPolygon * myPolygon
Definition: DtOsgGeoExtentRectangle.h:153
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:272
int myHighlightRangeSquare
Definition: DtOsgGeoExtentRectangle.h:155
const char int mode
Definition: ioapi.h:38
Contains DLL export macros.
DtVector myNormalColor
Definition: DtOsgGeoExtentRectangle.h:151
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:152
boost::signalslib::signal< void(int index, double longtitude, double latitude)> signal_vertexChanged
Definition: DtOsgGeoExtentRectangle.h:227
DtChannel * myChannel
Definition: DtOsgGeoExtentRectangle.h:275
DtOsgGeoExtentRectangle::Vertex::Mode myMode
Definition: DtOsgGeoExtentRectangle.h:149
DtFilledPolygon * myRectangle
Definition: DtOsgGeoExtentRectangle.h:274
The DtOverlayRenderer implements the overlay concept. An overlay is a 2D scene that is drawn on top o...
Definition: DtOverlayRenderer.h:67