2 #ifndef HYDROData_VisualState_HeaderFile
3 #define HYDROData_VisualState_HeaderFile
5 #include <HYDROData_Entity.h>
7 DEFINE_STANDARD_HANDLE(HYDROData_VisualState, HYDROData_Entity)
9 /**\class HYDROData_VisualState
10 * \brief Class that stores/retreives information about the visual state.
12 * Keeps the visual state as encoded text string.
14 class HYDROData_VisualState : public HYDROData_Entity
18 * Enumeration of tags corresponding to the persistent object parameters.
22 DataTag_First = HYDROData_Entity::DataTag_First + 100, ///< first tag, to reserve
23 DataTag_State ///< encoded visual state
27 DEFINE_STANDARD_RTTI(HYDROData_VisualState);
30 * Returns the kind of this object. Must be redefined in all objects of known type.
32 HYDRODATA_EXPORT virtual const ObjectKind GetKind() const { return KIND_VISUAL_STATE; }
35 * Stores the encoded visual state
36 * \param theState new state
38 HYDRODATA_EXPORT void SetState( const std::string& theState );
41 * Returns the encoded visual state
43 HYDRODATA_EXPORT std::string GetState() const;
47 friend class HYDROData_Iterator;
50 * Creates new object in the internal data structure. Use higher level objects
51 * to create objects with real content.
53 HYDROData_VisualState();
56 * Destructs properties of the object and object itself, removes it from the document.
58 ~HYDROData_VisualState();