VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
sensorContactLinesModel.h
Go to the documentation of this file.
1 
6 
10 
11 #pragma once
12 
13 #include <vrfGuiCore/vrfGuiCore.h>
14 #include <osg/Geometry>
19 
20 namespace makVrf
21 {
25  {
26  public:
29 
31  virtual ~DtSensorContactLinesModel();
32 
34  virtual void setColor(float r, float g, float b, float a);
35 
37  virtual void setLineWidth(float width);
38 
40  virtual void setHasArrowEndCap(bool);
41 
42  virtual void addLineModel();
43 
45  virtual void setArrowSize(double);
46 
48  virtual void setVisible(int line, bool visible);
49 
51  virtual void removeLineModel(int);
52  virtual makVrv::DtSegmentedLineModel* createGeometryLineModel();
53 
54  protected:
55  float myColor[4];
57  float myLineWidth;
58  double myArrowSize;
59 
60  std::vector<bool> myVisibilityStates;
61  };
62 
64  {
65  public:
68 
69  virtual void setArrowSize(double);
70  };
71 
73  {
74  public:
77 
78  virtual void setArrowSize(double);
79  virtual makVrv::Dt3DLineModelInstanceSegmentInterface* createSegment();
80  virtual void setPosition(int, const DtVector&);
81 
82  protected:
83  double myArrowSize;
84  };
85 
87  {
88  public:
91 
92  virtual void setArrowSize(double d);
93  virtual void setOrigin(const DtVector&);
94 
95  virtual void calculateArrowVertices(
96  const osg::Vec3d& segmentStart, const osg::Vec3d& segmentEnd,
97  osg::Vec3d& arrowStartOut, osg::Vec3d& arrowEndOut);
98 
99  protected:
100  double myArrowSize;
103  };
104 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)