VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkSelectArraySlices.h 00005 00006 ------------------------------------------------------------------------- 00007 Copyright 2008 Sandia Corporation. 00008 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00009 the U.S. Government retains certain rights in this software. 00010 ------------------------------------------------------------------------- 00011 00012 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00013 All rights reserved. 00014 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00015 00016 This software is distributed WITHOUT ANY WARRANTY; without even 00017 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00018 PURPOSE. See the above copyright notice for more information. 00019 00020 =========================================================================*/ 00021 00039 #ifndef __vtkSelectArraySlices_h 00040 #define __vtkSelectArraySlices_h 00041 00042 #include <vtkSelectionAlgorithm.h> 00043 00044 class VTK_TEXT_ANALYSIS_EXPORT vtkSelectArraySlices : 00045 public vtkSelectionAlgorithm 00046 { 00047 public: 00048 static vtkSelectArraySlices* New(); 00049 vtkTypeMacro(vtkSelectArraySlices, vtkSelectionAlgorithm); 00050 void PrintSelf(ostream& os, vtkIndent indent); 00051 00053 00055 vtkGetMacro(SliceDimension, vtkIdType); 00056 vtkSetMacro(SliceDimension, vtkIdType); 00058 00060 00062 vtkGetMacro(MinimumCount, vtkIdType); 00063 vtkSetMacro(MinimumCount, vtkIdType); 00065 00067 00069 vtkGetMacro(MaximumCount, vtkIdType); 00070 vtkSetMacro(MaximumCount, vtkIdType); 00072 00074 00076 vtkGetMacro(MinimumPercent, double); 00077 vtkSetMacro(MinimumPercent, double); 00079 00081 00083 vtkGetMacro(MaximumPercent, double); 00084 vtkSetMacro(MaximumPercent, double); 00086 00087 //BTX 00088 protected: 00089 vtkSelectArraySlices(); 00090 ~vtkSelectArraySlices(); 00091 00092 int FillInputPortInformation(int, vtkInformation*); 00093 00094 int RequestData( 00095 vtkInformation*, 00096 vtkInformationVector**, 00097 vtkInformationVector*); 00098 00099 private: 00100 vtkSelectArraySlices(const vtkSelectArraySlices&); // Not implemented 00101 void operator=(const vtkSelectArraySlices&); // Not implemented 00102 00103 vtkIdType SliceDimension; 00104 vtkIdType MinimumCount; 00105 vtkIdType MaximumCount; 00106 double MinimumPercent; 00107 double MaximumPercent; 00108 //ETX 00109 }; 00110 00111 #endif 00112