00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkExtractSelectionBase.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 =========================================================================*/ 00023 #ifndef __vtkExtractSelectionBase_h 00024 #define __vtkExtractSelectionBase_h 00025 00026 #include "vtkDataObjectAlgorithm.h" 00027 00028 class VTK_GRAPHICS_EXPORT vtkExtractSelectionBase : public vtkDataObjectAlgorithm 00029 { 00030 public: 00031 vtkTypeMacro(vtkExtractSelectionBase, vtkDataObjectAlgorithm); 00032 void PrintSelf(ostream& os, vtkIndent indent); 00033 00035 00037 void SetSelectionConnection(vtkAlgorithmOutput* algOutput) 00038 { 00039 this->SetInputConnection(1, algOutput); 00040 } 00042 00044 00048 vtkSetMacro(PreserveTopology, int); 00049 vtkGetMacro(PreserveTopology, int); 00050 vtkBooleanMacro(PreserveTopology, int); 00052 00053 //BTX 00054 protected: 00055 vtkExtractSelectionBase(); 00056 ~vtkExtractSelectionBase(); 00057 00059 00060 virtual int RequestDataObject(vtkInformation* request, 00061 vtkInformationVector** inputVector, 00062 vtkInformationVector* outputVector); 00064 00065 virtual int FillInputPortInformation(int port, vtkInformation* info); 00066 00067 int PreserveTopology; 00068 private: 00069 vtkExtractSelectionBase(const vtkExtractSelectionBase&); // Not implemented. 00070 void operator=(const vtkExtractSelectionBase&); // Not implemented. 00071 //ETX 00072 }; 00073 00074 #endif 00075 00076