00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date: 2009-07-14 19:11:20 +0200 (Tue, 14 Jul 2009) $ 00006 Version: $Revision: 18127 $ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 #ifndef MITKTRACKINGVOLUME_H_HEADER_INCLUDED_ 00019 #define MITKTRACKINGVOLUME_H_HEADER_INCLUDED_ 00020 00021 00022 #include <MitkIGTExports.h> 00023 00024 #include "mitkSurface.h" 00025 #include "vtkPolyData.h" 00026 #include "mitkTrackingTypes.h" 00027 00028 namespace mitk 00029 { 00045 class MitkIGT_EXPORT TrackingVolume : public mitk::Surface 00046 { 00047 public: 00048 mitkClassMacro(TrackingVolume, mitk::Surface); 00049 itkNewMacro(Self); 00050 00058 bool SetTrackingDeviceType(TrackingDeviceType type); 00059 00066 void SetVolumeManually(vtkPolyData* volume); 00067 00068 00069 //brief Checks wether a point is inside or outside the tracking 00070 // volume. 00071 //param p The point which should be checked. 00072 //return Returns true if the point "p" is inside the 00073 // tracking volume, false if not. 00074 // 00075 //bool IsInside(mitk::Point3D p); TODO: implemenation of method 00076 00077 protected: 00078 TrackingVolume(); 00084 TrackingDeviceType m_TrackingDeviceType; 00085 }; 00086 } 00087 #endif // MITKTRACKINGVOLUME_H_HEADER_INCLUDED_