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

A model-like object that draws a 2D compass on a channel.

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

Public Types

enum  Locations {
  Top = 0, TopRight, Right, BottomRight,
  Bottom, BottomLeft, Left, TopLeft,
  Center
}
 

Public Member Functions

 DtChannelCompass (DtDe &de, DtUniqueID id)
 
virtual ~DtChannelCompass ()
 
virtual void setInstance (DtChannelCompassInstance *instance)
 
virtual DtChannelCompassInstanceinstance ()
 
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 setLocation (unsigned int location)
 
unsigned int location () const
 
void setMargins (unsigned int xMargin, unsigned int yMargin)
 
void setNorthLetterFilename (const std::string &filename)
 
void setSouthLetterFilename (const std::string &filename)
 
void setEastLetterFilename (const std::string &filename)
 
void setWestLetterFilename (const std::string &filename)
 
void setCompassRadius (unsigned int radius)
 
void setNorthLetterSize (unsigned int width, unsigned int height)
 
void setSouthLetterSize (unsigned int width, unsigned int height)
 
void setEastLetterSize (unsigned int width, unsigned int height)
 
void setWestLetterSize (unsigned int width, unsigned int height)
 
void showSmallTickMarks (bool show)
 
void setDarkTickColor (float r, float g, float b, float a)
 
void setLightTickColor (float r, float g, float b, float a)
 

Protected Attributes

DtChannelCompassInstancemyInstance
 

Member Enumeration Documentation

Enumeration of allowable compass locations.

Enumerator
Top 
TopRight 
Right 
BottomRight 
Bottom 
BottomLeft 
Left 
TopLeft 
Center 

Constructor & Destructor Documentation

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

CTOR.

virtual makVrv::DtChannelCompass::~DtChannelCompass ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtChannelCompass::setInstance ( DtChannelCompassInstance instance)
virtual

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

virtual DtChannelCompassInstance* makVrv::DtChannelCompass::instance ( )
virtual

Get the compass instance for the compass.

virtual void makVrv::DtChannelCompass::setVisible ( bool  isVisible)
virtual

Set the compass' visibility.

void makVrv::DtChannelCompass::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::DtChannelCompass::setCompassHeading ( double  heading)

set the compass heading

void makVrv::DtChannelCompass::setModelDefinition ( const std::string &  modelDefinition)

Set the model definition; note that this (potentially) includes all the other parameters enumeration below.

void makVrv::DtChannelCompass::setLocation ( unsigned int  location)

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.

unsigned int makVrv::DtChannelCompass::location ( ) const

Returns the current location of the compass.

void makVrv::DtChannelCompass::setMargins ( unsigned int  xMargin,
unsigned 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::DtChannelCompass::setNorthLetterFilename ( const std::string &  filename)

Set the name of a bitmap / png file that can be used as the North letter image.

void makVrv::DtChannelCompass::setSouthLetterFilename ( const std::string &  filename)

Set the name of a bitmap / png file that can be used as the South letter image.

void makVrv::DtChannelCompass::setEastLetterFilename ( const std::string &  filename)

Set the name of a bitmap / png file that can be used as the East letter image.

void makVrv::DtChannelCompass::setWestLetterFilename ( const std::string &  filename)

Set the name of a bitmap / png file that can be used as the West letter image.

void makVrv::DtChannelCompass::setCompassRadius ( unsigned int  radius)

Set the size of the compass, in pixels.

void makVrv::DtChannelCompass::setNorthLetterSize ( unsigned int  width,
unsigned int  height 
)

Set the size of the North Letter, in pixels.

void makVrv::DtChannelCompass::setSouthLetterSize ( unsigned int  width,
unsigned int  height 
)

Set the size of the South Letter, in pixels.

void makVrv::DtChannelCompass::setEastLetterSize ( unsigned int  width,
unsigned int  height 
)

Set the size of the East Letter, in pixels.

void makVrv::DtChannelCompass::setWestLetterSize ( unsigned int  width,
unsigned int  height 
)

Set the size of the West Letter, in pixels.

void makVrv::DtChannelCompass::showSmallTickMarks ( bool  show)

show or hide the smaller (every 15 degrees) tick marks

void makVrv::DtChannelCompass::setDarkTickColor ( float  r,
float  g,
float  b,
float  a 
)

set the color to use for the dark side of tick marks

void makVrv::DtChannelCompass::setLightTickColor ( float  r,
float  g,
float  b,
float  a 
)

set the color to use for the light side of tick marks

Member Data Documentation

DtChannelCompassInstance* makVrv::DtChannelCompass::myInstance
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)