Salome HOME
Fix for the "0051899: curves are not shown in opened study" issue.
[modules/visu.git] / src / PIPELINE / VISU_StreamLine.hxx
1 // Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
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.
7 //
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.
12 //
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
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #ifndef VISU_StreamLine_HeaderFile
21 #define VISU_StreamLine_HeaderFile
22
23 #include "VISUPipeline.hxx"
24 #include "VISU_Streamer.hxx"
25
26 class VISU_PIPELINE_EXPORT VISU_StreamLine : public VISU_Streamer
27 {
28 public:
29   vtkTypeMacro(VISU_StreamLine,VISU_Streamer);
30   void PrintSelf(ostream& os, vtkIndent indent);
31
32   // Description:
33   // Construct object with step size set to 1.0.
34   static VISU_StreamLine *New();
35
36   // Description:
37   // Specify the length of a line segment. The length is expressed in terms of
38   // elapsed time. Smaller values result in smoother appearing streamlines, but
39   // greater numbers of line primitives.
40   vtkSetClampMacro(StepLength,double,0.000001,VTK_DOUBLE_MAX);
41   vtkGetMacro(StepLength,double);
42
43 protected:
44   VISU_StreamLine();
45   ~VISU_StreamLine() {};
46
47   // Convert streamer array into vtkPolyData
48   virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
49
50   // the length of line primitives
51   double StepLength;
52
53 private:
54   VISU_StreamLine(const VISU_StreamLine&);  // Not implemented.
55   void operator=(const VISU_StreamLine&);  // Not implemented.
56 };
57
58 #endif