ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkMetaArrayWriter.h>
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef MetaArrayWriter | Self |
typedef LightProcessObject | Superclass |
Public Member Functions | |
void | ConvertTo (MET_ValueEnumType _metaElementType) |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual bool | GetBinary () const |
virtual const char * | GetDataFileName () const |
virtual const char * | GetFileName () const |
virtual const char * | GetNameOfClass () const |
virtual void | SetBinary (bool _arg) |
virtual void | SetDataFileName (const char *_arg) |
virtual void | SetFileName (const char *_arg) |
void | Update () |
template<typename TValueType > | |
void | SetInput (MET_ValueEnumType _metaElementType, const Array< TValueType > *_array) |
template<typename TValueType , unsigned int VLength> | |
void | SetInput (MET_ValueEnumType _metaElementType, const FixedArray< TValueType, VLength > *_array) |
template<typename TValueType , unsigned int VLength> | |
void | SetInput (MET_ValueEnumType _metaElementType, const Vector< TValueType, VLength > *_vector) |
template<typename TValueType , unsigned int VLength> | |
void | SetInput (MET_ValueEnumType _metaElementType, const CovariantVector< TValueType, VLength > *_vector) |
template<typename TValueType > | |
void | SetInput (MET_ValueEnumType _metaElementType, const VariableLengthVector< TValueType > *_vector) |
template<typename TValueType > | |
void | SetMultiChannelInput (MET_ValueEnumType _metaElementType, int, const Array< TValueType > *_array) |
virtual void | SetPrecision (unsigned int _arg) |
virtual unsigned int | GetPrecision () const |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
MetaArrayWriter () | |
void | PrintSelf (std::ostream &os, Indent indent) const |
virtual | ~MetaArrayWriter () |
Private Attributes | |
bool | m_Binary |
const void * | m_Buffer |
std::string | m_DataFileName |
std::string | m_FileName |
MetaArray | m_MetaArray |
unsigned int | m_Precision |
Definition at line 29 of file itkMetaArrayWriter.h.
typedef SmartPointer< const Self > itk::MetaArrayWriter::ConstPointer |
Reimplemented from itk::LightProcessObject.
Definition at line 38 of file itkMetaArrayWriter.h.
typedef SmartPointer< Self > itk::MetaArrayWriter::Pointer |
Reimplemented from itk::LightProcessObject.
Definition at line 37 of file itkMetaArrayWriter.h.
SmartPointer typedef support
Reimplemented from itk::LightProcessObject.
Definition at line 34 of file itkMetaArrayWriter.h.
Reimplemented from itk::LightProcessObject.
Definition at line 35 of file itkMetaArrayWriter.h.
itk::MetaArrayWriter::MetaArrayWriter | ( | ) | [protected] |
virtual itk::MetaArrayWriter::~MetaArrayWriter | ( | ) | [protected, virtual] |
void itk::MetaArrayWriter::ConvertTo | ( | MET_ValueEnumType | _metaElementType | ) |
Set the data type written to the file
virtual::itk::LightObject::Pointer itk::MetaArrayWriter::CreateAnother | ( | void | ) | const [virtual] |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::LightProcessObject.
virtual bool itk::MetaArrayWriter::GetBinary | ( | ) | const [virtual] |
Returns true if the file to be produced will store the data in binary (instead of ascii) format
virtual const char* itk::MetaArrayWriter::GetDataFileName | ( | ) | const [virtual] |
Get the filename to which the data will be written
virtual const char* itk::MetaArrayWriter::GetFileName | ( | ) | const [virtual] |
Get the filename
virtual const char* itk::MetaArrayWriter::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::LightProcessObject.
virtual unsigned int itk::MetaArrayWriter::GetPrecision | ( | ) | const [virtual] |
Copies the elements from an array of arrays into the output buffer. Requires all sub-arrays to have the same length. length of the major array is the "length" of the array, while the length of teh sub-arrays is the "number of channels" at each array position. Expected form itk::Array< itk::Array< * > >. May work for other sub-array-types that define the [] operator and the GetSize() function.
static Pointer itk::MetaArrayWriter::New | ( | ) | [static] |
Method for creation through the object factory
Reimplemented from itk::LightProcessObject.
void itk::MetaArrayWriter::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
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.
virtual void itk::MetaArrayWriter::SetBinary | ( | bool | _arg | ) | [virtual] |
Set the writer to store the array as binary data
virtual void itk::MetaArrayWriter::SetDataFileName | ( | const char * | _arg | ) | [virtual] |
Set the filename to which the data is written Optional param - use if header and data should be in separate files.
virtual void itk::MetaArrayWriter::SetFileName | ( | const char * | _arg | ) | [virtual] |
Set the filename
void itk::MetaArrayWriter::SetInput | ( | MET_ValueEnumType | _metaElementType, |
const Array< TValueType > * | _array | ||
) | [inline] |
Set the input itk Array to write
Definition at line 69 of file itkMetaArrayWriter.h.
References itk::Array< TValueType >::Size().
void itk::MetaArrayWriter::SetInput | ( | MET_ValueEnumType | _metaElementType, |
const FixedArray< TValueType, VLength > * | _array | ||
) | [inline] |
Set the input itk FixedArray to write
Definition at line 80 of file itkMetaArrayWriter.h.
References itk::FixedArray< TValueType, VLength >::GetDataPointer().
void itk::MetaArrayWriter::SetInput | ( | MET_ValueEnumType | _metaElementType, |
const Vector< TValueType, VLength > * | _vector | ||
) | [inline] |
Set the input itk Vector to write
Definition at line 91 of file itkMetaArrayWriter.h.
References itk::FixedArray< T, NVectorDimension >::GetDataPointer().
void itk::MetaArrayWriter::SetInput | ( | MET_ValueEnumType | _metaElementType, |
const CovariantVector< TValueType, VLength > * | _vector | ||
) | [inline] |
Set the input itk CovariantVector to write
Definition at line 102 of file itkMetaArrayWriter.h.
References itk::FixedArray< T, NVectorDimension >::GetDataPointer().
void itk::MetaArrayWriter::SetInput | ( | MET_ValueEnumType | _metaElementType, |
const VariableLengthVector< TValueType > * | _vector | ||
) | [inline] |
Set the input itk VariableLengthVector to write
Definition at line 113 of file itkMetaArrayWriter.h.
References itk::VariableLengthVector< TValueType >::GetDataPointer(), and itk::VariableLengthVector< TValueType >::Size().
void itk::MetaArrayWriter::SetMultiChannelInput | ( | MET_ValueEnumType | _metaElementType, |
int | , | ||
const Array< TValueType > * | _array | ||
) | [inline] |
Copies the elements from an array of arrays into the output buffer. Requires all sub-arrays to have the same length. length of the major array is the "length" of the array, while the length of teh sub-arrays is the "number of channels" at each array position. Expected form itk::Array< itk::Array< * > >. May work for other sub-array-types that define the [] operator and the GetSize() function.
Definition at line 130 of file itkMetaArrayWriter.h.
References itk::Array< TValueType >::GetSize(), and NULL.
virtual void itk::MetaArrayWriter::SetPrecision | ( | unsigned int | _arg | ) | [virtual] |
Set/Get the precision of the writing
void itk::MetaArrayWriter::Update | ( | ) |
Write out the array
bool itk::MetaArrayWriter::m_Binary [private] |
Definition at line 173 of file itkMetaArrayWriter.h.
const void* itk::MetaArrayWriter::m_Buffer [private] |
Definition at line 182 of file itkMetaArrayWriter.h.
std::string itk::MetaArrayWriter::m_DataFileName [private] |
Definition at line 178 of file itkMetaArrayWriter.h.
std::string itk::MetaArrayWriter::m_FileName [private] |
Definition at line 177 of file itkMetaArrayWriter.h.
MetaArray itk::MetaArrayWriter::m_MetaArray [private] |
Definition at line 180 of file itkMetaArrayWriter.h.
unsigned int itk::MetaArrayWriter::m_Precision [private] |
Definition at line 175 of file itkMetaArrayWriter.h.