VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
makVrv::DtNavigationDaymark Class Reference

The DtNavigationDaymark can be attached to any articulated model through an articulated model agent that has switchable daymark switch. More...

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

Public Types

typedef std::vector< std::pair
< std::string, std::string > > 
AttrValPairs

Public Member Functions

virtual ~DtNavigationDaymark ()
 DTOR.
virtual void attach (DtArticulatedModelAgent *modelAgent, const std::string &atlasFileName, DtBuoyTextureAtlasFileParser *parser)
 Attach the controller to an articulated model.
virtual void update (DtTime simTime)
 Update the state of the daymark (on or off) based on dayDaymark conditions.
void setShape (unsigned int color)
 Set/get the color value this controller should set the model's daymark shape switch to.
unsigned int shape () const
 Set/get the color value this controller should set the model's daymark shape switch to.
void setDaymarkShapeSwitchNumber (int switchNum)
 Set the number of the switch (State number) that controls the light color.
int daymarkShapeSwitchNumber () const
 Set the number of the switch (State number) that controls the light color.
void setFeatureAttributes (const DtBuoyMarkerStringParser::ParsedAttributeValueMap &results)
 Store or retrieve the parsed results containing daymark configuration data as pairs of (attribute, value)
const AttrValPairsfeatureAttribues ()
 Store or retrieve the parsed results containing daymark configuration data as pairs of (attribute, value)
- Public Member Functions inherited from makVrv::DtNavigationFeature
virtual ~DtNavigationFeature ()
 DTOR.
DtUniqueID elementId () const
 Get the element id of this navigation feature.
DtArticulatedModelAgent *const modelAgent () const
 Access the articulated model agent this whose object this controls.
DtArticulatedModelAgent * modelAgent ()
 Access the articulated model agent this whose object this controls.
void setPosition (const DtVector &position)
 Set / get the position of the navigation feature.
const DtVectorposition () const
 Set / get the position of the navigation feature.

Protected Member Functions

 DtNavigationDaymark (DtUniqueID elementId)
 CTOR (callable by creator)
 DtNavigationDaymark ()
 Default CTOR (unimplemented)
 DtNavigationDaymark (const DtNavigationDaymark &orig)
 Copy CTOR (unimplemented)
const DtNavigationDaymarkoperator= (const DtNavigationDaymark &rhs)
 Assignment Operator (unimplemented)
- Protected Member Functions inherited from makVrv::DtNavigationFeature
 DtNavigationFeature (DtUniqueID elementId)
 CTOR (callable by creator)
 DtNavigationFeature ()
 Default CTOR (unimplemented)
 DtNavigationFeature (const DtNavigationFeature &orig)
 Copy CTOR (unimplemented)
const DtNavigationFeatureoperator= (const DtNavigationFeature &rhs)
 Assignment Operator (unimplemented)

Protected Attributes

unsigned int myDaymarkShapeSwitchNumber
unsigned int myShape
AttrValPairs mySearchPairs
- Protected Attributes inherited from makVrv::DtNavigationFeature
DtUniqueID myElementId
DtVector myPosition
DtArticulatedModelAgent * myModelAgent

Friends

class DtNavigationDaymarkCreator
 Constructed through this creator class.

Detailed Description

The DtNavigationDaymark can be attached to any articulated model through an articulated model agent that has switchable daymark switch.

It sets the daymark shape. It is the responsibility of whatever attaches this to a model to set the attachment to Null (0) when the model is destroyed.

Member Typedef Documentation

typedef std::vector<std::pair<std::string,std::string> > makVrv::DtNavigationDaymark::AttrValPairs

Constructor & Destructor Documentation

virtual makVrv::DtNavigationDaymark::~DtNavigationDaymark ( )
virtual

DTOR.

makVrv::DtNavigationDaymark::DtNavigationDaymark ( DtUniqueID  elementId)
protected

CTOR (callable by creator)

makVrv::DtNavigationDaymark::DtNavigationDaymark ( )
protected

Default CTOR (unimplemented)

makVrv::DtNavigationDaymark::DtNavigationDaymark ( const DtNavigationDaymark orig)
protected

Copy CTOR (unimplemented)

Member Function Documentation

virtual void makVrv::DtNavigationDaymark::attach ( DtArticulatedModelAgent *  modelAgent,
const std::string &  atlasFileName,
DtBuoyTextureAtlasFileParser parser 
)
virtual

Attach the controller to an articulated model.

The model should have a multiswitch for different daymarks; and a texture atlas file to set the texture for each daymark

virtual void makVrv::DtNavigationDaymark::update ( DtTime  simTime)
virtual

Update the state of the daymark (on or off) based on dayDaymark conditions.

void makVrv::DtNavigationDaymark::setShape ( unsigned int  color)

Set/get the color value this controller should set the model's daymark shape switch to.

unsigned int makVrv::DtNavigationDaymark::shape ( ) const

Set/get the color value this controller should set the model's daymark shape switch to.

void makVrv::DtNavigationDaymark::setDaymarkShapeSwitchNumber ( int  switchNum)

Set the number of the switch (State number) that controls the light color.

By default, the controller uses DtModelSemanticsMapper::State::daymark_shape

int makVrv::DtNavigationDaymark::daymarkShapeSwitchNumber ( ) const

Set the number of the switch (State number) that controls the light color.

By default, the controller uses DtModelSemanticsMapper::State::daymark_shape

void makVrv::DtNavigationDaymark::setFeatureAttributes ( const DtBuoyMarkerStringParser::ParsedAttributeValueMap results)

Store or retrieve the parsed results containing daymark configuration data as pairs of (attribute, value)

const AttrValPairs& makVrv::DtNavigationDaymark::featureAttribues ( )

Store or retrieve the parsed results containing daymark configuration data as pairs of (attribute, value)

const DtNavigationDaymark& makVrv::DtNavigationDaymark::operator= ( const DtNavigationDaymark rhs)
protected

Assignment Operator (unimplemented)

Friends And Related Function Documentation

friend class DtNavigationDaymarkCreator
friend

Constructed through this creator class.

Member Data Documentation

unsigned int makVrv::DtNavigationDaymark::myDaymarkShapeSwitchNumber
protected
unsigned int makVrv::DtNavigationDaymark::myShape
protected
AttrValPairs makVrv::DtNavigationDaymark::mySearchPairs
protected

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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)