VR-Forces 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:
74  DtEllipseRectangleBase(DtExerciseConn* exConn, unsigned id, const DtString& objName,
75  const DtVdcVector2D& position, const DtVdcVector2D& size,
76  double rotation = 0.0, double scale = 1.0,
77  DtVdcColor color = DtVdcColor::DtVdcWhite, bool fill = false,
78  unsigned pattern = 0xffffffff, bool flashing = false);
79  /*
84  DtEllipseRectangleBase( const DtEllipseRectangleBase& orig );
85 
87  DtEllipseRectangleBase& operator=( const DtEllipseRectangleBase& rhs );
88  */
89  // \brief Virtual destructor
90  virtual ~DtEllipseRectangleBase();
91 
92  private:
98 
99  public:
105  virtual DtVdcVector2D position() const;
106 
112  virtual void setPosition( const DtVdcVector2D& position );
113 
119  virtual DtVdcVector2D size() const;
120 
126  virtual void setSize( const DtVdcVector2D& size );
127 
133  virtual double rotation() const;
134 
140  virtual void setRotation( double rotation );
141 
147  virtual const DtVdcColor& color() const;
148 
154  virtual void setColor (const DtVdcColor& color );
155 
162  virtual bool fill() const;
163 
170  virtual void setFill( bool fill );
171 
177  virtual unsigned pattern() const;
178 
186  virtual void setPattern( unsigned pattern );
187 
193  virtual bool flashing() const;
194 
200  virtual void setFlashing( bool flashing );
201 
207  virtual double scale() const;
208 
214  virtual void setScale( double scale );
215 
216  virtual void setRemoteGraphicSet(const std::string& setName);
217 
226  virtual void update();
227 
228  protected:
232  unsigned myPattern;
233  bool myFill;
234  double myRotation;
236  double myScale;
237 
239  };
240 
241 }
A common base class for representing ellipses and rectangles.
Definition: DtEllipseRectangleBase.h:37
Dt2DGraphicalObjectStateRecord * myStateRecord
Definition: DtEllipseRectangleBase.h:238
bool myFlashing
Definition: DtEllipseRectangleBase.h:235
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:236
Definition: DtVdcVector2D.h:33
unsigned myPattern
Definition: DtEllipseRectangleBase.h:232
DtVdcColor represents colors for Draw Control Objects.
Definition: DtVdcColor.h:21
DtVdcVector2D myPosition
Definition: DtEllipseRectangleBase.h:229
#define DT_DLL_VRVDRAWCONTROL
Definition: vrvDrawControl.h:15
DtVdcColor myColor
Definition: DtEllipseRectangleBase.h:231
Definition: Dt2DPositionedObject.h:14
double myRotation
Definition: DtEllipseRectangleBase.h:234
Dt2DGraphicalObjectStateRecord implements the 2d graphical object state record for the remote graphic...
Definition: 2dGraphicalObjectStateRecord.h:36
bool myFill
Definition: DtEllipseRectangleBase.h:233
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:230

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)