![]() |
VR-Forces 5.0.2 Developer's Guide
|
A model-like object that draws a 3d view first person shooter style compass on a channel.
The fps style compass is a pseudo 3d view where directions rotate into a popout center. The compass is located at the top center of the display.

Public Member Functions | |
| DtChannel3dViewCompass (DtDe &de, DtUniqueID id) | |
| virtual | ~DtChannel3dViewCompass () |
| DtChannel3dViewCompass ()=delete | |
| DtChannel3dViewCompass (const DtChannel3dViewCompass &other)=delete | |
| DtChannel3dViewCompass & | operator= (const DtChannel3dViewCompass &other)=delete |
| virtual void | setInstance (DtChannel3dViewCompassInstance *instance) |
| virtual DtChannel3dViewCompassInstance * | instance () |
| virtual void | setVisible (bool isVisible) |
| void | setChannelName (const std::string &deName, const std::string &winName, const std::string &channelName) |
| void | setCompassHeading (double heading) |
| void | setModelDefinition (const std::string &modelDefinition) |
| void | setMargins (int xMargin, int yMargin) |
| void | setDarkTickColor (float r, float g, float b, float a) |
| void | setLightTickColor (float r, float g, float b, float a) |
| void | setSymbolColor (float r, float g, float b, float a) |
| void | setPopoutSymbolColor (float r, float g, float b, float a) |
| void | setSymbolsFilename (const std::string &filename) |
| void | setWidth (unsigned int width) |
| void | setSymbolSize (unsigned int size) |
| void | setPopoutSymbolSize (unsigned int size) |
Protected Attributes | |
| DtChannel3dViewCompassInstance * | myInstance |
| makVrv::DtChannel3dViewCompass::DtChannel3dViewCompass | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
delete |
Default Constructor not implemented.
|
delete |
Copy Constructor not implemented - Copy not allowed.
|
delete |
Assignment Operator not implemented - Assignment not allowed.
|
virtual |
Set or replace the compass instance for the compass Transfers ownership.
|
virtual |
Get the compass instance for the compass.
|
virtual |
Set the compass' visibility.
| void makVrv::DtChannel3dViewCompass::setChannelName | ( | const std::string & | deName, |
| const std::string & | winName, | ||
| const std::string & | channelName | ||
| ) |
Set the name of the channel that this compass should be drawn on.
| void makVrv::DtChannel3dViewCompass::setCompassHeading | ( | double | heading | ) |
Set the compass heading.
| void makVrv::DtChannel3dViewCompass::setModelDefinition | ( | const std::string & | modelDefinition | ) |
Set the model definition; note that this (potentially) includes all the other parameters enumeration below.
Set the margins, in pixels. These define the space between the compass and the closest channel edges, depending on where the compass is located.
| void makVrv::DtChannel3dViewCompass::setDarkTickColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) |
set the color to use for the dark side of tick marks
| void makVrv::DtChannel3dViewCompass::setLightTickColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) |
set the color to use for the light side of tick marks
| void makVrv::DtChannel3dViewCompass::setSymbolColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) |
set the color to use for the symbols
| void makVrv::DtChannel3dViewCompass::setPopoutSymbolColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) |
set the color to use for the popout (center) symbols
| void makVrv::DtChannel3dViewCompass::setSymbolsFilename | ( | const std::string & | filename | ) |
Set the name of a bitmap / png file that can be used as the symbols image.
Set the size in pixels for the symbols.
Set the size in pixels for the popout (center) symbols.
|
protected |