VR-Forces Development_Version 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 
13 #include <vrvCore/DtUniqueID.h>
14 
16 
17 #include <matrix/vlVector.h>
18 
19 namespace makVrv
20 {
21  class DtDe;
22 
26  {
27  public:
28 
31 
33  virtual ~DtOsg3DSegmentedLineModel();
34 
35  //@name Distributed Interface
37 
39  virtual void setPosition( int vtx, const DtVector& position );
40 
42  virtual void removePosition( int vtx );
43 
45  virtual void setOrientation( int vtx, const DtTaitBryan& orientation );
46 
48  virtual void setColor( float r, float g, float b, float a );
49 
51  virtual void setWidth( float width );
52 
54  virtual void setStipplePattern( unsigned int pattern, int repeatFactor );
55 
58  virtual void setStyleSegments(const std::vector<double>& segmentPercentages);
59 
61  virtual void setSegmentColor(unsigned int segmentIndex,
62  float r, float g, float b, float a);
63 
65  virtual const std::vector<DtVector>& points() const;
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 
119  virtual void setIsSupportModel(bool isSupport);
120 
122  virtual void setModelDefinition( const std::string& str );
123 
125 
126  //@name Local Interface
128 
130  virtual void addToScene( const DtUniqueID& sceneObjectId, int modelSet,
131  int visualizerType );
132 
134  virtual void removeFromScene();
135 
137  virtual void update();
139 
140 
141  protected:
142 
144  virtual void needsUpdate();
145 
146  protected:
149  };
150 }
151 

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)