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 "vtkStreamLine.h" 00041 00042 class VTK_GRAPHICS_EXPORT vtkDashedStreamLine : public vtkStreamLine 00043 { 00044 public: 00045 static vtkDashedStreamLine *New(); 00046 vtkTypeMacro(vtkDashedStreamLine,vtkStreamLine); 00047 void PrintSelf(ostream& os, vtkIndent indent); 00048 00050 00053 vtkSetClampMacro(DashFactor,double,0.01,1.0); 00054 vtkGetMacro(DashFactor,double); 00056 00057 protected: 00058 vtkDashedStreamLine(); 00059 ~vtkDashedStreamLine() {}; 00060 00061 // Convert streamer array into vtkPolyData 00062 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00063 00064 // the fraction of on versus off in dash 00065 double DashFactor; 00066 00067 private: 00068 vtkDashedStreamLine(const vtkDashedStreamLine&); // Not implemented. 00069 void operator=(const vtkDashedStreamLine&); // Not implemented. 00070 }; 00071 00072 #endif 00073 00074