1 #ifndef SALOMEAPP_DATAOBJECT_H
2 #define SALOMEAPP_DATAOBJECT_H
6 #include "CAM_DataObject.h"
7 #include "CAM_RootObject.h"
9 #include "SALOMEDSClient.hxx"
11 class SalomeApp_Study;
13 class SALOMEAPP_EXPORT SalomeApp_DataObject : public virtual CAM_DataObject
18 enum { CT_Value, CT_Entry, CT_IOR, CT_RefEntry };
21 SalomeApp_DataObject( SUIT_DataObject* = 0 );
22 SalomeApp_DataObject( const _PTR(SObject)&, SUIT_DataObject* = 0 );
23 virtual ~SalomeApp_DataObject();
25 virtual QString name() const;
26 virtual QPixmap icon() const;
27 virtual QString toolTip() const;
29 virtual QString text( const int ) const;
30 virtual QColor color( const ColorRole ) const;
32 virtual SUIT_DataObjectKey* key() const;
33 virtual QString entry() const;
35 /*! location of corresponding SALOMEDS::SObject */
36 virtual _PTR(SObject) object() const;
38 bool isReference() const;
39 _PTR(SObject) referencedObject() const;
41 SUIT_DataObject* componentObject() const;
42 /*! GEOM, SMESH, VISU, etc.*/
43 QString componentDataType() const;
46 QString ior( const _PTR(SObject)& ) const;
47 QString entry( const _PTR(SObject)& ) const;
48 QString value( const _PTR(SObject)& ) const;
51 _PTR(SObject) myObject;
55 * SalomeApp_ModuleObject - class for optimized access to DataModel from
56 * SalomeApp_DataObject instances - see also CAM_RootObject.h
59 class SALOMEAPP_EXPORT SalomeApp_ModuleObject : public SalomeApp_DataObject,
63 SalomeApp_ModuleObject( SUIT_DataObject* = 0 );
64 SalomeApp_ModuleObject( const _PTR(SObject)&, SUIT_DataObject* = 0 );
65 SalomeApp_ModuleObject( CAM_DataModel*, const _PTR(SObject)&, SUIT_DataObject* = 0 );
66 virtual ~SalomeApp_ModuleObject();