18 #ifndef itkGiftiMeshIO_h
19 #define itkGiftiMeshIO_h
20 #include "ITKIOMeshExport.h"
63 itkGetConstMacro(ReadPointData,
bool);
64 itkSetMacro(ReadPointData,
bool);
65 itkBooleanMacro(ReadPointData);
83 virtual bool CanReadFile(
const char *FileNameToRead) ITK_OVERRIDE;
86 virtual void ReadMeshInformation() ITK_OVERRIDE;
89 virtual
void ReadPoints(
void *buffer) ITK_OVERRIDE;
91 virtual
void ReadCells(
void *buffer) ITK_OVERRIDE;
93 virtual
void ReadPointData(
void *buffer) ITK_OVERRIDE;
95 virtual
void ReadCellData(
void *buffer) ITK_OVERRIDE;
104 virtual
bool CanWriteFile(const
char *FileNameToWrite) ITK_OVERRIDE;
107 virtual
void WriteMeshInformation() ITK_OVERRIDE;
111 virtual
void WritePoints(
void *buffer) ITK_OVERRIDE;
113 virtual
void WriteCells(
void *buffer) ITK_OVERRIDE;
115 virtual
void WritePointData(
void *buffer) ITK_OVERRIDE;
117 virtual
void WriteCellData(
void *buffer) ITK_OVERRIDE;
119 virtual
void Write() ITK_OVERRIDE;
123 virtual ~GiftiMeshIO();
125 virtual
void PrintSelf(std::ostream & os,
Indent indent) const ITK_OVERRIDE;
127 template< typename TInput, typename TOutput >
128 void ConvertBuffer(TInput *input, TOutput *output,
SizeValueType numberOfElements)
130 if ( input && output )
134 output[ii] =
static_cast< TOutput
>( input[ii] );
146 void operator=(const
Self &) ITK_DELETE_FUNCTION;
Light weight base class for most itk classes.
MapContainer< int, std::string > LabelNameContainer
A wrapper of the STL "map" container.
Superclass::SizeValueType SizeValueType
MapContainer< int, RGBAPixelType > LabelColorContainer
unsigned long SizeValueType
SmartPointer< Self > Pointer
Matrix< double, 4, 4 > DirectionType
RGBAPixel< float > RGBAPixelType
SmartPointer< const Self > ConstPointer
This class defines how to read and write Gifti file format.
LabelColorContainer::Pointer LabelColorContainerPointer
DirectionType m_Direction
Control indentation during Print() invocation.
Abstract superclass defines mesh IO interface.
gifti_image * m_GiftiImage
LabelNameContainer::Pointer LabelNameContainerPointer