Salome HOME
Compiler errors on gcc 3.4.1 corrected:
[modules/visu.git] / src / VISU_I / VISU_CutPlanes_i.hh
index a64190bcb0ffdb85ed3e7cfe2ad394805eaa6e9c..e980c31564e70ee683b425ff931c41e558d6151a 100644 (file)
@@ -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;