VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtNavigationMark.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
16 
17 namespace makVrv
18 {
19  class DtArticulatedModelAgent;
20  class DtBuoyTextureAtlasIndexParser;
21 
26  {
27  public:
28 
31 
32  typedef std::vector<DtTextureAtlasIndexParser::AttrValuePair > AttrValPairs;
33 
35  virtual ~DtNavigationMark();
36 
40  virtual void attach( DtBuoyOrBeaconFacade& buoyOrBeacon );
41 
43  void setShape( unsigned int color );
46  unsigned int shape() const;
48 
56 
57 
60  virtual void setupDesignator(DtArticulatedModelAgent* model,
61  const std::string& designator, const std::string& atlasFileName,
63 
64  protected:
65 
68 
71 
73  DtNavigationMark( const DtNavigationMark& orig );
74 
77  const DtNavigationMark& rhs );
78 
79  protected:
80  unsigned int myShapeSwitchValue;
81 
83  };
84 
88  : public DtVirtualBaseClass
89  {
90 
91  public:
94  static DtNavigationMarkCreator& instance( DtDe& de );
95 
97  static void registerInstance( DtDe& de,
98  DtNavigationMarkCreator* anInstance );
99 
101  virtual DtNavigationMark* create( DtUniqueID elementId );
102  };
103 }
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
const AttrValPairs & featureAttribues()
Store or retrieve the parsed results containing daymark configuration data as pairs of (attribute...
DtNavigationMarkCreator creator.
Definition: DtNavigationMark.h:87
virtual void attach(DtBuoyOrBeaconFacade &buoyOrBeacon)
Attach the mark to an articulated model. The model should have a multiswitch for different marks; and...
Definition: DtTextureAtlasIndexParser.h:23
Contains makVrv::DtNavigationFeature class.
Contains makVrv::DtBuoyBeaconLayer class.
DtUniqueID elementId() const
Get the element id of this navigation feature.
void setFeatureAttributes(const DtBuoyBeaconModelStringParser::ParsedAttributeValueMap &results)
Store or retrieve the parsed results containing daymark configuration data as pairs of (attribute...
unsigned int shape() const
Set/get the switch value this mark should set the model&#39;s daymark or topmark shape switch to...
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
virtual ~DtNavigationMark()
DTOR.
The DtNavigationMark can be attached to any articulated model through an articulated model agent that...
Definition: DtNavigationMark.h:25
Contains makVrv::DtTextureAtlasIndexParser class.
The DtNavigationFeature can be attached to any articulated model through an articulated model agent...
Definition: DtNavigationFeature.h:29
DtNavigationMark()
Default CTOR (unimplemented)
const DtNavigationMark & operator=(const DtNavigationMark &rhs)
Assignment Operator (unimplemented)
std::vector< DtTextureAtlasIndexParser::AttrValuePair > AttrValPairs
Definition: DtNavigationMark.h:32
Contains makVrv::DtBuoyBeaconModelStringParser class.
boost::unordered_map< std::string, std::string > ParsedAttributeValueMap
This type defines a map from attribute name to the value we parsed for it.
Definition: DtBuoyBeaconModelStringParser.h:66
AttrValPairs mySearchPairs
Definition: DtNavigationMark.h:82
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
unsigned int myShapeSwitchValue
Definition: DtNavigationMark.h:80
void setShape(unsigned int color)
Set/get the switch value this mark should set the model&#39;s daymark or topmark shape switch to...
virtual void setupDesignator(DtArticulatedModelAgent *model, const std::string &designator, const std::string &atlasFileName, DtTextureAtlasIndexParser *parser)
If the nav mark is a daymark, set the designator - 3 character max (ex. &#39;CF&#39;,&#39;123&#39;,&#39;A&#39;)
The DtEntityFacade is a facade around agents that make up an entity. This entity facade represents a ...
Definition: DtBuoyOrBeaconFacade.h:24

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)