VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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>
13 
15 #include <vrvCore/DtUniqueID.h>
16 
17 #include <matrix/vlVector.h>
18 
19 namespace makVrv
20 {
21  class DtDe;
22 
23  class DtOsgSceneConnector;
24 
28  {
29  public:
30 
33 
35  virtual ~DtOsg3DSegmentedLineModel();
36 
37  //@name Distributed Interface
39 
41  virtual void setPosition( int vtx, const DtVector& position );
42 
44  virtual void removePosition( int vtx );
45 
47  virtual void setOrientation( int vtx, const DtTaitBryan& orientation );
48 
50  virtual void setColor( float r, float g, float b, float a );
51 
53  virtual void setWidth( float width );
54 
56  virtual void setStipplePattern( unsigned int pattern, int repeatFactor );
57 
60  virtual void setStyleSegments(const std::vector<double>& segmentPercentages);
61 
63  virtual void setSegmentColor(unsigned int segmentIndex,
64  float r, float g, float b, float a);
65 
67  virtual const std::vector<DtVector>& points() const;
68 
70  virtual void setArrowSize(double);
71 
73  virtual void setArrowStyle(int);
74 
76  virtual void setSegmentLightningStyle(unsigned int segmentIndex,
77  bool enableLightningStyle);
78 
80  virtual void setSegmentStartArrow(unsigned int segmentIndex,
81  bool enableArrow);
82 
84  virtual void setSegmentEndArrow(unsigned int segmentIndex,
85  bool enableArrow);
86 
89  virtual void setSegmentStipplePattern(unsigned int segmentIndex,
90  unsigned int stipplePattern, int repeatFactor);
91 
93  virtual void setSegmentWidth(unsigned int segmentIndex,
94  double width);
95 
98  virtual void setSegmentStartColor( unsigned int segmentIndex, float r,
99  float g, float b, float a );
100 
103  virtual void setSegmentEndColor( unsigned int segmentIndex, float r,
104  float g, float b, float a );
105 
107  virtual void setStopOnTerrainIntersection(bool enabled);
108 
110  virtual void setOcclusionEnabled(bool enabled);
111 
113  virtual void setPickable( bool pickable );
114 
117  virtual void setVisible(bool isVisible);
118 
121  virtual void setIsSupportModel(bool isSupport);
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 Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)