![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2007 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtAttributeValue.h,v $ $Revision: 1.2 $ $State: Exp $ 00007 ******************************************************************************/ 00008 #pragma once 00009 00016 00017 #include <vrvDrawControl/vrvDrawControlDefines.h> 00018 00019 #include <map> 00020 00021 #include <vlutil/vlString.h> 00022 00023 #include <vrfExtObjects/attributeValueUpdate.h> 00024 00025 00026 namespace vrvControlToolkit 00027 { 00035 class DT_DLL_VRVDRAWCONTROL DtVdcAttributeValue 00036 { 00037 public: 00039 DtVdcAttributeValue(); 00040 00042 ~DtVdcAttributeValue(); 00043 00045 DtVdcAttributeValue& operator=( const DtVdcAttributeValue& rhs ); 00046 00048 DtVdcAttributeValue( const DtVdcAttributeValue& orig ); 00049 00052 const DtString& textValue() const; 00053 void setTextValue( const DtString& textValue ); 00055 00059 double xValue() const; 00060 void setXValue( double x ); 00061 00064 double yValue() const; 00065 void setYValue( double y ); 00067 00072 bool dirty() const; 00073 void setDirty( bool dirty ) ; 00075 00077 DtAttributeValueUpdate& attributeValueUpdate(); 00078 const DtAttributeValueUpdate& attributeValueUpdate() const; 00079 00080 protected: 00081 DtString myTextValue; 00082 double myXValue; 00083 double myYValue; 00084 bool myDirty; 00085 DtAttributeValueUpdate myAttributeValueUpdate; 00086 }; 00087 00088 typedef std::map<DtString, DtVdcAttributeValue*> DtVdcAttributeValueMap; 00089 }