X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FVISU_I%2FVISU_CutPlanes_i.hh;h=e980c31564e70ee683b425ff931c41e558d6151a;hb=f5a1d01f30cfa26aac12f63fce2d074628039240;hp=a64190bcb0ffdb85ed3e7cfe2ad394805eaa6e9c;hpb=1470190682148c950f0c1a941034e9e2b6c10318;p=modules%2Fvisu.git diff --git a/src/VISU_I/VISU_CutPlanes_i.hh b/src/VISU_I/VISU_CutPlanes_i.hh index a64190bc..e980c315 100644 --- a/src/VISU_I/VISU_CutPlanes_i.hh +++ b/src/VISU_I/VISU_CutPlanes_i.hh @@ -39,16 +39,24 @@ namespace VISU{ CutPlanes_i(); CutPlanes_i(const CutPlanes_i&); public: - CutPlanes_i(Result_i* theResult, bool theAddToStudy = true); + explicit + CutPlanes_i(Result_i* theResult, + bool theAddToStudy); + explicit + CutPlanes_i(Result_i* theResult, + SALOMEDS::SObject_ptr theSObject); virtual void SameAs(const CutPlanes_i* theOrigin); virtual ~CutPlanes_i(); - virtual void Destroy(); virtual VISU::VISUType GetType() { return VISU::TCUTPLANES;}; - virtual void SetOrientationType(VISU::CutPlanes::Orientation theOrient); - virtual VISU::CutPlanes::Orientation GetOrientationType(); + virtual void SetOrientation(VISU::CutPlanes::Orientation theOrient, + CORBA::Double theXAngle, CORBA::Double theYAngle); + virtual VISU::CutPlanes::Orientation GetOrientationType(); + virtual CORBA::Double GetRotateX(); + virtual CORBA::Double GetRotateY(); + virtual void SetDisplacement(CORBA::Double theDisp); virtual CORBA::Double GetDisplacement(); @@ -61,12 +69,6 @@ namespace VISU{ virtual void SetNbPlanes(CORBA::Long theNb); virtual CORBA::Long GetNbPlanes(); - virtual void SetRotateX(CORBA::Double theAngle); - virtual CORBA::Double GetRotateX(); - - virtual void SetRotateY(CORBA::Double theAngle); - virtual CORBA::Double GetRotateY(); - typedef VISU::CutPlanes TInterface; VISU_CutPlanesPL* GetCutPlanesPL(){ return myCutPlanesPL;} @@ -77,17 +79,13 @@ namespace VISU{ public: static int IsPossible(Result_i* theResult, const char* theMeshName, VISU::Entity theEntity, - const char* theFieldName, int theIteration); + const char* theFieldName, int theIteration, int isMemoryCheck = true); virtual Storable* Create(const char* theMeshName, VISU::Entity theEntity, const char* theFieldName, int theIteration); virtual void ToStream(std::ostringstream& theStr); - - virtual Storable* Restore(const Storable::TRestoringMap& theMap) - throw(std::logic_error&); - static Storable* Restore(SALOMEDS::SObject_ptr theSObject, - const string& thePrefix, const Storable::TRestoringMap& theMap) - throw(std::logic_error&); + + virtual Storable* Restore(const Storable::TRestoringMap& theMap); static const string myComment; virtual const char* GetComment() const;