X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_Object.h;h=302f5580e813fe8b45b2712cc2a79fc383f47da0;hb=81c9f5cdf82909d0aebd2c491c50fa7516cc80b7;hp=642ce06f797d0b78328a1a5afca6be1fb4ec6274;hpb=517590ff502b021ac3b88b59c9f063a1470cc8a9;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Object.h b/src/HYDROData/HYDROData_Object.h index 642ce06f..302f5580 100644 --- a/src/HYDROData/HYDROData_Object.h +++ b/src/HYDROData/HYDROData_Object.h @@ -88,11 +88,22 @@ public: */ HYDRODATA_EXPORT virtual Handle(HYDROData_DummyObject3D) GetObject3D() const; + /** * Returns sequence of object groups. */ HYDRODATA_EXPORT virtual HYDROData_SequenceOfObjects GetGroups() const; + /** + * Returns group data model object by it id. + */ + HYDRODATA_EXPORT virtual Handle(HYDROData_ShapesGroup) GetGroup( const int theGroupId ) const; + + /** + * Returns group id by data model object. + */ + HYDRODATA_EXPORT virtual int GetGroupId( const Handle(HYDROData_ShapesGroup)& theGroup ) const; + /** * Set reference altitude object for geometry object. @@ -130,16 +141,6 @@ public: */ HYDRODATA_EXPORT virtual QColor GetBorderColor() const; - /** - * Returns default filling color for new object. - */ - HYDRODATA_EXPORT static QColor DefaultFillingColor(); - - /** - * Returns default border color for new object. - */ - HYDRODATA_EXPORT static QColor DefaultBorderColor(); - protected: /** @@ -167,6 +168,13 @@ protected: protected: + /** + * Dump the initial object creation to a Python script. + * Reimplemented to dump the object colors. + */ + HYDRODATA_EXPORT virtual QStringList dumpObjectCreation( MapOfTreatedObjects& theTreatedObjects ) const; + + /** * Checks and if necessary create child 3D object. * Reimplement this function in your subclass if you @@ -200,12 +208,6 @@ protected: */ HYDRODATA_EXPORT virtual Handle(HYDROData_ShapesGroup) createGroupObject(); - /** - * Create all necessary child group objects. - * Base implementation does nothing. - */ - HYDRODATA_EXPORT virtual void createGroupObjects(); - /** * Remove all child group objects. */