00001 // Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE 00002 // 00003 // This library is free software; you can redistribute it and/or 00004 // modify it under the terms of the GNU Lesser General Public 00005 // License as published by the Free Software Foundation; either 00006 // version 2.1 of the License. 00007 // 00008 // This library is distributed in the hope that it will be useful, 00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 // Lesser General Public License for more details. 00012 // 00013 // You should have received a copy of the GNU Lesser General Public 00014 // License along with this library; if not, write to the Free Software 00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00016 // 00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com 00018 // 00019 00020 #ifndef VISU_StreamLine_HeaderFile 00021 #define VISU_StreamLine_HeaderFile 00022 00023 #include "VISUPipeline.hxx" 00024 #include "VISU_Streamer.hxx" 00025 00026 class VISU_PIPELINE_EXPORT VISU_StreamLine : public VISU_Streamer 00027 { 00028 public: 00029 vtkTypeRevisionMacro(VISU_StreamLine,VISU_Streamer); 00030 void PrintSelf(ostream& os, vtkIndent indent); 00031 00032 // Description: 00033 // Construct object with step size set to 1.0. 00034 static VISU_StreamLine *New(); 00035 00036 // Description: 00037 // Specify the length of a line segment. The length is expressed in terms of 00038 // elapsed time. Smaller values result in smoother appearing streamlines, but 00039 // greater numbers of line primitives. 00040 vtkSetClampMacro(StepLength,double,0.000001,VTK_DOUBLE_MAX); 00041 vtkGetMacro(StepLength,double); 00042 00043 protected: 00044 VISU_StreamLine(); 00045 ~VISU_StreamLine() {}; 00046 00047 // Convert streamer array into vtkPolyData 00048 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00049 00050 // the length of line primitives 00051 double StepLength; 00052 00053 private: 00054 VISU_StreamLine(const VISU_StreamLine&); // Not implemented. 00055 void operator=(const VISU_StreamLine&); // Not implemented. 00056 }; 00057 00058 #endif