ITK  5.2.0
Insight Toolkit
Public Types | Public Member Functions | Static Public Member Functions | List of all members
itk::MetaArrayWriter Class Reference

#include <itkMetaArrayWriter.h>

+ Inheritance diagram for itk::MetaArrayWriter:
+ Collaboration diagram for itk::MetaArrayWriter:

Public Types

using ConstPointer = SmartPointer< const Self >
 
using Pointer = SmartPointer< Self >
 
using Self = MetaArrayWriter
 
using Superclass = LightProcessObject
 
- Public Types inherited from itk::LightProcessObject
using ConstPointer = SmartPointer< const Self >
 
using Pointer = SmartPointer< Self >
 
using Self = LightProcessObject
 
using Superclass = Object
 
- Public Types inherited from itk::Object
using ConstPointer = SmartPointer< const Self >
 
using Pointer = SmartPointer< Self >
 
using Self = Object
 
using Superclass = LightObject
 
- Public Types inherited from itk::LightObject
using ConstPointer = SmartPointer< const Self >
 
using Pointer = SmartPointer< Self >
 
using Self = LightObject
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother () const
 
virtual const char * GetNameOfClass () const
 
- Public Member Functions inherited from itk::LightProcessObject
virtual void AbortGenerateDataOff ()
 
virtual void AbortGenerateDataOn ()
 
virtual const bool & GetAbortGenerateData () const
 
virtual void SetAbortGenerateData (bool _arg)
 
virtual void SetProgress (float _arg)
 
virtual const float & GetProgress () const
 
void UpdateProgress (float amount)
 
virtual void UpdateOutputData ()
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
unsigned long AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionaryGetMetaDataDictionary ()
 
const MetaDataDictionaryGetMetaDataDictionary () const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStampGetTimeStamp () 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)
 
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 Pointer New ()
 
- 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 ()
 
bool m_Binary { false }
 
unsigned int m_Precision { 6 }
 
std::string m_FileName
 
std::string m_DataFileName
 
MetaArray m_MetaArray
 
const void * m_Buffer { nullptr }
 
virtual void SetFileName (const char *_arg)
 
virtual const char * GetFileName () const
 
virtual void SetDataFileName (const char *_arg)
 
virtual const char * GetDataFileName () const
 
virtual void BinaryOn ()
 
virtual void BinaryOff ()
 
virtual void SetBinary (bool _arg)
 
virtual bool GetBinary () const
 
template<typename TValue >
void SetInput (MET_ValueEnumType _metaElementType, const Array< TValue > *_array)
 
template<typename TValue , unsigned int VLength>
void SetInput (MET_ValueEnumType _metaElementType, const FixedArray< TValue, VLength > *_array)
 
template<typename TValue , unsigned int VLength>
void SetInput (MET_ValueEnumType _metaElementType, const Vector< TValue, VLength > *_vector)
 
template<typename TValue , unsigned int VLength>
void SetInput (MET_ValueEnumType _metaElementType, const CovariantVector< TValue, VLength > *_vector)
 
template<typename TValue >
void SetInput (MET_ValueEnumType _metaElementType, const VariableLengthVector< TValue > *_vector)
 
template<typename TValue >
void SetMultiChannelInput (MET_ValueEnumType _metaElementType, int, const Array< TValue > *_array)
 
virtual void SetPrecision (unsigned int _arg)
 
virtual unsigned int GetPrecision () const
 
void ConvertTo (MET_ValueEnumType _metaElementType)
 
void Update ()
 
 MetaArrayWriter ()
 
 ~MetaArrayWriter () override
 
void PrintSelf (std::ostream &os, Indent indent) const override
 

Additional Inherited Members

- Protected Member Functions inherited from itk::LightProcessObject
 LightProcessObject ()
 
 ~LightProcessObject () override
 
virtual void GenerateData ()
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
 ~Object () override
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &timeStamp)
 
- 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 ()
 
- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount
 

Detailed Description

Definition at line 30 of file itkMetaArrayWriter.h.

Member Typedef Documentation

◆ ConstPointer

Definition at line 38 of file itkMetaArrayWriter.h.

◆ Pointer

Definition at line 37 of file itkMetaArrayWriter.h.

◆ Self

SmartPointer type alias support

Definition at line 34 of file itkMetaArrayWriter.h.

◆ Superclass

Definition at line 35 of file itkMetaArrayWriter.h.

Constructor & Destructor Documentation

◆ MetaArrayWriter()

itk::MetaArrayWriter::MetaArrayWriter ( )
protected

Set/Get the filename.

◆ ~MetaArrayWriter()

itk::MetaArrayWriter::~MetaArrayWriter ( )
overrideprotected

Set/Get the filename.

Member Function Documentation

◆ BinaryOff()

virtual void itk::MetaArrayWriter::BinaryOff ( )
virtual

Set/Get the filename.

◆ BinaryOn()

virtual void itk::MetaArrayWriter::BinaryOn ( )
virtual

Boolean to set binary mode. If set to On, data will be stored in the file in binary format; if set to Off, data will be stored in ascci format. Default is Off.

◆ ConvertTo()

void itk::MetaArrayWriter::ConvertTo ( MET_ValueEnumType  _metaElementType)

Set the data type written to the file.

◆ CreateAnother()

virtual::itk::LightObject::Pointer itk::MetaArrayWriter::CreateAnother ( ) 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.

◆ GetBinary()

virtual bool itk::MetaArrayWriter::GetBinary ( ) const
virtual

Set/Get the filename.

◆ GetDataFileName()

virtual const char* itk::MetaArrayWriter::GetDataFileName ( ) const
virtual

Set/Get the filename.

◆ GetFileName()

virtual const char* itk::MetaArrayWriter::GetFileName ( ) const
virtual

Set/Get the filename.

◆ GetNameOfClass()

virtual const char* itk::MetaArrayWriter::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::LightProcessObject.

◆ GetPrecision()

virtual unsigned int itk::MetaArrayWriter::GetPrecision ( ) const
virtual

Set/Get the filename.

◆ New()

static Pointer itk::MetaArrayWriter::New ( )
static

Method for creation through the object factory.

◆ PrintSelf()

void itk::MetaArrayWriter::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
overrideprotectedvirtual

Set/Get the filename.

Reimplemented from itk::LightProcessObject.

◆ SetBinary()

virtual void itk::MetaArrayWriter::SetBinary ( bool  _arg)
virtual

Set/Get the filename.

◆ SetDataFileName()

virtual void itk::MetaArrayWriter::SetDataFileName ( const char *  _arg)
virtual

Set/Get the filename to which the data is written. Optional: use if header and data should be in separate files.

◆ SetFileName()

virtual void itk::MetaArrayWriter::SetFileName ( const char *  _arg)
virtual

Set/Get the filename.

◆ SetInput() [1/5]

template<typename TValue >
void itk::MetaArrayWriter::SetInput ( MET_ValueEnumType  _metaElementType,
const Array< TValue > *  _array 
)
inline

Set the input itk Array to write.

Definition at line 69 of file itkMetaArrayWriter.h.

References itk::Array< TValue >::Size().

◆ SetInput() [2/5]

template<typename TValue , unsigned int VLength>
void itk::MetaArrayWriter::SetInput ( MET_ValueEnumType  _metaElementType,
const CovariantVector< TValue, VLength > *  _vector 
)
inline

Set the input itk CovariantVector to write.

Definition at line 99 of file itkMetaArrayWriter.h.

References itk::FixedArray< T, NVectorDimension >::GetDataPointer().

◆ SetInput() [3/5]

template<typename TValue , unsigned int VLength>
void itk::MetaArrayWriter::SetInput ( MET_ValueEnumType  _metaElementType,
const FixedArray< TValue, VLength > *  _array 
)
inline

Set the input itk FixedArray to write.

Definition at line 79 of file itkMetaArrayWriter.h.

References itk::FixedArray< TValue, VLength >::GetDataPointer().

◆ SetInput() [4/5]

template<typename TValue >
void itk::MetaArrayWriter::SetInput ( MET_ValueEnumType  _metaElementType,
const VariableLengthVector< TValue > *  _vector 
)
inline

◆ SetInput() [5/5]

template<typename TValue , unsigned int VLength>
void itk::MetaArrayWriter::SetInput ( MET_ValueEnumType  _metaElementType,
const Vector< TValue, VLength > *  _vector 
)
inline

Set the input itk Vector to write.

Definition at line 89 of file itkMetaArrayWriter.h.

References itk::FixedArray< T, NVectorDimension >::GetDataPointer().

◆ SetMultiChannelInput()

template<typename TValue >
void itk::MetaArrayWriter::SetMultiChannelInput ( MET_ValueEnumType  _metaElementType,
int  ,
const Array< TValue > *  _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 the sub-arrays is the "number of channels" at each array position. Expected form itk::Array< itk::Array< * > >. May work for othesub-array-types that define the [] operator and the GetSize() function.

Definition at line 125 of file itkMetaArrayWriter.h.

References itk::Array< TValue >::GetSize().

◆ SetPrecision()

virtual void itk::MetaArrayWriter::SetPrecision ( unsigned int  _arg)
virtual

Set/Get the precision of the writing.

◆ Update()

void itk::MetaArrayWriter::Update ( )

Write out the array.

Member Data Documentation

◆ m_Binary

bool itk::MetaArrayWriter::m_Binary { false }
private

Set/Get the filename.

Definition at line 162 of file itkMetaArrayWriter.h.

◆ m_Buffer

const void* itk::MetaArrayWriter::m_Buffer { nullptr }
private

Set/Get the filename.

Definition at line 171 of file itkMetaArrayWriter.h.

◆ m_DataFileName

std::string itk::MetaArrayWriter::m_DataFileName
private

Set/Get the filename.

Definition at line 167 of file itkMetaArrayWriter.h.

◆ m_FileName

std::string itk::MetaArrayWriter::m_FileName
private

Set/Get the filename.

Definition at line 166 of file itkMetaArrayWriter.h.

◆ m_MetaArray

MetaArray itk::MetaArrayWriter::m_MetaArray
private

Set/Get the filename.

Definition at line 169 of file itkMetaArrayWriter.h.

◆ m_Precision

unsigned int itk::MetaArrayWriter::m_Precision { 6 }
private

Set/Get the filename.

Definition at line 164 of file itkMetaArrayWriter.h.


The documentation for this class was generated from the following file: