Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

graphics/vtkAbstractPropPicker.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkAbstractPropPicker.h,v $
00005   Language:  C++
00006 
00007 
00008 Copyright (c) 1993-2001 Ken Martin, Will Schroeder, Bill Lorensen.
00009 
00010 This software is copyrighted by Ken Martin, Will Schroeder and Bill Lorensen.
00011 The following terms apply to all files associated with the software unless
00012 explicitly disclaimed in individual files. This copyright specifically does
00013 not apply to the related textbook "The Visualization Toolkit" ISBN
00014 013199837-4 published by Prentice Hall which is covered by its own copyright.
00015 
00016 The authors hereby grant permission to use, copy, and distribute this
00017 software and its documentation for any purpose, provided that existing
00018 copyright notices are retained in all copies and that this notice is included
00019 verbatim in any distributions. Additionally, the authors grant permission to
00020 modify this software and its documentation for any purpose, provided that
00021 such modifications are not distributed without the explicit consent of the
00022 authors and that existing copyright notices are retained in all copies. Some
00023 of the algorithms implemented by this software are patented, observe all
00024 applicable patent law.
00025 
00026 IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY FOR
00027 DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
00028 OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY DERIVATIVES THEREOF,
00029 EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00030 
00031 THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, INCLUDING,
00032 BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
00033 PARTICULAR PURPOSE, AND NON-INFRINGEMENT.  THIS SOFTWARE IS PROVIDED ON AN
00034 "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE
00035 MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
00036 
00037 
00038 =========================================================================*/
00089 #ifndef __vtkAbstractPropPicker_h
00090 #define __vtkAbstractPropPicker_h
00091 
00092 #include "vtkAbstractPicker.h"
00093 
00094 class vtkProp;
00095 class vtkPropAssembly;
00096 class vtkAssembly;
00097 class vtkActor;
00098 class vtkVolume;
00099 class vtkProp3D;
00100 
00101 class VTK_EXPORT vtkAbstractPropPicker : public vtkAbstractPicker
00102 {
00103 public:
00104   vtkTypeMacro(vtkAbstractPropPicker,vtkAbstractPicker);
00105   void PrintSelf(ostream& os, vtkIndent indent);
00106 
00114   vtkSetObjectMacro(Path,vtkAssemblyPath);
00115   vtkGetObjectMacro(Path,vtkAssemblyPath);
00116 
00117   // The following are convenience methods to maintain API with older
00118   // versions of VTK, and to allow query for the return type of a pick. Note:
00119   // the functionality of these methods can also be obtained by using the
00120   // returned vtkAssemblyPath and using the IsA() to determine type.
00121 
00124   virtual vtkProp *GetProp();
00125   
00128   virtual vtkProp3D *GetProp3D();
00129   
00132   virtual vtkActor *GetActor();
00133   
00136   virtual vtkActor2D *GetActor2D();
00137   
00140   virtual vtkVolume *GetVolume();
00141   
00147   virtual vtkAssembly *GetAssembly();
00148   
00154   virtual vtkPropAssembly *GetPropAssembly();
00155   
00156 protected:
00157   vtkAbstractPropPicker();
00158   ~vtkAbstractPropPicker();
00159   vtkAbstractPropPicker(const vtkAbstractPropPicker&) {};
00160   void operator=(vtkAbstractPropPicker&) {};
00161 
00162   void Initialize();
00163   
00164   vtkAssemblyPath *Path; //this is what is picked, and includes the prop
00165 };
00166 
00167 #endif

Generated on Wed Nov 21 12:26:56 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001