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_PipeLine.hxx
24 // Author: Alexey PETROV
27 #ifndef VISU_CutLinesPL_HeaderFile
28 #define VISU_CutLinesPL_HeaderFile
30 #include "VISUPipeline.hxx"
31 #include "VISU_CutPlanesPL.hxx"
33 class vtkAppendPolyData;
36 //----------------------------------------------------------------------------
37 class VISU_PIPELINE_EXPORT VISU_CutLinesPL : public VISU_CutPlanesPL
40 vtkTypeMacro(VISU_CutLinesPL,VISU_CutPlanesPL);
48 SetPosition(vtkFloatingPointType thePosition);
73 CutWithPlanes(vtkAppendPolyData* theAppendPolyData,
74 vtkDataSet* theDataSet,
76 vtkFloatingPointType theDir[3],
77 vtkFloatingPointType theBounds[6],
78 vtkFloatingPointType thePlanePosition,
79 int thePlaneCondition,
80 vtkFloatingPointType theDisplacement);
82 //! Returns direction that is defined by position & orientation of the basic and tool planes
83 const vtkFloatingPointType*
90 Returns direction that corresponds to the myRealDirLn,
91 but has the same direction as main axis.
93 const vtkFloatingPointType*
100 Returns coordinates of 3D point that shows
101 where is the first intersection of the given mesh.
102 with the defined direction.
104 const vtkFloatingPointType*
111 Returns three floating point numbers that defines the following values:
112 1. Distance between the initial point of intersection and origin of coordinates;
113 2. Distance between the last point of intersection and origin of coordinates;
114 3. Distance between the last point and initial points of intersection.
115 with the defined direction.
117 const vtkFloatingPointType*
128 DoShallowCopy(VISU_PipeLine *thePipeLine,
129 bool theIsCopyInput);
131 vtkFloatingPointType myDirLn[3];
132 vtkFloatingPointType myRealDirLn[3];
133 vtkFloatingPointType myBoundPrjLn[3];
134 vtkFloatingPointType myBasePnt[3];
135 vtkFloatingPointType myPosition;
139 VISU_CutLinesPL(const VISU_CutLinesPL&); // Not implemented.
140 void operator=(const VISU_CutLinesPL&); // Not implemented.