VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtEllipsoidArcModelInstance.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtEllipsoidArcModelInstance.h,v $ $Revision: 1.0 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtEllipsoidArcModelInstance_H_
14 #define DtEllipsoidArcModelInstance_H_
15 
16 #include <vrvOsg/vrvOsg.h>
18 
19 #include <osg/Geode>
20 #include <osg/MatrixTransform>
21 
22 namespace makVrv
23 {
27  {
28  public:
29 
31  {
32  float xLength; // diameter along x axis
33  float yLength; // diameter along y axis
34  float zLength; // diameter along z axis
35  double azimuthMin; // display segment of ellipsoid with above this azimuth
36  double azimuthMax; // display segment of ellipsoid with up to this azimuth
37  double inclinationMin; // display segment of ellipsoid with above this inclination
38  double inclinationMax; // display segment of ellipsoid with up to this azimuth
39  float rColor; // RGBA red value
40  float gColor; // RGBA green value
41  float bColor; // RGBA blue value
42  float aColor; // RGBA alpha value
43  bool flashing; // Like HTML blink
44  int maxTriangles; // maximum # of triangles to use
45  };
46 
49 
51 
53  virtual ~DtEllipsoidArcModelInstance();
54 
56  virtual void setDimensions(double x, double y, double z);
57 
59  virtual void setColor(float r,float g,float b,float a);
60 
63  virtual bool realize(DtModelDefinition& definition);
64 
66  virtual void addToConnector( DtOsgSceneConnector* connector );
67 
69  virtual bool removeFromConnector( DtOsgSceneConnector* connector );
70 
72  virtual void setVisible(bool isVisible) {}
73 
74  protected:
77 
79  virtual void build(const EllipsoidArcParameters& parameters);
80 
83 
84  osg::ref_ptr<osg::Geode> myFrontGeode;
85  osg::ref_ptr<osg::Geode> myBackGeode;
86  osg::ref_ptr<osg::MatrixTransform> myTransform;
87  };
88 
92  {
93  public:
94 
96  static void registerCreator(DtDe& de);
97 
100 
102  virtual DtModelInstance* create(DtDe& de);
103 
104  protected:
105 
107  };
108 }
109 
110 #endif
111 

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)