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

# Graphics/vtkClipDataSet.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkClipDataSet.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 =========================================================================*/
    00078 #ifndef __vtkClipDataSet_h
    00079 #define __vtkClipDataSet_h
    00080
    00081 #include "vtkDataSetToUnstructuredGridFilter.h"
    00082
    00083 class vtkImplicitFunction;
    00084
    00085 class vtkPointLocator;
    00086
    00087 class VTK_GRAPHICS_EXPORT vtkClipDataSet : public vtkDataSetToUnstructuredGridFilter
    00088 {
    00089 public:
    00090   vtkTypeRevisionMacro(vtkClipDataSet,vtkDataSetToUnstructuredGridFilter);
    00091   void PrintSelf(ostream& os, vtkIndent indent);
    00092
    00095   static vtkClipDataSet *New();
    00096
    00098
    00101   vtkSetMacro(Value,float);
    00102   vtkGetMacro(Value,float);
    00104
    00106
    00111   vtkSetMacro(InsideOut,int);
    00112   vtkGetMacro(InsideOut,int);
    00113   vtkBooleanMacro(InsideOut,int);
    00115
    00117
    00120   virtual void SetClipFunction(vtkImplicitFunction*);
    00121   vtkGetObjectMacro(ClipFunction,vtkImplicitFunction);
    00123
    00125
    00129   vtkSetMacro(GenerateClipScalars,int);
    00130   vtkGetMacro(GenerateClipScalars,int);
    00131   vtkBooleanMacro(GenerateClipScalars,int);
    00133
    00135
    00137   vtkSetMacro(GenerateClippedOutput,int);
    00138   vtkGetMacro(GenerateClippedOutput,int);
    00139   vtkBooleanMacro(GenerateClippedOutput,int);
    00141
    00143
    00147   vtkSetClampMacro(MergeTolerance,float,0.0001,0.25);
    00148   vtkGetMacro(MergeTolerance,float);
    00150
    00152
    00153   vtkUnstructuredGrid *GetClippedOutput();
    00154   virtual int GetNumberOfOutputs();
    00156
    00158
    00160   void SetLocator(vtkPointLocator *locator);
    00161   vtkGetObjectMacro(Locator,vtkPointLocator);
    00163
    00166   void CreateDefaultLocator();
    00167
    00169   unsigned long GetMTime();
    00170
    00171 protected:
    00172   vtkClipDataSet(vtkImplicitFunction *cf=NULL);
    00173   ~vtkClipDataSet();
    00174
    00175   void Execute();
    00176   vtkImplicitFunction *ClipFunction;
    00177
    00178   vtkPointLocator *Locator;
    00179   int InsideOut;
    00180   float Value;
    00181   int GenerateClipScalars;
    00182
    00183   int GenerateClippedOutput;
    00184   float MergeTolerance;
    00185
    00186   char *InputScalarsSelection;
    00187   vtkSetStringMacro(InputScalarsSelection);
    00188
    00189   //helper functions
    00190   void ClipVolume();
    00191
    00192 private:
    00193   vtkClipDataSet(const vtkClipDataSet&);  // Not implemented.
    00194   void operator=(const vtkClipDataSet&);  // Not implemented.
    00195 };
    00196
    00197 #endif