VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtOsg3DSegmentedLineModel.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
14 #include <vrvCore/DtUniqueID.h>
15 
17 
18 #include <osg/Group>
19 
20 #include <matrix/vlVector.h>
21 
22 namespace makVrv
23 {
24  class DtDe;
25 
29  {
30  public:
31 
34 
36  virtual ~DtOsg3DSegmentedLineModel();
37 
38  //@name Distributed Interface
40 
42  virtual void setPosition( int vtx, const DtVector& position );
43 
45  virtual void removePosition( int vtx );
46 
48  virtual void setOrientation( int vtx, const DtTaitBryan& orientation );
49 
51  virtual void setColor( float r, float g, float b, float a );
52 
54  virtual void setWidth( float width );
55 
57  virtual void setStipplePattern( unsigned int pattern, int repeatFactor );
58 
61  virtual void setStyleSegments(const std::vector<double>& segmentPercentages);
62 
64  virtual void setSegmentColor(unsigned int segmentIndex,
65  float r, float g, float b, float a);
66 
68  virtual const std::vector<DtVector>& points() const;
69 
71  virtual void setArrowSize(double);
72 
74  virtual void setArrowStyle(int);
75 
77  virtual void setSegmentLightningStyle(unsigned int segmentIndex,
78  bool enableLightningStyle);
79 
81  virtual void setSegmentStartArrow(unsigned int segmentIndex,
82  bool enableArrow);
83 
85  virtual void setSegmentEndArrow(unsigned int segmentIndex,
86  bool enableArrow);
87 
90  virtual void setSegmentStipplePattern(unsigned int segmentIndex,
91  unsigned int stipplePattern, int repeatFactor);
92 
94  virtual void setSegmentWidth(unsigned int segmentIndex,
95  double width);
96 
99  virtual void setSegmentStartColor( unsigned int segmentIndex, float r,
100  float g, float b, float a );
101 
104  virtual void setSegmentEndColor( unsigned int segmentIndex, float r,
105  float g, float b, float a );
106 
108  virtual void setStopOnTerrainIntersection(bool enabled);
109 
111  virtual void setOcclusionEnabled(bool enabled);
112 
114  virtual void setPickable( bool pickable );
115 
118  virtual void setVisible(bool isVisible);
119 
121  virtual void setSolid(bool isSolid);
122 
124  virtual void setModelDefinition( const std::string& str );
125 
127 
128  //@name Local Interface
130 
132  virtual void addToScene( const DtUniqueID& sceneObjectId, int modelSet,
133  int visualizerType );
134 
136  virtual void removeFromScene();
137 
139  virtual void update();
141 
142 
143  protected:
144 
146  virtual void needsUpdate();
147 
148  protected:
151  };
152 }
153 

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)