![]() |
VR-Forces Developer's Guide
|
A synchronized Quad and Widget for a interactive visible 2D graphic.
Public Member Functions | |
| DtSprite (DtOverlayRenderer &renderer, DtWidgetPicker &picker) | |
| DtSprite * | clone (DtOverlayRenderer &renderer, DtWidgetPicker &picker) const |
| virtual | ~DtSprite () |
| DtSprite (const DtSprite &other)=delete | |
| DtSprite & | operator= (const DtSprite &other)=delete |
| virtual void | setEventsEnabled (bool enabled, unsigned long long userData=0) |
| virtual bool | eventsEnabled () const |
| virtual void | setPosition (float x, float y, float z, float w=0) |
| virtual void | setPoints (const float points[8]) |
| virtual void | setPointsByMinimumAltitude (const float points[8], double minimumAltitude) |
| virtual void | setIsForcedPointsByAltitudeEnabled (bool isEnabled) |
| virtual void | setAltitudeForForcedPoints (double altitude) |
| virtual void | clearAltitudeSpecificConfigurations () |
| virtual void | setRotation (float angle) |
| void | setIsRotationInScreenSpace (bool isRotationInScreenSpace) |
| virtual void | setLodOutAltitude (double lodOutAltitude) |
| virtual void | setIsLodOutAltitudeEnabled (bool isLodOutAltitudeEnabled) |
| virtual void | setMaximumWorldHeight (double worldHeightInMeters) |
| virtual void | setMaximumWorldWidth (double worldWidthInMeters) |
| virtual void | setFillType (DtQuadProxyInterface::FillType type) |
| virtual void | setTextureParameter (DtTextureInterface *textureHandle, float left=0.0f, float right=1.0f, float bottom=0.0f, float top=1.0f) |
| DtTextureInterface * | textureParameter () const |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | setGroup (unsigned int group) |
| virtual unsigned int | group () const |
| virtual const DtQuadProxy & | quad () const |
| virtual DtPickableQuad * | findWidget () |
| virtual const DtPickableQuad * | findWidget () const |
Protected Attributes | |
| DtWidgetPicker & | myPicker |
| DtQuadProxy * | myQuad |
| DtPickableQuad * | myWidget |
| makVrv::DtSprite::DtSprite | ( | DtOverlayRenderer & | renderer, |
| DtWidgetPicker & | picker | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
delete |
Copy Constructor not implemented - Copy not allowed.
| DtSprite* makVrv::DtSprite::clone | ( | DtOverlayRenderer & | renderer, |
| DtWidgetPicker & | picker | ||
| ) | const |
Create a clone, of the sprite, potentially on a new layer.
Assignment Operator not implemented - Assignment not allowed.
|
virtual |
Set whether the sprite has widget events. Disabling events disconnects all of the PickableWidget signals The user data is set when enabling the events, to change only the user data make multiple calls with enabled=true.
|
virtual |
Get whether events are already enabled.
|
virtual |
Set the quad position.
|
virtual |
Set the quad corners.
|
virtual |
Set the quad corners based on the current altitude of the observer rendering the sprite.
|
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(...)
|
virtual |
Set the altitude, in meters, to use when determining the forced set of points. This is only used if setIsForcedPointsByAltitudeEnabled(true).
|
virtual |
Clear all altitude-specific configurations.
|
virtual |
Set the quad rotation.
| void makVrv::DtSprite::setIsRotationInScreenSpace | ( | bool | isRotationInScreenSpace | ) |
Set whether or not the rotation of the sprite 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.
|
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.
|
virtual |
Set whether or not to use the LOD Out Altitude property. Default is true.
|
virtual |
Set the maximum world-space height for the this sprite, in meters. Once the sprite exceeds the maximum world-space height the sprite will not be rendered. To disable this mechanism altogether, set this property to -1.0. By default, this property is set to -1.0 (and as a result this mechanism is unused by default).
|
virtual |
Set the maximum world-space width for the this sprite, in meters. Once the sprite exceeds the maximum world-space width the sprite will not be rendered. To disable this mechanism altogether, set this property to -1.0. By default, this property is set to -1.0 (and as a result this mechanism is unused by default).
|
virtual |
Set the fill type.
|
virtual |
Set the quads texture parameters.
| DtTextureInterface* makVrv::DtSprite::textureParameter | ( | ) | const |
Get the quad texture parameter.
|
virtual |
Set the quad color.
|
virtual |
get the quad
|
virtual |
Attempt to find the widget. If events are disabled there is no widget.
|
virtual |
|
protected |
|
protected |
|
protected |