VR-Forces 4.0.4 Class Documentation
include/vrvDrawControl/DtEllipseRectangleBase.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2006 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtEllipseRectangleBase.h,v $ $Revision: 1.3 $ $State: Exp $
00007 ******************************************************************************/
00008 #pragma once
00009 
00015 
00016 #include <vlutil/vlString.h>
00017 
00018 #include <vrvDrawControl/vrvDrawControlDefines.h>
00019 
00020 #include <vrvDrawControl/Dt2DPositionedObject.h>
00021 #include <vrvDrawControl/DtVdcVector2D.h>
00022 
00023 #include <vrvDrawControl/DtVdcColor.h>
00024 #include <vrfExtObjects/2dGraphicalObjectStateRecord.h>
00025 
00026 namespace vrvControlToolkit
00027 {
00028 
00040    class DT_DLL_VRVDRAWCONTROL DtEllipseRectangleBase : public Dt2DPositionedObject
00041    {
00042    protected:
00071       DtEllipseRectangleBase(DtExerciseConn* exConn, unsigned id, const DtString& objName,
00072          const DtVdcVector2D& position, const DtVdcVector2D& size, 
00073          double rotation = 0.0, double scale = 1.0, 
00074          DtVdcColor color = DtVdcColor::DtVdcWhite, bool fill = false, 
00075          unsigned pattern = 0xffffffff, bool flashing = false);
00076       /*
00081       DtEllipseRectangleBase( const DtEllipseRectangleBase& orig );
00082 
00084       DtEllipseRectangleBase& operator=( const DtEllipseRectangleBase& rhs );
00085       */
00086       // \brief Virtual destructor
00087       virtual ~DtEllipseRectangleBase();
00088 
00089    private:
00094       DtEllipseRectangleBase();
00095 
00096    public:
00102       virtual DtVdcVector2D position() const;
00103 
00109       virtual void setPosition( const DtVdcVector2D& position );
00110 
00116       virtual DtVdcVector2D size() const;
00117 
00123       virtual void setSize( const DtVdcVector2D& size );
00124 
00130       virtual double rotation() const;
00131 
00137       virtual void setRotation( double rotation );
00138 
00144       virtual const DtVdcColor& color() const;
00145 
00151       virtual void setColor (const DtVdcColor& color );
00152 
00159       virtual bool fill() const;
00160 
00167       virtual void setFill( bool fill );
00168 
00174       virtual unsigned pattern() const;
00175 
00183       virtual void setPattern( unsigned pattern );
00184 
00190       virtual bool flashing() const;
00191 
00197       virtual void setFlashing( bool flashing );
00198 
00204       virtual double scale() const;
00205 
00211       virtual void setScale( double scale );
00212 
00213       virtual void setRemoteGraphicSet(const std::string& setName);
00214 
00223       virtual void update();
00224 
00225    protected:
00226       DtVdcVector2D myPosition;
00227       DtVdcVector2D mySize;
00228       DtVdcColor myColor;
00229       unsigned myPattern;
00230       bool myFill;
00231       double myRotation;
00232       bool myFlashing;
00233       double myScale;
00234 
00235       Dt2DGraphicalObjectStateRecord* myStateRecord;
00236    };
00237 
00238 }

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)