Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::NrrdTbssImageWriter Class Reference

#include <mitkNrrdTbssImageWriter.h>

Inheritance diagram for mitk::NrrdTbssImageWriter:
Collaboration diagram for mitk::NrrdTbssImageWriter:

Public Types

typedef mitk::TbssImage InputType
 
- Public Types inherited from mitk::FileWriterWithInformation
typedef FileWriterWithInformation Self
 
typedef FileWriter Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
- Public Types inherited from mitk::FileWriter
typedef FileWriter Self
 
typedef itk::ProcessObject Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 

Public Member Functions

 mitkClassMacro (NrrdTbssImageWriter, mitk::FileWriterWithInformation) mitkWriterMacro static Pointer New()
 
Pointer Clone () const
 
virtual void SetFileName (const char *_arg)
 
virtual const char * GetFileName () const
 
virtual void SetFilePrefix (const char *_arg)
 
virtual const char * GetFilePrefix () const
 
virtual void SetFilePattern (const char *_arg)
 
virtual const char * GetFilePattern () const
 
void SetInput (InputType *input)
 
InputTypeGetInput ()
 
virtual bool GetSuccess ()
 
virtual std::vector< std::string > GetPossibleFileExtensions () override
 
std::string GetSupportedBaseData () const override
 
virtual const char * GetDefaultFilename () override
 
virtual const char * GetFileDialogPattern () override
 
virtual const char * GetDefaultExtension () override
 
virtual bool CanWriteBaseDataType (BaseData::Pointer data) override
 
virtual void DoWrite (BaseData::Pointer data) override
 
- Public Member Functions inherited from mitk::FileWriterWithInformation
virtual std::vector< std::string > GetClassHierarchy () const override
 
virtual const char * GetClassName () const
 
- Public Member Functions inherited from mitk::FileWriter
virtual std::string GetFileExtension ()
 Return the extension to be added to the filename. More...
 
bool IsExtensionValid (std::string extension)
 Checks if given extension is valid for file writer. More...
 
virtual std::string GetPossibleFileExtensionsAsString ()
 possible file extensions for the data type associated with the writer as string More...
 
virtual bool CanWriteDataType (DataNode *)
 Check if the Writer can write this type of data of the DataTreenode. More...
 
virtual std::string GetWritenMIMEType ()
 Return the MimeType of the saved File. More...
 
void SetInput (BaseData *data)
 
virtual void Write ()=0
 
virtual bool CanWriteToMemory ()
 Specifies, whether the file writer also can write a file to a memory buffer. More...
 
virtual void SetWriteToMemory (bool write)
 Set/Get functions to advise the file writer to use tis internal memory array as file writing destination. More...
 
virtual bool GetWriteToMemory ()
 
virtual const char * GetMemoryPointer ()
 To be used along with a call of SetWriteToMemory(true). This returns the memory buffer where the file was written. More...
 
virtual unsigned int GetMemorySize ()
 To be used along with a call of SetWriteToMemory(true). This returns the size of the memory buffer where the file was written. More...
 
virtual void ReleaseMemory ()
 CAUTION: It's up to the user to call this function to release the memory buffer after use in case the file writer has written to its memory array. More...
 

Protected Member Functions

 NrrdTbssImageWriter ()
 
virtual ~NrrdTbssImageWriter ()
 
virtual void GenerateData () override
 
- Protected Member Functions inherited from mitk::FileWriter
 FileWriter ()
 
virtual ~FileWriter ()
 

Protected Attributes

std::string m_FileName
 
std::string m_FilePrefix
 
std::string m_FilePattern
 
bool m_Success
 
- Protected Attributes inherited from mitk::FileWriter
bool m_CanWriteToMemory
 
bool m_WriteToMemory
 
char * m_MemoryBuffer
 
unsigned int m_MemoryBufferSize
 

Additional Inherited Members

- Static Public Member Functions inherited from mitk::FileWriterWithInformation
static const char * GetStaticNameOfClass ()
 
- Static Public Member Functions inherited from mitk::FileWriter
static const char * GetStaticNameOfClass ()
 

Detailed Description

Writes diffusion volumes to a file

Definition at line 33 of file mitkNrrdTbssImageWriter.h.

Member Typedef Documentation

Constructor & Destructor Documentation

mitk::NrrdTbssImageWriter::NrrdTbssImageWriter ( )
protected

Definition at line 33 of file mitkNrrdTbssImageWriter.cpp.

mitk::NrrdTbssImageWriter::~NrrdTbssImageWriter ( )
protectedvirtual

Definition at line 39 of file mitkNrrdTbssImageWriter.cpp.

Member Function Documentation

virtual bool mitk::NrrdTbssImageWriter::CanWriteBaseDataType ( BaseData::Pointer  data)
inlineoverridevirtual

Implements mitk::FileWriterWithInformation.

Definition at line 104 of file mitkNrrdTbssImageWriter.h.

Pointer mitk::NrrdTbssImageWriter::Clone ( ) const
virtual void mitk::NrrdTbssImageWriter::DoWrite ( BaseData::Pointer  data)
inlineoverridevirtual

Implements mitk::FileWriterWithInformation.

Definition at line 110 of file mitkNrrdTbssImageWriter.h.

References Update().

void mitk::NrrdTbssImageWriter::GenerateData ( )
overrideprotectedvirtual
virtual const char* mitk::NrrdTbssImageWriter::GetDefaultExtension ( )
inlineoverridevirtual

Implements mitk::FileWriterWithInformation.

Definition at line 103 of file mitkNrrdTbssImageWriter.h.

virtual const char* mitk::NrrdTbssImageWriter::GetDefaultFilename ( )
inlineoverridevirtual

Implements mitk::FileWriterWithInformation.

Definition at line 101 of file mitkNrrdTbssImageWriter.h.

virtual const char* mitk::NrrdTbssImageWriter::GetFileDialogPattern ( )
inlineoverridevirtual

Implements mitk::FileWriterWithInformation.

Definition at line 102 of file mitkNrrdTbssImageWriter.h.

virtual const char* mitk::NrrdTbssImageWriter::GetFileName ( ) const
virtual
Returns
the name of the file to be written to disk.

Implements mitk::FileWriter.

virtual const char* mitk::NrrdTbssImageWriter::GetFilePattern ( ) const
virtual
Warning
multiple write not (yet) supported

Implements mitk::FileWriter.

virtual const char* mitk::NrrdTbssImageWriter::GetFilePrefix ( ) const
virtual
Warning
multiple write not (yet) supported

Implements mitk::FileWriter.

mitk::TbssImage * mitk::NrrdTbssImageWriter::GetInput ( void  )

itk::VectorImage<TPixelType, 3>

Returns
the 0'th input object of the filter.

Definition at line 140 of file mitkNrrdTbssImageWriter.cpp.

std::vector< std::string > mitk::NrrdTbssImageWriter::GetPossibleFileExtensions ( )
overridevirtual
Returns
possible file extensions for the data type associated with the writer

Implements mitk::FileWriter.

Definition at line 153 of file mitkNrrdTbssImageWriter.cpp.

virtual bool mitk::NrrdTbssImageWriter::GetSuccess ( )
virtual

Returns false if an error happened during writing

std::string mitk::NrrdTbssImageWriter::GetSupportedBaseData ( ) const
overridevirtual

Implements mitk::FileWriter.

Definition at line 160 of file mitkNrrdTbssImageWriter.cpp.

References mitk::Image::GetStaticNameOfClass().

mitk::NrrdTbssImageWriter::mitkClassMacro ( NrrdTbssImageWriter  ,
mitk::FileWriterWithInformation   
)
virtual void mitk::NrrdTbssImageWriter::SetFileName ( const char *  _arg)
virtual

Sets the filename of the file to write.

Parameters
FileNamethe nameInputType of the file to write.

Implements mitk::FileWriter.

virtual void mitk::NrrdTbssImageWriter::SetFilePattern ( const char *  _arg)
virtual
Warning
multiple write not (yet) supported

Implements mitk::FileWriter.

virtual void mitk::NrrdTbssImageWriter::SetFilePrefix ( const char *  _arg)
virtual
Warning
multiple write not (yet) supported

Implements mitk::FileWriter.

void mitk::NrrdTbssImageWriter::SetInput ( InputType input)

Definition at line 134 of file mitkNrrdTbssImageWriter.cpp.

Member Data Documentation

std::string mitk::NrrdTbssImageWriter::m_FileName
protected

Definition at line 125 of file mitkNrrdTbssImageWriter.h.

std::string mitk::NrrdTbssImageWriter::m_FilePattern
protected

Definition at line 129 of file mitkNrrdTbssImageWriter.h.

std::string mitk::NrrdTbssImageWriter::m_FilePrefix
protected

Definition at line 127 of file mitkNrrdTbssImageWriter.h.

bool mitk::NrrdTbssImageWriter::m_Success
protected

Definition at line 131 of file mitkNrrdTbssImageWriter.h.


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