VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtOsgOverlayEllipseArcModelInstance.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2015 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvOsg/vrvOsg.h>
13 #include <matrix/vlDcm.h>
14 #include <osg/Vec2>
16 
17 #include <osg/Texture>
18 
19 namespace makVrv
20 {
21 
22  class DtDe;
23  class DtPolygon;
24  class DtChannelManager;
25  class DtChannel;
26 
30  {
31  public:
32 
35 
38 
40  virtual void setModelSet( int modelSet );
41 
42  public:
43 
45  virtual void setMaxAngleSegment( double angleSegmentMax );
46 
48  virtual void setGeometry( double angle, double sweep );
49 
51  virtual void setDimensions( float x, float y );
52  virtual void dimensions( float& x, float& y);
54  virtual void setRelativePosition( double x, double y, double z );
55 
57  virtual void setPosition( const DtVector& position );
58  DtVector position() const;
59 
61  virtual void setOrientation( const DtTaitBryan& orientation );
62 
64  virtual void setScale( float scale );
65 
67  virtual void setInsideColor( float r, float g, float b, float a );
68 
70  virtual void setOutsideColor( float r, float g, float b, float a );
71 
75  virtual void setCentralVertexColor( float r, float g, float b, float a);
76 
78  virtual void setVisible( bool isVisible );
79 
81  virtual void setSolidFillCenter(bool);
82 
84  virtual void setFill(bool);
85 
87  virtual void setOutlineWidth(float);
88 
90  virtual void setEventsEnabled(bool, unsigned long long userData);
91 
93  virtual void setFillPattern(const std::vector<unsigned int> pattern);
94 
96  virtual void setOutline(bool);
97 
99  virtual void setColor(float r,float g,float b,float a);
100 
103  virtual void setGroup( int );
104 
110  virtual void setTexturePath(const std::string& texturePath);
111 
113  virtual void setOutlineTexture(const std::string& texturePath);
114 
116  virtual void setOutlineTexture(osg::Texture* texture);
117 
119  virtual void setStipplePattern(unsigned int stipplePattern);
120 
121  virtual bool realize( DtModelDefinition& definition );
122 
124  virtual void updateVertices();
125 
126  protected:
127 
129  virtual void createPolygonIfNecessary();
130 
132  virtual void channelUpdated(DtTacticalGraphicModelUpdaterManager::ChannelUpdateData);
133 
135  virtual void updateColors();
136 
137 
139  virtual void set3DVertexPosition( unsigned int index, double x, double y, double z );
140 
142  virtual void set3DCentroidPosition( double x, double y, double z );
143 
145  virtual void set3DPositionAux( double x, double y, double z, float tempPackedCoords[4] );
146 
147  protected:
148 
149  unsigned int myModelSet;
152 
154  osg::Vec4 myInnerColor;
155  osg::Vec4 myOuterColor;
156  osg::Vec2 myDimensions;
157  osg::Vec3d myRelativePosition;
158  osg::Vec3d myPosition;
159  float myScale;
160 
161  double myAngle;
162  double mySweep;
163 
166 
167  float myWidth;
169  unsigned long long myUserData;
170 
171  bool myVisible;
172  bool myOutline;
175  unsigned int myStipplePattern;
177  int myGroup;
178 
179  osg::ref_ptr<osg::Texture> myOutlineTexture;
180  };
181 
182 }

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)