VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtOsgWindowEllipseInstance.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtOsgWindowEllipseInstance.h,v $ $Revision: 1.17 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtOsgWindowEllipseInstance_H_
14 #define DtOsgWindowEllipseInstance_H_
15 
16 #include <vrvOsg/vrvOsg.h>
18 #include <osg/Vec2>
19 
20 namespace makVrv
21 {
22  class DtDe;
23  class DtPolygon;
24 
29  {
30  public:
33 
35  virtual ~DtOsgWindowEllipseInstance();
36 
38  virtual void setVisible(bool isVisible);
39 
41  virtual void setFillPattern(unsigned int fillPattern);
42 
44  virtual void setFill(bool fill);
45 
47  virtual void setScale(double scale);
48 
50  virtual void setRotation(double rotation);
51 
53  virtual void setNumVertices(unsigned int numVertices);
54 
57  virtual void setDimensions(double xLength, double yLength);
58 
61  virtual void setCenter(double x, double y);
62 
64  virtual void setColor(float r,float g,float b,float a);
65 
67  virtual bool visible();
68 
69  protected:
71  static osg::Vec2 rotate(const osg::Vec2& v, double rad);
72 
74  static osg::Vec2 translate( const osg::Vec2& v, const osg::Vec2& translation );
75 
77  static osg::Vec2 scale( const osg::Vec2& v, double s );
78 
80  virtual void updateVertices();
81 
84  virtual void createPolygon();
85 
88 
89  double myRotation;
90  double myScale;
91  unsigned int myFillPattern;
92  float myColorR, myColorG, myColorB, myColorA;
93  bool myFill;
94  osg::Vec2 myDimensions;
95  osg::Vec2 myCenter;
97  };
98 }
99 
100 #endif

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)