![]() |
VR-Forces Developer's Guide
|
A flyweight class for controlling a single quad owned by the DtQuadRenderer.

Classes | |
| class | DtAltitudeSpecificConfiguration |
Public Member Functions | |
| virtual | ~DtQuadProxy () |
| virtual void | set3DPosition (int index, float x, float y, float z, float w) |
| virtual void | set3DPosition (float x, float y, float z, float w=0) override |
| virtual void | get3DPosition (float &x, float &y, float &z, float &w) const |
| virtual void | set2DRotation (float angle) |
| virtual void | get2DRotation (float &angle) const |
| virtual void | setIsRotationInScreenSpace (bool isRotationInScreenSpace) |
| virtual bool | isRotationInScreenSpace () const |
| virtual void | setMaximumWorldHeight (double worldHeightInMeters) |
| virtual double | maximumWorldHeight () const |
| virtual void | setMaximumWorldWidth (double worldWidthInMeters) |
| virtual double | maximumWorldWidth () const |
| virtual void | setPoints (const float points[8]) |
| virtual void | getPoints (float points[8]) const |
| virtual void | setPointsByMinimumAltitude (const float points[8], double altitude) |
| virtual void | setIsForcedPointsByAltitudeEnabled (bool isEnabled) |
| virtual void | setAltitudeForForcedPoints (double minimumAltitudeForUse) |
| virtual void | clearAltitudeSpecificConfigurations () |
| virtual void | setGroup (float order) |
| virtual float | group () const |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | getColor (float &r, float &g, float &b, float &a) const |
| virtual void | setBounds (const float bounds[4]) |
| virtual void | getBounds (float bounds[4]) const |
| virtual void | setBounds (const DtBoundingBox &box) |
| virtual void | getBounds (DtBoundingBox &box) const |
| virtual void | setFillType (FillType style) |
| virtual FillType | fillType () const |
| virtual void | setFillParameter (unsigned int fullStipplePattern[32]=0) |
| virtual void | setTextureParameters (DtTextureInterface *textureHandle, float left=0.0f, float right=1.0f, float bottom=0.0f, float top=1.0f) |
| virtual DtTextureInterface * | findTextureHandle () const override |
| virtual void | setLodOutAltitude (double lodOutAltitude) |
| virtual double | lodOutAltitude () const |
| virtual void | setIsLodOutAltitudeEnabled (bool isLodOutAltitudeEnabled) |
| virtual bool | isLodOutAltitudeEnabled () const |
| virtual unsigned int | index () const |
| virtual void | setIndex (unsigned int index) |
Public Member Functions inherited from makVrv::DtQuadProxyInterface | |
| DtQuadProxyInterface () | |
| virtual | ~DtQuadProxyInterface () |
Protected Types | |
| typedef std::vector < DtAltitudeSpecificConfiguration > | DtMinimumAltitudeToPointsVector |
Protected Member Functions | |
| DtQuadProxy (DtQuadRenderer &renderer, FillType effect) | |
| bool | hasAltitudeSpecificPoints () const |
| void | updateRotationBasedOnCurrentObserverTopographicHeading (double heading) |
| size_t | indexOfPointsToUseForAltitude (double cameraAltitude) const |
| void | updatePointsBasedOnAltitude (double cameraAltitude) |
| bool | updateLodVisibility (DtPrimitiveStyle *style, const DtObserverRenderData &observerRenderData) |
Static Protected Member Functions | |
| static void | getBoundsFromPoints (float bounds[4], const float points[8]) |
Friends | |
| class | DtQuadRenderer |
Additional Inherited Members | |
Public Types inherited from makVrv::DtQuadProxyInterface | |
| enum | FillType { Fill_Solid = 0, Fill_Stipple, Fill_Texture, Fill_Repeating_Texture } |
|
protected |
|
virtual |
|
protected |
Protected CTOR (DtQuadRenderer manages creation)
|
virtual |
Set the position at the given index of the quad (points 0 - 3)
Implements makVrv::DtQuadProxyInterface.
|
overridevirtual |
Sets the same position at all points in the quad.
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Get the position.
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Set the rotation.
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Get the rotation.
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Set whether or not the rotation of the quad object is in screen space. If rotation is in screen space, a 0 degrees rotation means the top of the user's computer monitor. If rotation is not in screen space, it is in world space with a 0 degrees rotation meaning the direction of True North. Default is true.
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Get whether or not the rotation of the text object is in screen space.
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Set the maximum world-space height for the this proxy, in meters. Once the quad proxy exceeds the maximum world-space height, the quad will not be rendered. To disable this mechanism for height altogether, set this property to -1.0. Calling setIsHiddenWhenExceedingMaximumWorldDimensions(false) will cause width to not be used either. By default, this property is set to -1.0 (and as a result this mechanism is unused by default).
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Returns the maximum world-space height for the this proxy, in meters.
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Set the maximum world-space width for the this proxy, in meters. Once the quad proxy exceeds the maximum world-space width, the quad proxy will not be rendered. To disable this mechanism for width altogether, set this property to -1.0. Calling setIsHiddenWhenExceedingMaximumWorldDimensions(false) will cause height to not be used either. By default, this property is set to -1.0 (and as a result this mechanism is unused by default).
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Returns the maximum world-space width for the this proxy, in meters.
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Set the 2d vertices.
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Get the 2d vertices.
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Set the 2d vertices, based on the current altitude of the observer rendering the quad.
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Set whether or not a particular set of points are used, regardless of altitude. This only matters if altitude-specific sets of points are used. The sets of points used are provided by the altitude-specific configuration corresponding to the altitude provided using: setAltitudeForForcedPoints(...) Default is false.
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Set the altitude, in meters, to use when determining the forced set of points. This is only used if setIsForcedPointsByAltitudeEnabled(true). Default is std::numeric_limits<double>::min().
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Clear all altitude-specific configurations.
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Set the order.
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Get the group.
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Set the color.
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Get the color.
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Set the 2d vertices by size.
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Get the size.
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Set the bounding box to use.
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Get the bounding box.
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Set the style.
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Get the current style.
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Set the fill parameters.
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Set the texture parameter.
Implements makVrv::DtQuadProxyInterface.
|
overridevirtual |
Get the texture handle.
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Set the minimum altitude, in meters, at which this quad will no longer render. Only used if setIsLodOutAltitudeEnabled(true). Default is the maximum value a double can hold.
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Get the minimum altitude, in meters, at which this quad will no longer render.
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Set whether or not to use the LOD Out Altitude property. Default is true.
Implements makVrv::DtQuadProxyInterface.
|
virtual |
Get whether or not to use the LOD Out Altitude property.
Implements makVrv::DtQuadProxyInterface.
Get the internal index of this proxy.
Get the internal index of this proxy.
|
staticprotected |
Get the bounding values for a quad's points.
| bounds | bounding values in order min_x, min_y, max_x, max_y |
| points | 2d points in order [x0,y0,x1,y1,...] |
|
protected |
Return whether or not the proxy has altitude-specific points configured.
|
protected |
Updates the rotation of the underlying primitive vertices based on the observer's heading and the current rotation for this quad - set via set2DRotation(float).
|
protected |
|
protected |
Update the proxy bounds based on the provided altitude, in meters.
|
protected |
Updates the visibility state of the quad based on the camera altitude and the lod parameters. Returns true if the visibility state changed.
| style | - the style to set the visibility state in |
| cameraAltitude | - the current camera altitude |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |