VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtVrlinkBoxVisualizers.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 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  this->myConnections.manageConnection(
38  this ) ) );
39  }
40 
42  {
43  }
44 
46  virtual void setOrigin(const DtVector& v)
47  {
48  DtVector local;
49 
51 
52  T::setOrigin(local);
53  }
54 
56  virtual void addPoint(int index, const DtVector& v)
57  {
58  DtVector local;
59 
61 
62  T::addPoint(index, local);
63  }
64 
66  virtual void modifyPoint(int index, const DtVector& v)
67  {
68  DtVector local;
69 
71 
72  T::modifyPoint(index, local);
73  }
74 
75  virtual void setPoints(
77  {
79  DtEnvironmentalStateListener::ControlPointsList::iterator w = locals.begin();
80 
81  DtEnvironmentalStateListener::ControlPointsList::const_iterator i = v.begin();
82  DtEnvironmentalStateListener::ControlPointsList::const_iterator e = v.end();
83  for(;i != e;++i,++w)
84  {
86  }
87  T::setPoints(locals);
88  }
89 
90  protected:
92  };
93 
96  }
97 }

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)