Salome HOME
Update Help for VISU module.
[modules/visu.git] / src / VISU_I / VISU_CutPlanes_i.cc
index cfa8925261eff7a77300849859fa79eb816d3c05..b0dca7d0340edd9ddbc094c9e280f965eb439483 100644 (file)
@@ -34,10 +34,8 @@ using namespace std;
 
 #ifdef _DEBUG_
 static int MYDEBUG = 0;
-static int MYDEBUGWITHFILES = 0;
 #else
 static int MYDEBUG = 0;
-static int MYDEBUGWITHFILES = 0;
 #endif
 
 int VISU::CutPlanes_i::IsPossible(Result_i* theResult, const char* theMeshName, VISU::Entity theEntity, 
@@ -55,17 +53,29 @@ const string VISU::CutPlanes_i::myComment = "CUTPLANES";
 const char* VISU::CutPlanes_i::GetComment() const { return myComment.c_str();}
 
 
-VISU::CutPlanes_i::CutPlanes_i(Result_i* theResult, bool theAddToStudy, SALOMEDS::SObject_ptr theSObject) :
-       PrsObject_i(theResult->GetStudyDocument()), 
-       Prs3d_i(theResult,theSObject),
-       ScalarMap_i(theResult,theAddToStudy,theSObject)
+VISU::CutPlanes_i::
+CutPlanes_i(Result_i* theResult, 
+           bool theAddToStudy) :
+  PrsObject_i(theResult->GetStudyDocument()), 
+  Prs3d_i(theResult,theAddToStudy),
+  ScalarMap_i(theResult,theAddToStudy),
+  myCutPlanesPL(NULL)
+{
+}
+
+
+VISU::CutPlanes_i::
+CutPlanes_i(Result_i* theResult, 
+           SALOMEDS::SObject_ptr theSObject) :
+  PrsObject_i(theResult->GetStudyDocument()), 
+  Prs3d_i(theResult,theSObject),
+  ScalarMap_i(theResult,theSObject),
+  myCutPlanesPL(NULL)
 {
-  myCutPlanesPL = NULL;
 }
 
 
 void VISU::CutPlanes_i::SameAs(const CutPlanes_i* theOrigin){
-  CutPlanes_i* aCutPlanes = const_cast<CutPlanes_i*>(theOrigin);
   VISU::ScalarMap_i::SameAs(theOrigin);
 }
 
@@ -98,8 +108,6 @@ VISU::Storable* VISU::CutPlanes_i::Restore(const Storable::TRestoringMap& theMap
 void VISU::CutPlanes_i::ToStream(std::ostringstream& theStr){
   ScalarMap_i::ToStream(theStr);
 
-  int aNbPlanes = GetNbPlanes();
-
   Storable::DataToStream( theStr, "myNbPlanes", int(GetNbPlanes()));
   Storable::DataToStream( theStr, "myDisplacement", GetDisplacement());
   Storable::DataToStream( theStr, "myBasePlane", int(GetOrientationType()));