VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtVrlinkEllipseVisualizers.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
12 
13 #pragma once
14 
15 #include <vrvVrl/vrvVrl.h>
18 
21 
22 #include <matrix/topoCoord.h>
23 
24 namespace makVrv
25 {
26  namespace DT_PROTOCOL_NAMESPACE
27  {
28  template <typename T>
29  class DtVrlinkEllipseVisualizer : public T
30  {
31  public:
34  int modelSet)
35  : T(simulation, listener, modelSet)
36  , myVrlinkConnection((dynamic_cast<DtVrlinkConnection&>(simulation)))
37  {
38  this->myConnections.manageConnection(
41  this ) ) );
42  }
43 
46  {
47  }
48 
50  void setPosition(int index, const DtVector& v)
51  {
52  DtVector local;
53 
55 
56  T::setPosition(index, local);
57  }
58 
61  void setColor(float r, float g, float b, float a)
62  {
63  if ((r == 0) && (g == 0) && (b == 0))
64  {
65  this->useDefaultColor();
66  }
67  else
68  {
69  T::setColor(r, g, b, a);
70  }
71  }
72 
73  virtual void resetSpatial()
74  {
75  this->setPoints(this->myEllipseListener.controlPoints());
76  }
77 
78  protected:
80  };
81 
82  // @{
89  // @}
90  }
91 }

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)