VR-Forces 4.1.1 Class Documentation
DtVrlinkBoxVisualizers.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
11 
12 #pragma once
13 
14 #include <vrvVrl/vrvVrl.h>
16 
19 
20 #include <matrix/topoCoord.h>
21 
22 namespace makVrv
23 {
24  namespace DT_PROTOCOL_NAMESPACE
25  {
26  template <typename T>
27  class DtVrlinkBoxVisualizer : public T
28  {
29  public:
31  int modelSet)
32  : T(simulation, listener, modelSet)
33  , myVrlinkConnection((dynamic_cast<DtVrlinkConnection&>(simulation)))
34  {
35  }
36 
38  {
39  }
40 
42  virtual void setOrigin(const DtVector& v)
43  {
44  DtVector local;
45 
47 
48  T::setOrigin(local);
49  }
50 
52  virtual void addPoint(int index, const DtVector& v)
53  {
54  DtVector local;
55 
57 
58  T::addPoint(index, local);
59  }
60 
62  virtual void modifyPoint(int index, const DtVector& v)
63  {
64  DtVector local;
65 
67 
68  T::modifyPoint(index, local);
69  }
70 
71  virtual void setPoints(
73  {
75  DtEnvironmentalStateListener::ControlPointsList::iterator w = locals.begin();
76 
77  DtEnvironmentalStateListener::ControlPointsList::const_iterator i = v.begin();
78  DtEnvironmentalStateListener::ControlPointsList::const_iterator e = v.end();
79  for(;i != e;++i,++w)
80  {
82  }
83  T::setPoints(locals);
84  }
85 
86  protected:
88  };
89 
92  }
93 }

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)