1 // Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // File: VISU_CutLinesBasePL.hxx
21 // Author: Oleg UVAROV
24 #ifndef VISU_CutLinesBasePL_HeaderFile
25 #define VISU_CutLinesBasePL_HeaderFile
27 #include "VISUPipeline.hxx"
28 #include "VISU_CutPlanesPL.hxx"
30 //----------------------------------------------------------------------------
31 class VISU_PIPELINE_EXPORT VISU_CutLinesBasePL : public VISU_CutPlanesPL
34 vtkTypeMacro(VISU_CutLinesBasePL,VISU_CutPlanesPL);
41 //! Returns direction that is defined by position & orientation of the basic and tool planes
42 const vtkFloatingPointType*
49 Returns direction that corresponds to the myRealDirLn,
50 but has the same direction as main axis.
52 const vtkFloatingPointType*
59 Returns coordinates of 3D point that shows
60 where is the first intersection of the given mesh.
61 with the defined direction.
63 const vtkFloatingPointType*
70 Returns three floating point numbers that defines the following values:
71 1. Distance between the initial point of intersection and origin of coordinates;
72 2. Distance between the last point of intersection and origin of coordinates;
73 3. Distance between the last point and initial points of intersection.
74 with the defined direction.
76 const vtkFloatingPointType*
83 VISU_CutLinesBasePL();
85 vtkFloatingPointType myDirLn[3];
86 vtkFloatingPointType myRealDirLn[3];
87 vtkFloatingPointType myBoundPrjLn[3];
88 vtkFloatingPointType myBasePnt[3];
91 VISU_CutLinesBasePL(const VISU_CutLinesBasePL&); // Not implemented.
92 void operator=(const VISU_CutLinesBasePL&); // Not implemented.