00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkSelectionLink.h,v $ 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 =========================================================================*/ 00031 #ifndef __vtkSelectionLink_h 00032 #define __vtkSelectionLink_h 00033 00034 #include "vtkSelectionAlgorithm.h" 00035 00036 class vtkInformation; 00037 class vtkInformationVector; 00038 class vtkSelection; 00039 00040 class VTK_GRAPHICS_EXPORT vtkSelectionLink : public vtkSelectionAlgorithm 00041 { 00042 public: 00043 static vtkSelectionLink *New(); 00044 vtkTypeRevisionMacro(vtkSelectionLink, vtkSelectionAlgorithm); 00045 void PrintSelf(ostream& os, vtkIndent indent); 00046 00048 00049 vtkGetObjectMacro(Selection, vtkSelection); 00050 void SetSelection(vtkSelection* selection); 00052 00053 protected: 00054 vtkSelectionLink(); 00055 ~vtkSelectionLink(); 00056 00058 00059 virtual int RequestData( 00060 vtkInformation *info, 00061 vtkInformationVector **inVector, 00062 vtkInformationVector *outVector); 00064 00066 vtkSelection* Selection; 00067 00068 private: 00069 vtkSelectionLink(const vtkSelectionLink&); // Not implemented. 00070 void operator=(const vtkSelectionLink&); // Not implemented. 00071 }; 00072 00073 #endif