cartodata
5.1.2
|
FormatReader specialized for 4D Volume. More...
#include <cartodata/io/volumeformatreader.h>
Public Member Functions | |
virtual | ~VolumeFormatReader () |
virtual void | read (carto::Volume< T > &obj, carto::rc_ptr< DataSourceInfo > dsi, const AllocatorContext &context, carto::Object options=carto::none()) |
FormatReader derived function This method understands a volume and calls read( buffer ) with appropriate arguments. More... | |
void | attach (carto::rc_ptr< ImageReader< T > > imr) |
Linking to a ImageReader Allows us to declare only once the ImageReader. More... | |
virtual Volume< T > * | createAndRead (carto::rc_ptr< DataSourceInfo > dsi, const AllocatorContext &context, carto::Object options) |
Factory mode: creates an object and reads it. More... | |
virtual void | setupAndRead (Volume< T > &obj, carto::rc_ptr< DataSourceInfo > dsi, const AllocatorContext &context, carto::Object options) |
Full reading procedure, for an already existing object. More... | |
virtual FormatReader< carto::Volume< T > > * | clone () const |
virtual std::string | formatID () const |
![]() | |
virtual | ~FormatReader () |
virtual void | setupAndRead (T &obj, carto::rc_ptr< DataSourceInfo > dsi, const AllocatorContext &context, carto::Object options) |
virtual void | read (T &obj, carto::rc_ptr< DataSourceInfo > dsi, const AllocatorContext &context, carto::Object options) |
virtual carto::rc_ptr< DataSourceInfo > | checkDataSourceInfo (carto::rc_ptr< DataSourceInfo > dsi, carto::Object options) |
virtual T * | create (carto::Object header, const AllocatorContext &context, carto::Object options) |
virtual void | setup (T &obj, carto::Object header, const AllocatorContext &context, carto::Object options) |
Protected Attributes | |
carto::rc_ptr< ImageReader< T > > | _imr |
FormatReader specialized for 4D Volume.
A such VolumeFormatReader needs to be linked to a specialized ImageReader before being registered into a FormatDictionary.
It understands the Volume and detects specific cases (borders, partial reading, ...) before performing the reading through its linked ImageReader.
The parameters for partial reading or borders may be given through the filename, at creation of the Reader.
Definition at line 81 of file volumeformatreader.h.
|
virtual |
Definition at line 77 of file volumeformatreader_d.h.
void soma::VolumeFormatReader< T >::attach | ( | carto::rc_ptr< ImageReader< T > > | imr | ) |
Linking to a ImageReader Allows us to declare only once the ImageReader.
Definition at line 545 of file volumeformatreader_d.h.
Referenced by soma::VolumeFormatReader< T >::clone(), soma::VolumeRefFormatReader< T >::createAndRead(), soma::VolumeRefFormatReader< T >::read(), and soma::VolumeRefFormatReader< T >::setupAndRead().
|
virtual |
Implements soma::FormatReader< carto::Volume< T > >.
Definition at line 534 of file volumeformatreader_d.h.
References soma::VolumeFormatReader< T >::attach().
|
virtual |
Factory mode: creates an object and reads it.
The returned object belongs to the calling layer and may be deleted by the standard delete
Reimplemented from soma::FormatReader< carto::Volume< T > >.
Definition at line 146 of file volumeformatreader_d.h.
References rc_ptr< GenericObject >::get(), soma::VolumeUtilIO< T >::listReadProperties(), localMsg, soma::VolumeUtilIO< T >::read(), carto::Object::reference(), carto::rc_ptr< class >::reset(), carto::Carto2AimsHeaderTranslator::translate(), and carto::Object::value().
Referenced by soma::VolumeRefFormatReader< T >::createAndRead().
|
virtual |
Implements soma::FormatReader< carto::Volume< T > >.
Definition at line 552 of file volumeformatreader_d.h.
|
virtual |
FormatReader derived function This method understands a volume and calls read( buffer ) with appropriate arguments.
Definition at line 216 of file volumeformatreader_d.h.
References carto::Volume< T >::allocatorContext(), soma::AllocatorContext::allocatorType(), carto::rc_ptr< class >::get(), carto::VolumeProxy< T >::getSize(), soma::AllocatorContext::isAllocated(), localMsg, carto::max(), carto::Volume< T >::posInRefVolume(), soma::AllocatorStrategy::ReadOnlyMap, carto::Volume< T >::refVolume(), and carto::toString().
Referenced by soma::VolumeRefFormatReader< T >::read().
|
virtual |
Full reading procedure, for an already existing object.
Definition at line 93 of file volumeformatreader_d.h.
References rc_ptr< GenericObject >::get(), soma::VolumeUtilIO< T >::listReadProperties(), localMsg, soma::VolumeUtilIO< T >::read(), carto::Object::reference(), carto::rc_ptr< class >::reset(), carto::Carto2AimsHeaderTranslator::translate(), and carto::Object::value().
Referenced by soma::VolumeRefFormatReader< T >::setupAndRead().
|
protected |
Definition at line 119 of file volumeformatreader.h.