2 #ifndef HYDROData_VisualState_HeaderFile
3 #define HYDROData_VisualState_HeaderFile
5 #include <HYDROData_Entity.h>
9 DEFINE_STANDARD_HANDLE(HYDROData_VisualState, HYDROData_Entity)
11 /**\class HYDROData_VisualState
12 * \brief Class that stores/retreives information about the visual state.
14 * Keeps the visual state as encoded text string.
16 class HYDROData_VisualState : public HYDROData_Entity
20 * Enumeration of tags corresponding to the persistent object parameters.
24 DataTag_First = HYDROData_Entity::DataTag_First + 100, ///< first tag, to reserve
25 DataTag_State ///< encoded visual state
29 DEFINE_STANDARD_RTTI(HYDROData_VisualState);
32 * Returns the kind of this object. Must be redefined in all objects of known type.
34 HYDRODATA_EXPORT virtual const ObjectKind GetKind() const { return KIND_VISUAL_STATE; }
37 * Stores the encoded visual state
38 * \param theState new state
40 HYDRODATA_EXPORT void SetState( const QString& theState );
43 * Returns the encoded visual state
45 HYDRODATA_EXPORT QString GetState() const;
49 friend class HYDROData_Iterator;
52 * Creates new object in the internal data structure. Use higher level objects
53 * to create objects with real content.
55 HYDROData_VisualState();
58 * Destructs properties of the object and object itself, removes it from the document.
60 ~HYDROData_VisualState();