VTK
|
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 -------------------------------------------------------------------------*/ 00031 #ifndef __vtkExtractSelectedRows_h 00032 #define __vtkExtractSelectedRows_h 00033 00034 #include "vtkFiltersExtractionModule.h" // For export macro 00035 #include "vtkTableAlgorithm.h" 00036 00037 00038 class VTKFILTERSEXTRACTION_EXPORT vtkExtractSelectedRows : public vtkTableAlgorithm 00039 { 00040 public: 00041 static vtkExtractSelectedRows* New(); 00042 vtkTypeMacro(vtkExtractSelectedRows,vtkTableAlgorithm); 00043 void PrintSelf(ostream& os, vtkIndent indent); 00044 00047 void SetSelectionConnection(vtkAlgorithmOutput* in); 00048 00051 void SetAnnotationLayersConnection(vtkAlgorithmOutput* in); 00052 00054 int FillInputPortInformation(int port, vtkInformation* info); 00055 00057 00059 vtkSetMacro(AddOriginalRowIdsArray, bool); 00060 vtkGetMacro(AddOriginalRowIdsArray, bool); 00061 vtkBooleanMacro(AddOriginalRowIdsArray, bool); 00063 00064 protected: 00065 vtkExtractSelectedRows(); 00066 ~vtkExtractSelectedRows(); 00067 00068 int RequestData( 00069 vtkInformation*, 00070 vtkInformationVector**, 00071 vtkInformationVector*); 00072 00073 bool AddOriginalRowIdsArray; 00074 private: 00075 vtkExtractSelectedRows(const vtkExtractSelectedRows&); // Not implemented 00076 void operator=(const vtkExtractSelectedRows&); // Not implemented 00077 }; 00078 00079 #endif 00080