![]() |
VR-Forces 4.10 Class Documentation
|
Interface for a DtChannelCompassInstance An object that draws a 2D compass. More...

Public Member Functions | |
| DtChannelCompassInstance () | |
| CTOR. More... | |
| virtual | ~DtChannelCompassInstance () |
| DTOR. More... | |
| DtChannelCompassInstance (const DtChannelCompassInstance &other)=delete | |
| Copy Constructor not implemented - Copy not allowed. More... | |
| DtChannelCompassInstance & | operator= (const DtChannelCompassInstance &other)=delete |
| Assignment Operator not implemented - Assignment not allowed. More... | |
| virtual void | 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. More... | |
| virtual void | setCompassHeading (double heading) |
| set the compass heading More... | |
| virtual void | setModelDefinition (const std::string &modelDefinition) |
| Set the model definition; note that this (potentially) includes all the other parameters enumeration below. More... | |
| virtual void | setLocation (DtChannelCompass::Locations location) |
| Set the compass location. More... | |
| DtChannelCompass::Locations | location () const |
| Returns the current location of the compass. More... | |
| virtual void | setMargins (unsigned int xMargin, unsigned int yMargin) |
| Set the margins, in pixels. More... | |
| virtual void | setNorthLetterFilename (const std::string &filename) |
| Set the name of a bitmap / png file that can be used as the North letter image. More... | |
| virtual void | setSouthLetterFilename (const std::string &filename) |
| Set the name of a bitmap / png file that can be used as the South letter image. More... | |
| virtual void | setEastLetterFilename (const std::string &filename) |
| Set the name of a bitmap / png file that can be used as the East letter image. More... | |
| virtual void | setWestLetterFilename (const std::string &filename) |
| Set the name of a bitmap / png file that can be used as the West letter image. More... | |
| virtual void | setStarFilename (const std::string &filename) |
| Set the name of a bitmap / png file that can be used as the Star image. More... | |
| virtual void | setCompassRadius (unsigned int radius) |
| Set the size of the compass, in pixels. More... | |
| virtual void | setNorthLetterSize (unsigned int width, unsigned int height) |
| Set the size of the North Letter, in pixels. More... | |
| void | setSouthLetterSize (unsigned int width, unsigned int height) |
| Set the size of the South Letter, in pixels. More... | |
| virtual void | setEastLetterSize (unsigned int width, unsigned int height) |
| Set the size of the East Letter, in pixels. More... | |
| virtual void | setWestLetterSize (unsigned int width, unsigned int height) |
| Set the size of the West Letter, in pixels. More... | |
| virtual void | setStarSize (unsigned int width, unsigned int height) |
| Set the size of the Star, in pixels. More... | |
| virtual void | showSmallTickMarks (bool show) |
| show or hide the smaller (every 15 degrees) tick marks More... | |
| virtual void | setDarkTickColor (float r, float g, float b, float a) |
| set the color to use for the dark side of tick marks More... | |
| virtual void | setLightTickColor (float r, float g, float b, float a) |
| set the color to use for the light side of tick marks More... | |
| virtual void | updateCompass (bool force=false)=0 |
| Called anytime any of the compass parameters change, and when the observer heading changes. More... | |
Public Member Functions inherited from makVrv::DtSetVisibilityInterface | |
| virtual | ~DtSetVisibilityInterface () |
| virtual void | setVisible (bool visible)=0 |
| Set the visibility. More... | |
Protected Attributes | |
| std::string | myModelDefinitionName |
| std::string | myDisplayEngineName |
| std::string | myWindowName |
| std::string | myChannelName |
| DtChannelCompass::Locations | myLocation |
| unsigned int | myMargins [2] |
| std::string | myNorthLetterFilename |
| std::string | mySouthLetterFilename |
| std::string | myEastLetterFilename |
| std::string | myWestLetterFilename |
| std::string | myStarFilename |
| unsigned int | myCompassRadius |
| double | myCompassHeading |
| double | myCompassDeclination |
| unsigned int | myNorthLetterSize [2] |
| unsigned int | mySouthLetterSize [2] |
| unsigned int | myEastLetterSize [2] |
| unsigned int | myWestLetterSize [2] |
| unsigned int | myStarSize [2] |
| float | myDarkTickColor [4] |
| float | myLightTickColor [4] |
| bool | myShowSmallTickMarks |
Interface for a DtChannelCompassInstance An object that draws a 2D compass.
| makVrv::DtChannelCompassInstance::DtChannelCompassInstance | ( | ) |
CTOR.
|
virtual |
DTOR.
|
delete |
Copy Constructor not implemented - Copy not allowed.
|
delete |
Assignment Operator not implemented - Assignment not allowed.
|
virtual |
Set the name of the channel that this compass should be drawn on.
Reimplemented in makVrv::DtOsgChannelCompassInstance.
|
virtual |
set the compass heading
|
virtual |
Set the model definition; note that this (potentially) includes all the other parameters enumeration below.
Reimplemented in makVrv::DtOsgChannelCompassInstance.
|
virtual |
Set the compass location.
This is actually an enumeration, but the distributed object interface can't handle those. This will be cast to type DtChannelCompass::Location before being passed on to the instance
| DtChannelCompass::Locations makVrv::DtChannelCompassInstance::location | ( | ) | const |
Returns the current location of the compass.
|
virtual |
Set the margins, in pixels.
These define the space between the compass and the closest channel edges, depending on where the compass is located
|
virtual |
Set the name of a bitmap / png file that can be used as the North letter image.
Reimplemented in makVrv::DtOsgChannelCompassInstance.
|
virtual |
Set the name of a bitmap / png file that can be used as the South letter image.
Reimplemented in makVrv::DtOsgChannelCompassInstance.
|
virtual |
Set the name of a bitmap / png file that can be used as the East letter image.
Reimplemented in makVrv::DtOsgChannelCompassInstance.
|
virtual |
Set the name of a bitmap / png file that can be used as the West letter image.
Reimplemented in makVrv::DtOsgChannelCompassInstance.
|
virtual |
Set the name of a bitmap / png file that can be used as the Star image.
Reimplemented in makVrv::DtOsgChannelCompassInstance.
Set the size of the compass, in pixels.
|
virtual |
Set the size of the North Letter, in pixels.
| void makVrv::DtChannelCompassInstance::setSouthLetterSize | ( | unsigned int | width, |
| unsigned int | height | ||
| ) |
Set the size of the South Letter, in pixels.
|
virtual |
Set the size of the East Letter, in pixels.
|
virtual |
Set the size of the West Letter, in pixels.
|
virtual |
Set the size of the Star, in pixels.
|
virtual |
show or hide the smaller (every 15 degrees) tick marks
|
virtual |
set the color to use for the dark side of tick marks
Reimplemented in makVrv::DtOsgChannelCompassInstance.
|
virtual |
set the color to use for the light side of tick marks
Reimplemented in makVrv::DtOsgChannelCompassInstance.
|
pure virtual |
Called anytime any of the compass parameters change, and when the observer heading changes.
Implemented in makVrv::DtOsgChannelCompassInstance.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |