![]() |
VR-Forces 5.0.3 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) |
| virtual void | setFillType (DtQuad::FillType type) |
| virtual void | setTextureParameter (DtOverlayResourceProvider::NativeResourceHandle texture, float left=0.0f, float right=1.0f, float bottom=0.0f, float top=1.0f) |
| DtOverlayResourceProvider::NativeResourceHandle | 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 DtQuad & | quad () const |
| virtual DtPickableQuad * | findWidget () |
| virtual const DtPickableQuad * | findWidget () const |
Protected Attributes | |
| DtWidgetPicker & | myPicker |
| DtQuad * | 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.
|
virtual |
Set the fill type.
|
virtual |
Set the quads texture parameters.
| DtOverlayResourceProvider::NativeResourceHandle 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 |