VTK
dox/Filters/FlowPaths/vtkDashedStreamLine.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkDashedStreamLine.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00037 #ifndef __vtkDashedStreamLine_h
00038 #define __vtkDashedStreamLine_h
00039 
00040 #include "vtkFiltersFlowPathsModule.h" // For export macro
00041 #include "vtkStreamLine.h"
00042 
00043 class VTKFILTERSFLOWPATHS_EXPORT vtkDashedStreamLine : public vtkStreamLine
00044 {
00045 public:
00046   static vtkDashedStreamLine *New();
00047   vtkTypeMacro(vtkDashedStreamLine,vtkStreamLine);
00048   void PrintSelf(ostream& os, vtkIndent indent);
00049 
00051 
00054   vtkSetClampMacro(DashFactor,double,0.01,1.0);
00055   vtkGetMacro(DashFactor,double);
00057 
00058 protected:
00059   vtkDashedStreamLine();
00060   ~vtkDashedStreamLine() {}
00061 
00062   // Convert streamer array into vtkPolyData
00063   virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00064 
00065   // the fraction of on versus off in dash
00066   double DashFactor;
00067 
00068 private:
00069   vtkDashedStreamLine(const vtkDashedStreamLine&);  // Not implemented.
00070   void operator=(const vtkDashedStreamLine&);  // Not implemented.
00071 };
00072 
00073 #endif