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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
23 // File: VISU_PipeLine.hxx
24 // Author: Alexey PETROV
27 #ifndef VISU_StreamLinesPL_HeaderFile
28 #define VISU_StreamLinesPL_HeaderFile
30 #include "VISU_DeformedShapePL.hxx"
31 #include <vtkStreamLine.h>
37 class VTKViewer_GeometryFilter;
38 class VISU_UsedPointsFilter;
40 class VISU_StreamLinesPL : public VISU_DeformedShapePL
44 VISU_StreamLinesPL(const VISU_StreamLinesPL&);
47 ~VISU_StreamLinesPL();
50 vtkTypeMacro(VISU_StreamLinesPL,VISU_DeformedShapePL);
58 ShallowCopy(VISU_PipeLine *thePipeLine);
62 SetParams(vtkFloatingPointType theIntStep,
63 vtkFloatingPointType thePropogationTime,
64 vtkFloatingPointType theStepLength,
65 vtkPointSet* theSource = NULL,
66 vtkFloatingPointType thePercents = 0.3,
67 int theDirection = VTK_INTEGRATE_BOTH_DIRECTIONS,
68 int isOnlyTry = false);
104 GetMaxIntegrationStep();
108 GetMinIntegrationStep();
120 GetMinPropagationTime();
124 GetMaxPropagationTime();
128 GetBasePropagationTime();
145 SetMapScale(vtkFloatingPointType theMapScale = 1.0);
150 GetMaxIntegrationStep(vtkPointSet* theDataSet);
154 GetMinIntegrationStep(vtkPointSet* theDataSet,
155 vtkFloatingPointType thePercents = 0.3);
158 GetBaseIntegrationStep(vtkPointSet* theDataSet,
159 vtkFloatingPointType thePercents = 0.3);
163 GetMinPropagationTime(vtkPointSet* theDataSet);
167 GetMaxPropagationTime(vtkPointSet* theDataSet);
171 GetBasePropagationTime(vtkPointSet* theDataSet);
175 GetMinStepLength(vtkPointSet* theDataSet);
179 GetMaxStepLength(vtkPointSet* theDataSet);
183 GetBaseStepLength(vtkPointSet* theDataSet);
187 GetVelocityCoeff(vtkPointSet* theDataSet);
191 IsPossible(vtkPointSet* theDataSet,
192 vtkFloatingPointType thePercents = 0.3);
197 GetNecasseryMemorySize(vtkIdType theNbOfPoints,
198 vtkFloatingPointType theStepLength,
199 vtkFloatingPointType thePropogationTime,
200 vtkFloatingPointType thePercents = 0.3);
204 FindPossibleParams(vtkPointSet* theDataSet,
205 vtkFloatingPointType& theStepLength,
206 vtkFloatingPointType& thePropogationTime,
207 vtkFloatingPointType& thePercents);
211 CorrectIntegrationStep(vtkFloatingPointType theStep,
212 vtkPointSet* theDataSet,
213 vtkFloatingPointType thePercents = 0.3);
217 CorrectPropagationTime(vtkFloatingPointType thePropagationTime,
218 vtkPointSet* theDataSet);
222 CorrectStepLength(vtkFloatingPointType theStep,
223 vtkPointSet* theDataSet);
225 vtkStreamLine* myStream;
226 vtkPointSet* mySource;
227 vtkCellCenters* myCenters;
228 VTKViewer_GeometryFilter *myGeomFilter;
229 VISU_UsedPointsFilter *myPointsFilter;
230 vtkFloatingPointType myPercents;