VR-Forces 4.1 Class Documentation
DtArea3DObject.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2007 MaK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtArea3DObject.h,v $ $Revision: 1.4 $ $State: Exp $
7 ******************************************************************************/
8 #pragma once
9 
17 
18 #include <vector>
19 
20 #include <vlutil/vlString.h>
21 
23 
25 
27 
28 #include <vl/envPoint.h>
29 #include <vl/envBndSphere.h>
31 
32 
43 
44 namespace vrvControlToolkit
45 {
47  {
48  public:
59  DtArea3DObject(DtExerciseConn* exConn, unsigned id, std::vector<DtVector> vertices,
60  DtVector offset = DtVector::zero(),
62  const DtString& textureDirectory = "",
63  const DtString& textureFilename = DtString::nullString(),
64  int numTextureTiles = 0, bool flashing = false);
65 
66  // \brief Virtual destructor
67  virtual ~DtArea3DObject();
68 
69  private:
75 
79  DtArea3DObject(const DtArea3DObject& orig);
80 
84  DtArea3DObject& operator=(const DtArea3DObject& rhs);
85 
86  public:
93  virtual const DtVector& offset() const;
94 
100  virtual void setOffset(const DtVector& off);
101 
109  virtual const DtVdcColor& color() const;
110 
118  virtual void setColor (const DtVdcColor& color);
119 
125  virtual bool flashing() const;
126 
132  virtual void setFlashing(bool flashing);
133 
139  virtual const DtString& textureDirectory() const;
140 
146  virtual void setTextureDirectory(const DtString& str);
147 
153  virtual const DtString& textureFilename() const;
154 
160  virtual void setTextureFilename(const DtString& str);
161 
162 
168  virtual int numTextureTiles() const;
169 
175  virtual void setNumTextureTiles(int numTextureTiles);
176 
185  virtual void update();
186 
195  virtual const DtVector& vertex(int index) const;
196  //virtual DtVector& vertex();
197 
205  virtual void setVertex(int index, const DtVector& vertex);
206 
207  virtual void setRemoteGraphicSet(const std::string& setName);
208 
209  protected:
210  virtual void calculateBoundingSphere();
211  virtual void setStateRecordUserData();
212  void initRecords();
213 
214  protected:
219  std::vector<DtVector> myVertices;
220 
224 
225  std::vector<DtEnvironmentalPointRecord> myPointRecords;
226  DtEnvironmentalBoundingSphereRecord myBoundingSphereRecord;
228 
230  };
231 }

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)