1 #ifndef HYDROData_VisualState_HeaderFile
2 #define HYDROData_VisualState_HeaderFile
4 #include <HYDROData_Object.h>
8 DEFINE_STANDARD_HANDLE(HYDROData_VisualState, HYDROData_Object)
10 /**\class HYDROData_VisualState
11 * \brief Class that stores/retreives information about the visual state.
13 * Keeps the visual state as encoded text string.
15 class HYDROData_VisualState : public HYDROData_Object
19 * Enumeration of tags corresponding to the persistent object parameters.
23 DataTag_First = HYDROData_Object::DataTag_First + 100, ///< first tag, to reserve
24 DataTag_State ///< encoded visual state
28 DEFINE_STANDARD_RTTI(HYDROData_VisualState);
31 * Returns the kind of this object. Must be redefined in all objects of known type.
33 HYDRODATA_EXPORT virtual const ObjectKind GetKind() const { return KIND_VISUAL_STATE; }
36 * Stores the encoded visual state
37 * \param theState new state
39 HYDRODATA_EXPORT void SetState( const QString& theState );
42 * Returns the encoded visual state
44 HYDRODATA_EXPORT QString GetState() const;
48 friend class HYDROData_Iterator;
51 * Creates new object in the internal data structure. Use higher level objects
52 * to create objects with real content.
54 HYDROData_VisualState();
57 * Destructs properties of the object and object itself, removes it from the document.
59 ~HYDROData_VisualState();