VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
makVrv::DtChannel3dViewCompass Class Reference

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.

Inheritance diagram for makVrv::DtChannel3dViewCompass:
Inheritance graph
[legend]

Public Member Functions

 DtChannel3dViewCompass (DtDe &de, DtUniqueID id)
 
virtual ~DtChannel3dViewCompass ()
 
 DtChannel3dViewCompass ()=delete
 
 DtChannel3dViewCompass (const DtChannel3dViewCompass &other)=delete
 
DtChannel3dViewCompassoperator= (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

DtChannel3dViewCompassInstancemyInstance
 

Constructor & Destructor Documentation

makVrv::DtChannel3dViewCompass::DtChannel3dViewCompass ( DtDe de,
DtUniqueID  id 
)

CTOR.

virtual makVrv::DtChannel3dViewCompass::~DtChannel3dViewCompass ( )
virtual

DTOR.

makVrv::DtChannel3dViewCompass::DtChannel3dViewCompass ( )
delete

Default Constructor not implemented.

makVrv::DtChannel3dViewCompass::DtChannel3dViewCompass ( const DtChannel3dViewCompass other)
delete

Copy Constructor not implemented - Copy not allowed.

Member Function Documentation

DtChannel3dViewCompass& makVrv::DtChannel3dViewCompass::operator= ( const DtChannel3dViewCompass other)
delete

Assignment Operator not implemented - Assignment not allowed.

virtual void makVrv::DtChannel3dViewCompass::setInstance ( DtChannel3dViewCompassInstance instance)
virtual

Set or replace the compass instance for the compass Transfers ownership.

virtual DtChannel3dViewCompassInstance* makVrv::DtChannel3dViewCompass::instance ( )
virtual

Get the compass instance for the compass.

virtual void makVrv::DtChannel3dViewCompass::setVisible ( bool  isVisible)
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.

void makVrv::DtChannel3dViewCompass::setMargins ( int  xMargin,
int  yMargin 
)

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.

void makVrv::DtChannel3dViewCompass::setWidth ( unsigned int  width)

Set the compass width.

void makVrv::DtChannel3dViewCompass::setSymbolSize ( unsigned int  size)

Set the size in pixels for the symbols.

void makVrv::DtChannel3dViewCompass::setPopoutSymbolSize ( unsigned int  size)

Set the size in pixels for the popout (center) symbols.

Member Data Documentation

DtChannel3dViewCompassInstance* makVrv::DtChannel3dViewCompass::myInstance
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)