VR-Forces 4.1 Class Documentation
DtOsg3DSegmentedLineModel.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 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 void setArrowSize(double);
69 
71  virtual void setArrowStyle(int);
72 
74  virtual void setSegmentLightningStyle(unsigned int segmentIndex,
75  bool enableLightningStyle);
76 
78  virtual void setSegmentStartArrow(unsigned int segmentIndex,
79  bool enableArrow);
80 
82  virtual void setSegmentEndArrow(unsigned int segmentIndex,
83  bool enableArrow);
84 
87  virtual void setSegmentStipplePattern(unsigned int segmentIndex,
88  unsigned int stipplePattern, int repeatFactor);
89 
91  virtual void setSegmentWidth(unsigned int segmentIndex,
92  double width);
93 
96  virtual void setSegmentStartColor( unsigned int segmentIndex, float r,
97  float g, float b, float a );
98 
101  virtual void setSegmentEndColor( unsigned int segmentIndex, float r,
102  float g, float b, float a );
103 
105  virtual void setStopOnTerrainIntersection(bool enabled);
106 
108  virtual void setOcclusionEnabled(bool enabled);
109 
111  virtual void setPickable( bool pickable );
112 
115  virtual void setVisible(bool isVisible);
116 
118  virtual void setSolid(bool isSolid);
119 
121  virtual void setModelDefinition( const std::string& str );
122 
124 
125  //@name Local Interface
127 
129  virtual void addToScene( const DtUniqueID& sceneObjectId, int modelSet,
130  int visualizerType );
131 
133  virtual void removeFromScene();
134 
136  virtual void update();
138 
139 
140  protected:
141 
143  virtual void needsUpdate();
144 
145  protected:
148  };
149 }
150 

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)