VR-Forces 4.1 Class Documentation
DtProp.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtProp.h,v $ $Revision: 1.35 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtProp_H_
14 #define DtProp_H_
15 
16 #include <vrvCore/vrvCore.h>
17 
19 #include <vrvCore/DtUniqueID.h>
20 
22 #include <string>
23 
24 class DtVector;
25 
26 namespace makVrv
27 {
28  class DtDe;
29  class DtModelAgent;
30  class DtSceneObjectAgent;
31  class DtScribeBoxModelAgent;
32  class DtAgentManagerInterface;
33 
37  {
38  public:
39 
41  DtProp(DtDe& de, DtAgentManagerInterface& agentManagerInterface,
42  const std::string& propType, const std::string& name);
43 
44  private:
45 
47  DtProp(const DtProp& copy);
48 
50  DtProp& operator=(const DtProp& copy);
51 
52  public:
53 
55  ~DtProp();
56 
58  void destroy();
59 
61  bool operator==(const DtProp& prop) const;
62 
64  bool getRecord(makArchives::DtPropRecord& recOut) const;
65 
67  void setFromRecord(const makArchives::DtPropRecord& rec);
68 
70  void setColorFilter(float r, float g, float b, float a);
71 
73  void setVisible(bool isVisible);
74 
76  void setScribed(bool isSelected);
77 
79  bool scribed() const;
80 
82 
84  DtUniqueID uniqueID() const;
85 
87  void getPosition(double& x, double& y, double& z) const;
88 
90  void setPosition(double x, double y, double z);
91 
93  void getOrientation(double& x, double& y, double& z, double& w) const;
94 
96  void setOrientation(double x, double y, double z, double w);
97 
99  const std::string& propType() const;
100 
102  void setPropType(const std::string& proptype);
103 
105  const std::string& modelDefinition() const;
106 
108  void setModelDefinition(const std::string& modelDefinition);
109 
111  void setExternalNodeLocation(const std::string& searchExpression, unsigned int index);
112 
114  const std::string& searchExp() const;
115 
117  unsigned int searchIndex() const;
118 
120 
121  float red() const;
122  float green() const;
123  float blue() const;
124  float alpha() const;
126 
128  const std::string& name() const;
129 
131  void setName(const std::string& name);
132 
133  bool isVisible() const;
134 
136 
137  const DtSceneObjectAgent* sceneObject() const;
139 
141 
142  DtSceneObjectAgent* sceneObject();
144 
146  const DtModelAgent* model() const;
147 
149  DtModelAgent* model();
150 
152  bool operator!=(const DtProp& prop) const;
153 
154  protected:
155 
156  virtual void selectionChanged( const DtSelectionManager::IdSet& selected,
157  const DtSelectionManager::IdSet& deselected );
158 
159  protected:
160 
162 
163  std::string myPropType;
164  DtSceneObjectAgent* mySceneObject;
165  DtModelAgent* myObjectModel;
166  DtScribeBoxModelAgent* myScribeBoxModel;
167 
169  std::string myModelDefinition;
170 
172  std::string mySearchExp;
173  unsigned int mySearchIndex;
174 
176  std::string myName;
177 
180 
182  float myAlpha;
183  float myR;
184  float myG;
185  float myB;
186 
191  double myPosX;
192  double myPosY;
193  double myPosZ;
194 
195  //The Loaded orientation quaternion (x,y,z,w).
200 
201  //Runtime state.
203 
205  };
206 
207 }
208 
209 #endif
210 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)