ITK
6.0.0
Insight Toolkit
|
#include <itkTransformIOBase.h>
Abstract superclass defining the Transform IO interface.
TransformIOBaseTemplate is a pure virtual base class for derived classes that read/write transform data considering the type of input transform. First, TransformIOBase is derived from this class for legacy read/write transform. This class also is used by the TransformFileReader and TransformFileWriter classes. End users don't directly manipulate classes derived from TransformIOBaseTemplate; the TransformIOFactory is used by the Reader/Writer to pick a concrete derived class to do the actual reading/writing of transforms.
Definition at line 58 of file itkTransformIOBase.h.
Public Member Functions | |
virtual bool | CanReadFile (const char *)=0 |
virtual bool | CanWriteFile (const char *)=0 |
template<> | |
void | CorrectTransformPrecisionType (std::string &inputTransformName) |
template<> | |
void | CorrectTransformPrecisionType (std::string &inputTransformName) |
const char * | GetNameOfClass () const override |
virtual void | Read ()=0 |
void | SetTransformList (ConstTransformListType &transformList) |
virtual void | Write ()=0 |
virtual void | SetFileName (const char *_arg) |
virtual const char * | GetFileName () const |
TransformListType & | GetTransformList () |
TransformListType & | GetReadTransformList () |
ConstTransformListType & | GetWriteTransformList () |
virtual void | SetAppendMode (bool _arg) |
virtual bool | GetAppendMode () const |
virtual void | AppendModeOn () |
virtual void | SetUseCompression (bool _arg) |
virtual bool | GetUseCompression () const |
virtual void | UseCompressionOn () |
Public Member Functions inherited from itk::LightProcessObject | |
virtual void | AbortGenerateDataOn () |
virtual const bool & | GetAbortGenerateData () const |
virtual void | SetAbortGenerateData (bool _arg) |
virtual void | UpdateOutputData () |
void | UpdateProgress (float amount) |
virtual void | SetProgress (float _arg) |
virtual const float & | GetProgress () const |
Public Member Functions inherited from itk::Object | |
unsigned long | AddObserver (const EventObject &event, Command *cmd) const |
unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
LightObject::Pointer | CreateAnother () const override |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary () |
const MetaDataDictionary & | GetMetaDataDictionary () const |
virtual ModifiedTimeType | GetMTime () const |
virtual const TimeStamp & | GetTimeStamp () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) |
void | InvokeEvent (const EventObject &) const |
virtual void | Modified () const |
void | Register () const override |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) const |
void | SetDebug (bool debugFlag) const |
void | SetReferenceCount (int) override |
void | UnRegister () const noexcept override |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
virtual void | SetObjectName (std::string _arg) |
virtual const std::string & | GetObjectName () const |
Public Member Functions inherited from itk::LightObject | |
Pointer | Clone () const |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
void | Print (std::ostream &os, Indent indent=0) const |
Static Public Member Functions | |
static void | CorrectTransformPrecisionType (std::string &) |
Static Public Member Functions inherited from itk::LightProcessObject | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Protected Member Functions | |
void | CreateTransform (TransformPointer &ptr, const std::string &ClassName) |
template<> | |
std::string | GetTypeNameString () |
template<> | |
std::string | GetTypeNameString () |
void | OpenStream (std::ofstream &outputStream, bool binary) |
void | PrintSelf (std::ostream &os, Indent indent) const override |
TransformIOBaseTemplate () | |
~TransformIOBaseTemplate () override | |
Protected Member Functions inherited from itk::LightProcessObject | |
virtual void | GenerateData () |
LightProcessObject () | |
~LightProcessObject () override | |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
~Object () override | |
Protected Member Functions inherited from itk::LightObject | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Static Protected Member Functions | |
static std::string | GetTypeNameString () |
Private Attributes | |
bool | m_AppendMode { false } |
std::string | m_FileName {} |
TransformListType | m_ReadTransformList {} |
bool | m_UseCompression { false } |
ConstTransformListType | m_WriteTransformList {} |
Additional Inherited Members | |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount {} |
using itk::TransformIOBaseTemplate< TParametersValueType >::ConstTransformListType = std::list<ConstTransformPointer> |
Definition at line 82 of file itkTransformIOBase.h.
using itk::TransformIOBaseTemplate< TParametersValueType >::ConstTransformPointer = typename TransformType::ConstPointer |
Definition at line 81 of file itkTransformIOBase.h.
using itk::TransformIOBaseTemplate< TParametersValueType >::FixedParametersValueType = double |
Definition at line 72 of file itkTransformIOBase.h.
using itk::TransformIOBaseTemplate< TParametersValueType >::ParametersValueType = TParametersValueType |
Definition at line 71 of file itkTransformIOBase.h.
using itk::TransformIOBaseTemplate< TParametersValueType >::Pointer = SmartPointer<Self> |
Definition at line 64 of file itkTransformIOBase.h.
using itk::TransformIOBaseTemplate< TParametersValueType >::ScalarType = TParametersValueType |
Transform types
Definition at line 70 of file itkTransformIOBase.h.
using itk::TransformIOBaseTemplate< TParametersValueType >::Self = TransformIOBaseTemplate |
Standard class type aliases
Definition at line 62 of file itkTransformIOBase.h.
using itk::TransformIOBaseTemplate< TParametersValueType >::Superclass = LightProcessObject |
Definition at line 63 of file itkTransformIOBase.h.
using itk::TransformIOBaseTemplate< TParametersValueType >::TransformListType = std::list<TransformPointer> |
Definition at line 80 of file itkTransformIOBase.h.
using itk::TransformIOBaseTemplate< TParametersValueType >::TransformPointer = typename TransformType::Pointer |
For writing, a const transform list gets passed in, for reading, a non-const transform list is created from the file.
Definition at line 79 of file itkTransformIOBase.h.
using itk::TransformIOBaseTemplate< TParametersValueType >::TransformType = TransformBaseTemplate<ParametersValueType> |
Definition at line 74 of file itkTransformIOBase.h.
|
protected |
|
overrideprotected |
|
virtual |
Set the writer to append to the specified file
|
pure virtual |
Determine the file type. Returns true if this TransformIO can read the file specified.
Implemented in itk::HDF5TransformIOTemplate< TParametersValueType >, itk::TxtTransformIOTemplate< TParametersValueType >, and itk::MatlabTransformIOTemplate< ParametersValueType >.
|
pure virtual |
Determine the file type. Returns true if this TransformIO can read the file specified.
Implemented in itk::HDF5TransformIOTemplate< TParametersValueType >, itk::TxtTransformIOTemplate< TParametersValueType >, and itk::MatlabTransformIOTemplate< ParametersValueType >.
|
inlinestatic |
The transform type has a string representation used when reading and writing transform files. In the case where a double-precision transform is to be written as float, or vice versa, the transform type name used to write the file needs to patched in order for the transform I/O hierarchy to work correctly. These template functions will be chosen at compile time within template classes in order to patch up the type name.
Definition at line 150 of file itkTransformIOBase.h.
|
inline |
Definition at line 187 of file itkTransformIOBase.h.
|
inline |
Definition at line 199 of file itkTransformIOBase.h.
|
protected |
|
virtual |
Set the writer to append to the specified file
|
virtual |
Set/Get the name of the file to be read.
|
overridevirtual |
Reimplemented from itk::LightProcessObject.
Reimplemented in itk::HDF5TransformIOTemplate< TParametersValueType >, and itk::TxtTransformIOTemplate< TParametersValueType >.
|
inline |
Get the list of transforms resulting from a file read
Definition at line 114 of file itkTransformIOBase.h.
|
inline |
Get the list of transforms resulting from a file read
Definition at line 109 of file itkTransformIOBase.h.
|
inlinestaticprotected |
Definition at line 170 of file itkTransformIOBase.h.
|
inlineprotected |
Definition at line 211 of file itkTransformIOBase.h.
|
inlineprotected |
Definition at line 218 of file itkTransformIOBase.h.
|
virtual |
Set/Get a boolean to use the compression or not.
|
inline |
Get the list of transforms resulting from a file read
Definition at line 119 of file itkTransformIOBase.h.
|
protected |
|
overrideprotectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::LightProcessObject.
|
pure virtual |
Reads the data from disk into the memory buffer provided.
Implemented in itk::HDF5TransformIOTemplate< TParametersValueType >, itk::TxtTransformIOTemplate< TParametersValueType >, and itk::MatlabTransformIOTemplate< ParametersValueType >.
|
virtual |
Set the writer to append to the specified file
|
virtual |
Set/Get the name of the file to be read.
void itk::TransformIOBaseTemplate< TParametersValueType >::SetTransformList | ( | ConstTransformListType & | transformList | ) |
Set the list of transforms before writing
|
virtual |
Set/Get a boolean to use the compression or not.
|
virtual |
Set/Get a boolean to use the compression or not.
|
pure virtual |
Writes the transform list to disk.
Implemented in itk::HDF5TransformIOTemplate< TParametersValueType >, itk::TxtTransformIOTemplate< TParametersValueType >, and itk::MatlabTransformIOTemplate< ParametersValueType >.
|
private |
Definition at line 179 of file itkTransformIOBase.h.
|
private |
Definition at line 176 of file itkTransformIOBase.h.
|
private |
Definition at line 177 of file itkTransformIOBase.h.
|
private |
Should we compress the data?
Definition at line 181 of file itkTransformIOBase.h.
|
private |
Definition at line 178 of file itkTransformIOBase.h.