X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FStudyData%2FStudyData_Object.h;h=757db4688abf93bda2a0aca0581fb19d063e085b;hb=e844fefb2fbe5d1934d297e420bfd8c671ee9b67;hp=55e786656083a40bcc43e17bf92d9bfd1b71c686;hpb=993f91870d379a10b854387129c8de49e26a72ad;p=modules%2Fshaper_study.git diff --git a/src/StudyData/StudyData_Object.h b/src/StudyData/StudyData_Object.h index 55e7866..757db46 100644 --- a/src/StudyData/StudyData_Object.h +++ b/src/StudyData/StudyData_Object.h @@ -22,19 +22,47 @@ #ifndef StudyData_Object_H +#include "StudyData.h" + #include #include CORBA_SERVER_HEADER(GEOM_Gen) #include +#include -class StudyData_Object +class StudyData_EXPORT StudyData_Object { public: - StudyData_Object(SALOMEDS::TMPFile_var theFile); + StudyData_Object(const std::string theFile); + StudyData_Object(); + + int type() const; + + std::string shapeStream() const; + std::string oldShapeStream() const; + + // returns the stored shape + long long shape() const; + + // updates the current shape if needed + void updateShape(const std::string theFile); + + // returns the version number of the shape starting from 1 + int getTick() const; + + // sets the version number of the shape starting from 1 + void setTick(const int theValue); + + // sets the shape by the pointer to the TopoDS_Shape + void SetShapeByPointer(const long long theShape); + // returns the group shape related to the current selection in the group + long long groupShape(long long theMainShape, const std::list theSelection); private: - TopoDS_Shape myShape; + std::string myStream, myOldStream; // the current and old stream of a shape + TopoDS_Shape myShape, myOldShape; // latest shape of this object and the old one + int myTick; // version index of the shape }; #endif // !StudyData_Object_H