1 // VISU OBJECT : interactive object for VISU entities implementation
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 // File: VISU_CutPlanesPL.hxx
24 // Author: Alexey PETROV
27 #ifndef VISU_Plot3DPL_HeaderFile
28 #define VISU_Plot3DPL_HeaderFile
30 #include "VISUPipeline.hxx"
31 #include "VISU_ScalarMapPL.hxx"
32 #include "VISU_CutPlanesPL.hxx"
35 class vtkContourFilter;
36 class vtkGeometryFilter;
37 class vtkCellDataToPointData;
40 //----------------------------------------------------------------------------
41 class VISU_PIPELINE_EXPORT VISU_Plot3DPL : public VISU_ScalarMapPL
44 vtkTypeMacro(VISU_Plot3DPL, VISU_ScalarMapPL);
54 //----------------------------------------------------------------------------
55 VISU_CutPlanesPL::PlaneOrientation
56 GetPlaneOrientation();
65 SetOrientation(VISU_CutPlanesPL::PlaneOrientation theOrientation,
66 vtkFloatingPointType theXAngle = 0.0,
67 vtkFloatingPointType theYAngle = 0.0);
76 SetPlanePosition(vtkFloatingPointType thePosition,
80 SetScaleFactor(vtkFloatingPointType theScaleFactor);
86 SetContourPrs(bool theIsContourPrs );
92 SetNumberOfContours(int theNumber);
95 GetNumberOfContours();
98 GetBasePlane (vtkFloatingPointType theOrigin[3],
99 vtkFloatingPointType theNormal[3],
100 bool theCenterOrigine = false );
103 GetMinMaxPosition( vtkFloatingPointType& minPos,
104 vtkFloatingPointType& maxPos );
115 //! Gets memory size used by the instance (bytes).
121 VISU_CutPlanesPL::PlaneOrientation
122 GetOrientation(vtkDataSet* theDataSet);
125 GetScaleFactor(vtkDataSet* theDataSet);
127 void SetMapScale(vtkFloatingPointType theMapScale);
140 DoShallowCopy(VISU_PipeLine *thePipeLine,
141 bool theIsCopyInput);
143 vtkFloatingPointType myAngle[3];
144 bool myIsRelative, myIsContour;
145 vtkFloatingPointType myPosition, myScaleFactor;
146 VISU_CutPlanesPL::PlaneOrientation myOrientation;
148 vtkSmartPointer<vtkCellDataToPointData> myCellDataToPointData;
149 vtkSmartPointer<vtkAppendPolyData> myAppendPolyData;
150 vtkSmartPointer<vtkGeometryFilter> myGeometryFilter;
151 vtkSmartPointer<vtkContourFilter> myContourFilter;
152 vtkSmartPointer<vtkWarpScalar> myWarpScalar;
155 VISU_Plot3DPL(const VISU_Plot3DPL&);; // Not implemented.
156 void operator=(const VISU_Plot3DPL&); // Not implemented.