VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkSpatialRepresentationFilter.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 =========================================================================*/ 00049 #ifndef __vtkSpatialRepresentationFilter_h 00050 #define __vtkSpatialRepresentationFilter_h 00051 00052 #include "vtkFiltersGeneralModule.h" // For export macro 00053 #include "vtkMultiBlockDataSetAlgorithm.h" 00054 00055 class vtkLocator; 00056 class vtkDataSet; 00057 class vtkSpatialRepresentationFilterInternal; 00058 00059 class VTKFILTERSGENERAL_EXPORT vtkSpatialRepresentationFilter : public vtkMultiBlockDataSetAlgorithm 00060 { 00061 public: 00062 static vtkSpatialRepresentationFilter *New(); 00063 vtkTypeMacro(vtkSpatialRepresentationFilter,vtkMultiBlockDataSetAlgorithm); 00064 void PrintSelf(ostream& os, vtkIndent indent); 00065 00067 00068 virtual void SetSpatialRepresentation(vtkLocator*); 00069 vtkGetObjectMacro(SpatialRepresentation,vtkLocator); 00071 00073 00075 vtkGetMacro(MaximumLevel,int); 00077 00079 void AddLevel(int level); 00080 00082 void ResetLevels(); 00083 00085 00086 vtkSetMacro(GenerateLeaves, bool); 00087 vtkGetMacro(GenerateLeaves, bool); 00088 vtkBooleanMacro(GenerateLeaves, bool); 00090 00091 protected: 00092 vtkSpatialRepresentationFilter(); 00093 ~vtkSpatialRepresentationFilter(); 00094 00095 virtual int RequestData(vtkInformation*, 00096 vtkInformationVector**, 00097 vtkInformationVector*); 00098 00099 int MaximumLevel; 00100 bool GenerateLeaves; 00101 00102 vtkLocator *SpatialRepresentation; 00103 00104 virtual void ReportReferences(vtkGarbageCollector*); 00105 virtual int FillInputPortInformation(int, vtkInformation*); 00106 private: 00107 vtkSpatialRepresentationFilter(const vtkSpatialRepresentationFilter&); // Not implemented. 00108 void operator=(const vtkSpatialRepresentationFilter&); // Not implemented. 00109 00110 vtkSpatialRepresentationFilterInternal* Internal; 00111 }; 00112 00113 #endif