VR-Forces 4.1 Class Documentation
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  }
39 
42  {
43  }
44 
46  void setPosition(int index, const DtVector& v)
47  {
48  DtVector local;
49 
51 
52  T::setPosition(index, local);
53  }
54 
57  void setColor(float r, float g, float b, float a)
58  {
59  if ((r == 0) && (g == 0) && (b == 0))
60  {
61  this->useDefaultColor();
62  }
63  else
64  {
65  T::setColor(r, g, b, a);
66  }
67  }
68 
69  protected:
71  };
72 
73  // @{
80  // @}
81  }
82 }

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)