VR-Forces 4.3.1 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 
122  virtual void setIsSupportModel(bool isSupport);
123 
125  virtual void setModelDefinition( const std::string& str );
126 
128 
129  //@name Local Interface
131 
133  virtual void addToScene( const DtUniqueID& sceneObjectId, int modelSet,
134  int visualizerType );
135 
137  virtual void removeFromScene();
138 
140  virtual void update();
142 
143 
144  protected:
145 
147  virtual void needsUpdate();
148 
149  protected:
152  };
153 }
154 

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)