VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vrfOverlayEllipseArcModel.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 <vrfGuiCore/vrfGuiCore.h>
15 
16 namespace makVrf
17 {
18  class DtVrfOverlayEllipseArcModelInstance;
19 
23  {
24  public:
27 
29  virtual ~DtVrfOverlayEllipseArcModel();
30 
31  virtual void setArcOnly(bool);
32 
33  virtual void setWedgeSpacing(double);
34 
35  virtual void setDimensions(double x, double y, const std::vector<double>& wedgeSizes);
36 
38  virtual void setOutsideColor(float r, float g, float b, float a);
39 
41  virtual void setInsideColor(float r, float g, float b, float a);
42 
44  virtual void setOutlineWidth(float w);
45 
47  virtual void setColor(float r, float g, float b, float a);
48 
50  virtual void setVisible(bool b);
51 
53  virtual void setFill(bool b);
54 
56  virtual void setWedgeColor(int wedge, float r, float g, float b, float a);
57 
58  virtual void addToScene(
59  const makVrv::DtUniqueID& sceneObjectId, int modelSet, int visualizerType );
60 
63 
65  virtual void setPosition( int vtx, const DtVector& position );
66 
68  virtual void setOrientation( int vtx, const DtTaitBryan& orientation );
69 
71 
72  virtual void setStipplePattern(unsigned int);
73 
74  virtual void setLockUpdates(bool b);
75 
76  virtual void setEventsEnabled(bool b);
77 
78  virtual const std::vector<double>& wedges() const;
79 
80  protected:
81  virtual void updateWedges();
82 
83  virtual void createWedges(int numWedges);
84  virtual void initializeModelInstance(DtVrfOverlayEllipseArcModelInstance* mi);
85 
87  virtual void setScale( float scale );
88 
89  protected:
91  std::vector<double> myWedgeSizes;
92 
93  typedef std::vector<DtVrfOverlayEllipseArcModelInstance*> Wedges;
95 
97  DtTaitBryan myOrientation;
98 
100  float myInsideColor[4];
101  float myOutsideColor[4];
102  bool myFill;
104  bool myVisible;
105  bool myArcOnly;
106  osg::Vec2 myDimensions;
107  float myScale;
110  unsigned int myStipplePattern;
111  };
112 
115  {
116  public:
119 
122 
123  virtual void setArcOnly(bool);
124 
126  virtual void setOutsideColor( float r, float g, float b, float a );
127 
128  protected:
130  virtual void updateVertices();
131 
132  protected:
133  bool myArcOnly;
134  };
135 }

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)