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

# Graphics/vtkClipPolyData.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkClipPolyData.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 =========================================================================*/
    00081 #ifndef __vtkClipPolyData_h
    00082 #define __vtkClipPolyData_h
    00083
    00084 #include "vtkPolyDataToPolyDataFilter.h"
    00085
    00086 class vtkImplicitFunction;
    00087 class vtkPointLocator;
    00088
    00089 class VTK_GRAPHICS_EXPORT vtkClipPolyData : public vtkPolyDataToPolyDataFilter
    00090 {
    00091 public:
    00092   vtkTypeRevisionMacro(vtkClipPolyData,vtkPolyDataToPolyDataFilter);
    00093   void PrintSelf(ostream& os, vtkIndent indent);
    00094
    00097   static vtkClipPolyData *New();
    00098
    00100
    00103   vtkSetMacro(Value,float);
    00104   vtkGetMacro(Value,float);
    00106
    00108
    00113   vtkSetMacro(InsideOut,int);
    00114   vtkGetMacro(InsideOut,int);
    00115   vtkBooleanMacro(InsideOut,int);
    00117
    00119
    00122   virtual void SetClipFunction(vtkImplicitFunction*);
    00123   vtkGetObjectMacro(ClipFunction,vtkImplicitFunction);
    00125
    00127
    00131   vtkSetMacro(GenerateClipScalars,int);
    00132   vtkGetMacro(GenerateClipScalars,int);
    00133   vtkBooleanMacro(GenerateClipScalars,int);
    00135
    00137
    00139   vtkSetMacro(GenerateClippedOutput,int);
    00140   vtkGetMacro(GenerateClippedOutput,int);
    00141   vtkBooleanMacro(GenerateClippedOutput,int);
    00143
    00145   vtkPolyData *GetClippedOutput();
    00146
    00148
    00150   void SetLocator(vtkPointLocator *locator);
    00151   vtkGetObjectMacro(Locator,vtkPointLocator);
    00153
    00156   void CreateDefaultLocator();
    00157
    00159   unsigned long GetMTime();
    00160
    00161 protected:
    00162   vtkClipPolyData(vtkImplicitFunction *cf=NULL);
    00163   ~vtkClipPolyData();
    00164
    00165   void Execute();
    00166   vtkImplicitFunction *ClipFunction;
    00167
    00168   vtkPointLocator *Locator;
    00169   int InsideOut;
    00170   float Value;
    00171   int GenerateClipScalars;
    00172
    00173   int GenerateClippedOutput;
    00174 private:
    00175   vtkClipPolyData(const vtkClipPolyData&);  // Not implemented.
    00176   void operator=(const vtkClipPolyData&);  // Not implemented.
    00177 };
    00178
    00179 #endif