1 // Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 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 // VISU OBJECT : interactive object for VISU entities implementation
24 // File: VISU_CutPlanesPL.hxx
25 // Author: Alexey PETROV
28 #ifndef VISU_Plot3DPL_HeaderFile
29 #define VISU_Plot3DPL_HeaderFile
31 #include "VISUPipeline.hxx"
32 #include "VISU_ScalarMapPL.hxx"
33 #include "VISU_CutPlanesPL.hxx"
36 class vtkContourFilter;
37 class vtkGeometryFilter;
38 class VISU_CellDataToPointData;
41 //----------------------------------------------------------------------------
42 class VISU_PIPELINE_EXPORT VISU_Plot3DPL : public VISU_ScalarMapPL
45 vtkTypeMacro(VISU_Plot3DPL, VISU_ScalarMapPL);
55 //----------------------------------------------------------------------------
56 VISU_CutPlanesPL::PlaneOrientation
57 GetPlaneOrientation();
66 SetOrientation(VISU_CutPlanesPL::PlaneOrientation theOrientation,
67 vtkFloatingPointType theXAngle = 0.0,
68 vtkFloatingPointType theYAngle = 0.0);
77 SetPlanePosition(vtkFloatingPointType thePosition,
81 SetScaleFactor(vtkFloatingPointType theScaleFactor);
87 SetContourPrs(bool theIsContourPrs );
93 SetNumberOfContours(int theNumber);
96 GetNumberOfContours();
99 GetBasePlane (vtkFloatingPointType theOrigin[3],
100 vtkFloatingPointType theNormal[3],
101 bool theCenterOrigine = false );
104 GetMinMaxPosition( vtkFloatingPointType& minPos,
105 vtkFloatingPointType& maxPos );
116 //! Gets memory size used by the instance (bytes).
122 VISU_CutPlanesPL::PlaneOrientation
123 GetOrientation(vtkDataSet* theDataSet);
127 GetScaleFactor( VISU_ColoredPL* theColoredPL,
128 vtkDataSet* theDataSet );
131 SetMapScale(vtkFloatingPointType theMapScale);
145 DoShallowCopy(VISU_PipeLine *thePipeLine,
146 bool theIsCopyInput);
148 vtkFloatingPointType myAngle[3];
149 bool myIsRelative, myIsContour;
150 vtkFloatingPointType myPosition, myScaleFactor, myMapScaleFactor;
151 VISU_CutPlanesPL::PlaneOrientation myOrientation;
153 vtkSmartPointer<VISU_CellDataToPointData> myCellDataToPointData;
154 vtkSmartPointer<vtkAppendPolyData> myAppendPolyData;
155 vtkSmartPointer<vtkGeometryFilter> myGeometryFilter;
156 vtkSmartPointer<vtkContourFilter> myContourFilter;
157 vtkSmartPointer<vtkWarpScalar> myWarpScalar;
160 VISU_Plot3DPL(const VISU_Plot3DPL&);; // Not implemented.
161 void operator=(const VISU_Plot3DPL&); // Not implemented.