VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtEllipseRectangleBase.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2006 MaK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtEllipseRectangleBase.h,v $ $Revision: 1.3 $ $State: Exp $
7 ******************************************************************************/
8 #pragma once
9 
15 
16 #include <vlutil/vlString.h>
17 
19 
22 
25 
26 namespace vrvControlToolkit
27 {
28 
41  {
42  protected:
71  DtEllipseRectangleBase(DtExerciseConn* exConn, unsigned id, const DtString& objName,
72  const DtVdcVector2D& position, const DtVdcVector2D& size,
73  double rotation = 0.0, double scale = 1.0,
74  DtVdcColor color = DtVdcColor::DtVdcWhite, bool fill = false,
75  unsigned pattern = 0xffffffff, bool flashing = false);
76  /*
81  DtEllipseRectangleBase( const DtEllipseRectangleBase& orig );
82 
84  DtEllipseRectangleBase& operator=( const DtEllipseRectangleBase& rhs );
85  */
86  // \brief Virtual destructor
87  virtual ~DtEllipseRectangleBase();
88 
89  private:
95 
96  public:
102  virtual DtVdcVector2D position() const;
103 
109  virtual void setPosition( const DtVdcVector2D& position );
110 
116  virtual DtVdcVector2D size() const;
117 
123  virtual void setSize( const DtVdcVector2D& size );
124 
130  virtual double rotation() const;
131 
137  virtual void setRotation( double rotation );
138 
144  virtual const DtVdcColor& color() const;
145 
151  virtual void setColor (const DtVdcColor& color );
152 
159  virtual bool fill() const;
160 
167  virtual void setFill( bool fill );
168 
174  virtual unsigned pattern() const;
175 
183  virtual void setPattern( unsigned pattern );
184 
190  virtual bool flashing() const;
191 
197  virtual void setFlashing( bool flashing );
198 
204  virtual double scale() const;
205 
211  virtual void setScale( double scale );
212 
213  virtual void setRemoteGraphicSet(const std::string& setName);
214 
223  virtual void update();
224 
225  protected:
229  unsigned myPattern;
230  bool myFill;
231  double myRotation;
233  double myScale;
234 
236  };
237 
238 }
A common base class for representing ellipses and rectangles.
Definition: DtEllipseRectangleBase.h:40
Dt2DGraphicalObjectStateRecord * myStateRecord
Definition: DtEllipseRectangleBase.h:235
bool myFlashing
Definition: DtEllipseRectangleBase.h:232
voidpf void uLong size
Definition: ioapi.h:39
static const DtVdcColor DtVdcWhite
Constant for the color White.
Definition: DtVdcColor.h:189
double myScale
Definition: DtEllipseRectangleBase.h:233
Definition: DtVdcVector2D.h:36
unsigned myPattern
Definition: DtEllipseRectangleBase.h:229
DtVdcColor represents colors for Draw Control Objects.
Definition: DtVdcColor.h:24
DtVdcVector2D myPosition
Definition: DtEllipseRectangleBase.h:226
#define DT_DLL_VRVDRAWCONTROL
Definition: vrvDrawControl.h:15
DtVdcColor myColor
Definition: DtEllipseRectangleBase.h:228
Definition: Dt2DPositionedObject.h:17
double myRotation
Definition: DtEllipseRectangleBase.h:231
Dt2DGraphicalObjectStateRecord implements the 2d graphical object state record for the remote graphic...
Definition: 2dGraphicalObjectStateRecord.h:36
bool myFill
Definition: DtEllipseRectangleBase.h:230
DtVdcColor.h contains the class definition for DtVdcColor, which is used to represent colors for all ...
Contains the Dt2DGraphicalObjectStateRecord class declaration.
DtVdcVector2D mySize
Definition: DtEllipseRectangleBase.h:227

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)