IGSTK
igstkTransformBase.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Image Guided Surgery Software Toolkit
4  Module: $RCSfile: igstkTransformBase.h,v $
5  Language: C++
6  Date: $Date: 2009-06-15 21:02:07 $
7  Version: $Revision: 1.2 $
8 
9  Copyright (c) ISC Insight Software Consortium. All rights reserved.
10  See IGSTKCopyright.txt or http://www.igstk.org/copyright.htm for details.
11 
12  This software is distributed WITHOUT ANY WARRANTY; without even
13  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14  PURPOSE. See the above copyright notices for more information.
15 
16 =========================================================================*/
17 
18 #ifndef __igstkTransformBase_h
19 #define __igstkTransformBase_h
20 
21 
22 #include "igstkTimeStamp.h"
23 #include "igstkMacros.h"
24 
25 namespace igstk
26 {
27 
41 {
42 public:
43 
44  typedef double ErrorType;
46 
48  TransformBase();
49  TransformBase( const TransformBase & t );
50  virtual ~TransformBase();
51 
52 
56  igstkGetMacro( Error, ErrorType );
57 
58 
67 
68 
77 
78 
87  bool IsValidAtTime( TimePeriodType timeToTestInMilliseconds ) const;
88 
94  bool IsValidNow() const;
95 
96 
98  virtual void Print(std::ostream& os, itk::Indent indent) const =0;
99 
100 protected:
101 
104 
105 };
106 
107 std::ostream& operator<<( std::ostream& os, const igstk::TransformBase& o );
108 }
109 
110 #endif
TimeStamp provides periods of validity for data.
#define igstkGetMacro(name, type)
Get built-in type.
Definition: igstkMacros.h:105
TimePeriodType GetStartTime() const
Returns the time at which the validity of this transformation starts.
std::ostream & operator<<(std::ostream &os, const igstk::AffineTransform &o)
TimePeriodType GetExpirationTime() const
Returns the time at which the validity of this transformation expires.
bool IsValidAtTime(TimePeriodType timeToTestInMilliseconds) const
Returns the validity status of the transform at the time passed as argument.
virtual void Print(std::ostream &os, itk::Indent indent) const =0
Method for printing the member variables of this class to an ostream.
defines standard system-wide macros, constants, and other common parameters in the IGSTK Library...
The abstract base class for all of the IGSTK transform types.
TimeStamp::TimePeriodType TimePeriodType
TransformBase()
Constructor and destructor.
virtual ~TransformBase()
bool IsValidNow() const
Returns the validity status of the transform when it is called.