VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtExtrudedPolygonModelInstance.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 
12 #include <vrvOsg/vrvOsg.h>
15 
16 namespace makVrv
17 {
21  {
22  public:
23 
26 
29 
31  virtual void setFill(bool);
32 
34  virtual void setPolygonMode(DtExtrudedPolygonModel::PolygonMode mode);
35 
37  virtual void updateGeometry();
38 
40  virtual void setInsideColor(float r,float g,float b,float a);
41 
43  virtual void getInsideColor(float& r, float& g, float& b, float& a) const;
44 
46  virtual void setOutsideColor(float r,float g,float b,float a);
47 
49  virtual void getOutsideColor(float& r, float& g, float& b, float& a) const;
50 
52  virtual void setColor( float r, float g, float b, float a );
53 
54  protected:
56  virtual void updatePoints();
57 
59  virtual void updatePolygons();
60 
62  virtual void addTop();
63 
65  virtual void addBottom();
66 
68  virtual void updateColors();
69 
71  virtual void updateStippling();
72 
76  virtual void calculateCenterPoints();
77 
78  protected:
79  osg::ref_ptr<osg::Geode> myCoverGeode;
80 
81  osg::ref_ptr<osg::Vec3Array> myFillArray;
82  osg::ref_ptr<osg::Geometry> myTopGeometry;
83  osg::ref_ptr<osg::Geometry> myBottomGeometry;
84 
85  bool myFilled;
87  osg::Vec4 myInsideColor;
88  };
89 }

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)