00001 /*========================================================================= 00002 00003 Program: Image Guided Surgery Software Toolkit 00004 Module: $RCSfile: igstkTransformBase.h,v $ 00005 Language: C++ 00006 Date: $Date: 2009-06-15 21:02:07 $ 00007 Version: $Revision: 1.2 $ 00008 00009 Copyright (c) ISC Insight Software Consortium. All rights reserved. 00010 See IGSTKCopyright.txt or http://www.igstk.org/copyright.htm 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 __igstkTransformBase_h 00019 #define __igstkTransformBase_h 00020 00021 00022 #include "igstkTimeStamp.h" 00023 #include "igstkMacros.h" 00024 00025 namespace igstk 00026 { 00027 00040 class TransformBase 00041 { 00042 public: 00043 00044 typedef double ErrorType; 00045 typedef TimeStamp::TimePeriodType TimePeriodType; 00046 00048 TransformBase(); 00049 TransformBase( const TransformBase & t ); 00050 virtual ~TransformBase(); 00051 00052 00056 igstkGetMacro( Error, ErrorType ); 00057 00058 00066 TimePeriodType GetStartTime() const; 00067 00068 00076 TimePeriodType GetExpirationTime() const; 00077 00078 00087 bool IsValidAtTime( TimePeriodType timeToTestInMilliseconds ) const; 00088 00094 bool IsValidNow() const; 00095 00096 00098 virtual void Print(std::ostream& os, itk::Indent indent) const =0; 00099 00100 protected: 00101 00102 TimeStamp m_TimeStamp; 00103 ErrorType m_Error; 00104 00105 }; 00106 00107 std::ostream& operator<<( std::ostream& os, const igstk::TransformBase& o ); 00108 } 00109 00110 #endif