VR-Forces 4.0.4 Class Documentation
include/vrvDrawControl/DtText2DObject.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2006 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtText2DObject.h,v $ $Revision: 1.3 $ $State: Exp $
00007 ******************************************************************************/
00008 #pragma once
00009 
00014 
00015 #include <vlutil/vlString.h>
00016 
00017 #include <vrvDrawControl/vrvDrawControlDefines.h>
00018 
00019 #include <vrvDrawControl/DtDrawControlObject.h>
00020 #include <vrvDrawControl/DtVdcVector2D.h>
00021 #include <vrvDrawControl/DtVdcColor.h>
00022 #include <vrfExtObjects/2dGraphicalObjectTextStateRecord.h>
00023 
00024 #include <vl/exerciseConn.h>
00025 
00026 namespace vrvControlToolkit
00027 {
00033    class DT_DLL_VRVDRAWCONTROL DtText2DObject : public DtDrawControlObject
00034    {
00035    public:
00050       DtText2DObject(DtExerciseConn* exConn,  unsigned id,  const DtString& text, 
00051          const DtVdcVector2D& position, DtVdcColor color = DtVdcColor::DtVdcWhite, 
00052          bool flashing = false  );
00053 
00054       // \brief Virtual destructor
00055       virtual ~DtText2DObject();
00056 
00057    private:
00062       DtText2DObject();
00063 
00064    public:
00070       virtual DtString text() const;
00071 
00077       virtual void setText( const DtString& text );
00078 
00084       virtual DtVdcVector2D position() const;
00085 
00091       virtual void setPosition( const DtVdcVector2D& position );
00092 
00098       virtual const DtVdcColor& color() const;
00099 
00105       virtual void setColor (const DtVdcColor& color );
00106 
00112       virtual bool flashing() const;
00113 
00119       virtual void setFlashing( bool flashing );
00120 
00124       virtual void setFont(const char* fontFile, float size);
00125 
00126       virtual void setRemoteGraphicSet(const std::string& setName);
00127 
00136       virtual void update();
00137 
00138    protected:
00139       DtVdcVector2D myPosition;
00140       DtVdcColor myColor;
00141       bool myFlashing;
00142       DtString myText;
00143 
00144       Dt2DGraphicalObjectTextStateRecord* myStateRecord;
00145    };
00146 
00147 }

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)