Graphics/vtkSpatialRepresentationFilter.h Source File

Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages

# Graphics/vtkSpatialRepresentationFilter.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkSpatialRepresentationFilter.h,v $
    00005   Language:  C++
    00006
    00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
    00008   All rights reserved.
    00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
    00010
    00011      This software is distributed WITHOUT ANY WARRANTY; without even
    00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
    00013      PURPOSE.  See the above copyright notice for more information.
    00014
    00015 =========================================================================*/
    00076 #ifndef __vtkSpatialRepresentationFilter_h
    00077 #define __vtkSpatialRepresentationFilter_h
    00078
    00079 #include "vtkPolyDataSource.h"
    00080
    00081 #define VTK_MAX_SPATIAL_REP_LEVEL 24
    00082
    00083 class vtkLocator;
    00084 class vtkDataSet;
    00085
    00086 class VTK_GRAPHICS_EXPORT vtkSpatialRepresentationFilter : public vtkPolyDataSource
    00087 {
    00088 public:
    00089   static vtkSpatialRepresentationFilter *New();
    00090   vtkTypeRevisionMacro(vtkSpatialRepresentationFilter,vtkPolyDataSource);
    00091   void PrintSelf(ostream& os, vtkIndent indent);
    00092
    00094
    00095   virtual void SetSpatialRepresentation(vtkLocator*);
    00096   vtkGetObjectMacro(SpatialRepresentation,vtkLocator);
    00098
    00100
    00101   vtkGetMacro(Level,int);
    00103
    00106   vtkPolyData *GetOutput(int level);
    00107
    00109   vtkPolyData *GetOutput();
    00110
    00112   void ResetOutput();
    00113
    00115
    00116   virtual void SetInput(vtkDataSet *input);
    00117   vtkDataSet *GetInput();
    00119
    00120 protected:
    00121   vtkSpatialRepresentationFilter();
    00122   ~vtkSpatialRepresentationFilter();
    00123
    00124   void Execute();
    00125   void GenerateOutput();
    00126
    00127   int Level;
    00128   int TerminalNodesRequested;
    00129
    00130   vtkLocator *SpatialRepresentation;
    00131 private:
    00132   vtkSpatialRepresentationFilter(const vtkSpatialRepresentationFilter&);  // Not implemented.
    00133   void operator=(const vtkSpatialRepresentationFilter&);  // Not implemented.
    00134 };
    00135
    00136 #endif
    00137
    00138