00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkExtractSelectedRows.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 =========================================================================*/ 00015 /*------------------------------------------------------------------------- 00016 Copyright 2008 Sandia Corporation. 00017 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00018 the U.S. Government retains certain rights in this software. 00019 -------------------------------------------------------------------------*/ 00034 #ifndef __vtkExtractSelectedRows_h 00035 #define __vtkExtractSelectedRows_h 00036 00037 #include "vtkTableAlgorithm.h" 00038 00039 00040 class VTK_GRAPHICS_EXPORT vtkExtractSelectedRows : public vtkTableAlgorithm 00041 { 00042 public: 00043 static vtkExtractSelectedRows* New(); 00044 vtkTypeMacro(vtkExtractSelectedRows,vtkTableAlgorithm); 00045 void PrintSelf(ostream& os, vtkIndent indent); 00046 00049 void SetSelectionConnection(vtkAlgorithmOutput* in); 00050 00053 void SetAnnotationLayersConnection(vtkAlgorithmOutput* in); 00054 00056 int FillInputPortInformation(int port, vtkInformation* info); 00057 00059 00061 vtkSetMacro(AddOriginalRowIdsArray, bool); 00062 vtkGetMacro(AddOriginalRowIdsArray, bool); 00063 vtkBooleanMacro(AddOriginalRowIdsArray, bool); 00065 00066 protected: 00067 vtkExtractSelectedRows(); 00068 ~vtkExtractSelectedRows(); 00069 00070 int RequestData( 00071 vtkInformation*, 00072 vtkInformationVector**, 00073 vtkInformationVector*); 00074 00075 bool AddOriginalRowIdsArray; 00076 private: 00077 vtkExtractSelectedRows(const vtkExtractSelectedRows&); // Not implemented 00078 void operator=(const vtkExtractSelectedRows&); // Not implemented 00079 }; 00080 00081 #endif 00082