VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtTriangle2DObject.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2006 MaK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: sdcTriangle2DObj.h,v $ $Revision: 1.2 $ $State: Exp $
7 ******************************************************************************/
8 #pragma once
9 
14 
15 #include <vlutil/vlString.h>
16 
18 
23 
24 #include <vl/exerciseConn.h>
25 
26 namespace vrvControlToolkit
27 {
34  {
35  public:
70  DtTriangle2DObject(DtExerciseConn* exConn, unsigned id, const DtVdcVector2D& vertex1,
71  const DtVdcVector2D& vertex2, const DtVdcVector2D& vertex3,
73  const DtVdcVector2D& scale= DtVdcVector2D::ones(),
74  double rotation = 0.0, DtVdcColor color = DtVdcColor::DtVdcWhite,
75  bool fill = false, unsigned pattern = 0xffffffff, bool flashing = false );
76 
82 
84  DtTriangle2DObject& operator=( const DtTriangle2DObject& rhs );
85 
86  // \brief Virtual destructor
87  virtual ~DtTriangle2DObject();
88 
89  private:
95 
96  public:
102  virtual DtVdcVector2D vertex1() const;
103 
109  virtual void setVertex1( const DtVdcVector2D& vertex );
110 
116  virtual DtVdcVector2D vertex2() const;
117 
123  virtual void setVertex2( const DtVdcVector2D& vertex );
124 
130  virtual DtVdcVector2D vertex3() const;
131 
137  virtual void setVertex3( const DtVdcVector2D& vertex );
138 
144  virtual DtVdcVector2D offset() const;
145 
151  virtual void setOffset( const DtVdcVector2D& offset );
152 
158  virtual DtVdcVector2D scale() const;
159 
165  virtual void setScale( const DtVdcVector2D& scale );
166 
172  virtual double rotation() const;
173 
179  virtual void setRotation( double rotation );
180 
186  virtual const DtVdcColor& color() const;
187 
193  virtual void setColor (const DtVdcColor& color );
194 
201  virtual bool fill() const;
202 
209  virtual void setFill( bool fill );
210 
216  virtual unsigned pattern() const;
217 
225  virtual void setPattern( unsigned pattern );
226 
232  virtual bool flashing() const;
233 
239  virtual void setFlashing( bool flashing );
240 
241  virtual void setRemoteGraphicSet(const std::string& setName);
242 
251  virtual void update();
252 
253  protected:
254 
255  virtual DtVdcVector2D transformVertex(const DtVdcVector2D& v, const DtVdcVector2D& center) const;
256  virtual void transformVertices();
257 
263 
265  unsigned myPattern;
266  bool myFill;
267  double myRotation;
269 
271  };
272 
273 }
DtVdcVector2D myVertex1
Definition: DtTriangle2DObject.h:258
static const DtVdcVector2D & ones()
DtDrawControlObject.h contains the class definition for DtDrawControlObject, the base class from whic...
bool myFlashing
Definition: DtTriangle2DObject.h:268
DtVdcVector2D myScale
Definition: DtTriangle2DObject.h:262
DtVdcVector2D myVertex3
Definition: DtTriangle2DObject.h:260
static const DtVdcColor DtVdcWhite
Constant for the color White.
Definition: DtVdcColor.h:189
unsigned myPattern
Definition: DtTriangle2DObject.h:265
bool myFill
Definition: DtTriangle2DObject.h:266
Definition: DtVdcVector2D.h:36
A 2D triangular Stealth Draw Control Object.
Definition: DtTriangle2DObject.h:33
DtVdcVector2D myOffset
Definition: DtTriangle2DObject.h:261
DtVdcColor myColor
Definition: DtTriangle2DObject.h:264
double myRotation
Definition: DtTriangle2DObject.h:267
DtVdcVector2D myVertex2
Definition: DtTriangle2DObject.h:259
DtVdcColor represents colors for Draw Control Objects.
Definition: DtVdcColor.h:24
DtDrawControlObject is the base class from which all Draw Control Objects are derived.
Definition: DtDrawControlObject.h:35
Dt2DGraphicalObjectStateRecord * myStateRecord
Definition: DtTriangle2DObject.h:270
#define DT_DLL_VRVDRAWCONTROL
Definition: vrvDrawControl.h:15
Dt2DGraphicalObjectStateRecord implements the 2d graphical object state record for the remote graphic...
Definition: 2dGraphicalObjectStateRecord.h:36
voidpf uLong offset
Definition: ioapi.h:42
DtVdcColor.h contains the class definition for DtVdcColor, which is used to represent colors for all ...
Contains the Dt2DGraphicalObjectStateRecord class declaration.
static const DtVdcVector2D & zero()

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)