// VISU OBJECT : interactive object for VISU entities implementation
//
// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
//
//
// File: VISU_CutPlanesPL.hxx
virtual void ShallowCopy(VISU_PipeLine *thePipeLine);
enum PlaneOrientation {XY, YZ, ZX};
- virtual void SetOrientation(const VISU_CutPlanesPL::PlaneOrientation& theOrient,
+ virtual void SetOrientation(const VISU_CutPlanesPL::PlaneOrientation& theOrient,
float theXAng, float theYAng, int theNum = 0);
virtual const PlaneOrientation& GetPlaneOrientation(int theNum = 0);
virtual float GetRotateX(int theNum = 0);
virtual float GetRotateY(int theNum = 0);
-
+
virtual float GetDisplacement(int theNum = 0) { return myDisplacement[theNum];}
virtual void SetDisplacement(float theDisp, int theNum = 0) { myDisplacement[theNum] = theDisp;}
virtual void SetNbParts(int theNb);
virtual int GetNbParts(){ return myNbParts;}
-
+
public:
virtual void Init();
virtual void Update();
virtual vtkAppendPolyData* GetAppendPolyData() { return myAppendPolyData; }
-
+
public:
static float* GetRx(float theRx[3][3], float thaAng);
static float* GetRy(float theRy[3][3], float thaAng);
static void CorrectPnt(float thePnt[3], const float BoundPrj[6]);
static void GetBoundProject(float BoundPrj[3], const float BoundBox[6], const float Dir[3]);
- static void GetDir(float theDir[3], float theAng[3], const PlaneOrientation& theBasePlane);
+ static void GetDir(float theDir[3],
+ const float theAng[3],
+ const PlaneOrientation& theBasePlane);
static void ClearAppendPolyData(vtkAppendPolyData *theAppendPolyData);
static void CutWithPlane(vtkAppendPolyData* theAppendPolyData, vtkDataSet* theDataSet,
float theDir[3], float theOrig[3]);
static void CutWithPlanes(vtkAppendPolyData* theAppendPolyData, vtkDataSet* theDataSet,
- int theNbPlanes, float theDir[3], float theBounds[6],
- const std::vector<float>& thePlanePosition,
+ int theNbPlanes, float theDir[3], float theBounds[6],
+ const std::vector<float>& thePlanePosition,
const std::vector<int>& thePlaneCondition,
float theDisplacement);
protected: