VR-Forces 5.0.1 Developer's Guide
 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 #pragma once
6 
12 
13 #include <vlutil/vlString.h>
14 
16 
19 
22 
23 namespace vrvControlToolkit
24 {
25 
38  {
39  protected:
68  DtEllipseRectangleBase(DtExerciseConn* exConn, unsigned id, const DtString& objName,
69  const DtVdcVector2D& position, const DtVdcVector2D& size,
70  double rotation = 0.0, double scale = 1.0,
71  DtVdcColor color = DtVdcColor::DtVdcWhite, bool fill = false,
72  unsigned pattern = 0xffffffff, bool flashing = false);
73  /*
78  DtEllipseRectangleBase( const DtEllipseRectangleBase& orig );
79 
81  DtEllipseRectangleBase& operator=( const DtEllipseRectangleBase& rhs );
82  */
83  // \brief Virtual destructor
84  virtual ~DtEllipseRectangleBase();
85 
86  private:
92 
93  public:
99  virtual DtVdcVector2D position() const;
100 
106  virtual void setPosition( const DtVdcVector2D& position );
107 
113  virtual DtVdcVector2D size() const;
114 
120  virtual void setSize( const DtVdcVector2D& size );
121 
127  virtual double rotation() const;
128 
134  virtual void setRotation( double rotation );
135 
141  virtual const DtVdcColor& color() const;
142 
148  virtual void setColor (const DtVdcColor& color );
149 
156  virtual bool fill() const;
157 
164  virtual void setFill( bool fill );
165 
171  virtual unsigned pattern() const;
172 
180  virtual void setPattern( unsigned pattern );
181 
187  virtual bool flashing() const;
188 
194  virtual void setFlashing( bool flashing );
195 
201  virtual double scale() const;
202 
208  virtual void setScale( double scale );
209 
210  virtual void setRemoteGraphicSet(const std::string& setName);
211 
220  virtual void update();
221 
222  protected:
226  unsigned myPattern;
227  bool myFill;
228  double myRotation;
230  double myScale;
231 
233  };
234 
235 }
A common base class for representing ellipses and rectangles.
Definition: DtEllipseRectangleBase.h:37
Dt2DGraphicalObjectStateRecord * myStateRecord
Definition: DtEllipseRectangleBase.h:232
bool myFlashing
Definition: DtEllipseRectangleBase.h:229
voidpf void uLong size
Definition: ioapi.h:39
static const DtVdcColor DtVdcWhite
Constant for the color White.
Definition: DtVdcColor.h:186
double myScale
Definition: DtEllipseRectangleBase.h:230
Definition: DtVdcVector2D.h:33
unsigned myPattern
Definition: DtEllipseRectangleBase.h:226
DtVdcColor represents colors for Draw Control Objects.
Definition: DtVdcColor.h:21
DtVdcVector2D myPosition
Definition: DtEllipseRectangleBase.h:223
#define DT_DLL_VRVDRAWCONTROL
Definition: vrvDrawControl.h:15
DtVdcColor myColor
Definition: DtEllipseRectangleBase.h:225
Definition: Dt2DPositionedObject.h:14
double myRotation
Definition: DtEllipseRectangleBase.h:228
Dt2DGraphicalObjectStateRecord implements the 2d graphical object state record for the remote graphic...
Definition: 2dGraphicalObjectStateRecord.h:36
bool myFill
Definition: DtEllipseRectangleBase.h:227
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:224

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)