![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2006 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtText3DObject.h,v $ $Revision: 1.3 $ $State: Exp $ 00007 ******************************************************************************/ 00008 #pragma once 00009 00013 00014 #include <vlutil/vlString.h> 00015 00016 #include <vrvDrawControl/vrvDrawControlDefines.h> 00017 00018 #include <vrvDrawControl/Dt3DPositionedObject.h> 00019 #include <vrvDrawControl/DtVdc3DAttachPoint.h> 00020 #include <vrvDrawControl/DtVdcColor.h> 00021 00022 #include <vl/envPoint.h> 00023 #include <vrfExtObjects/3dGraphicalObjectStateRecord.h> 00024 00025 namespace vrvControlToolkit 00026 { 00032 class DT_DLL_VRVDRAWCONTROL DtText3DObject : public Dt3DPositionedObject 00033 { 00034 public: 00052 DtText3DObject(DtExerciseConn* exConn, unsigned id, const DtString& text, 00053 const DtVdc3DAttachPoint& attachment, 00054 const DtVector& enuOffset = DtVector::zero(), 00055 DtVdcColor color = DtVdcColor::DtVdcWhite, bool flashing = false); 00056 00057 // \brief Virtual destructor 00058 virtual ~DtText3DObject(); 00059 00060 private: 00065 DtText3DObject(); 00066 00070 DtText3DObject(const DtText3DObject& orig); 00071 00075 DtText3DObject& operator=(const DtText3DObject& rhs); 00076 00077 public: 00083 virtual const DtString& text() const; 00084 00090 virtual void setText(const DtString& text); 00091 00098 virtual const DtVdc3DAttachPoint& attachment() const; 00099 00104 virtual void setAttachment(const DtVdc3DAttachPoint& attachment); 00105 00112 virtual const DtVector& offset() const; 00113 00119 virtual void setOffset(const DtVector& off); 00120 00126 virtual const DtVdcColor& color() const; 00127 00133 virtual void setColor (const DtVdcColor& color); 00134 00140 virtual bool flashing() const; 00141 00147 virtual void setFlashing(bool flashing); 00148 00149 virtual void setRemoteGraphicSet(const std::string& setName); 00150 00159 virtual void update(); 00160 00161 protected: 00162 void initRecords(); 00163 00164 protected: 00165 DtVdc3DAttachPoint myAttachment; 00166 DtVector myOffset; 00167 DtVdcColor myColor; 00168 bool myFlashing; 00169 DtString myText; 00170 00171 DtEnvironmentalPointRecord myPointRecord; 00172 Dt3DGraphicalObjectStateRecord myStateRecord; 00173 }; 00174 00175 }