|
cartodata 6.0.0
|
FormatWriter specialized for 4D Volume. More...
#include <cartodata/io/volumeformatwriter.h>


Public Member Functions | |
| virtual | ~VolumeFormatWriter () |
| virtual bool | filterProperties (carto::Object header, carto::Object options=carto::none()) |
| FormatWriter derived function It removes properties that must not be written. | |
| virtual bool | write (const carto::Volume< T > &obj, carto::rc_ptr< DataSourceInfo > dsi, carto::Object options) |
| FormatWriter derived function This method understands a volume and calls appropriate ImageWriter methods. | |
| void | attach (carto::rc_ptr< ImageWriter< T > > imw) |
| Linking to a ImageWriter Allows us to declare only once the ImageWriter. | |
Public Member Functions inherited from soma::FormatWriter< carto::Volume< T > > | |
| virtual | ~FormatWriter () |
| virtual bool | write (const T &obj, carto::rc_ptr< DataSourceInfo > dsi, carto::Object options)=0 |
Protected Attributes | |
| carto::rc_ptr< ImageWriter< T > > | _imw |
FormatWriter specialized for 4D Volume.
A such VolumeFormatWriter needs to be linked to a specialized ImageWriter before being registered into a FormatDictionary.
It understands the Volume and detects specific cases (borders, partial reading, ...) before performing the writing through its linked ImageWriter.
Options may be given through the filename, at creation of the Reader.
Definition at line 78 of file volumeformatwriter.h.
|
virtual |
Definition at line 69 of file volumeformatwriter_d.h.
| void soma::VolumeFormatWriter< T >::attach | ( | carto::rc_ptr< ImageWriter< T > > | imw | ) |
Linking to a ImageWriter Allows us to declare only once the ImageWriter.
Definition at line 384 of file volumeformatwriter_d.h.
References _imw.
Referenced by soma::VolumeRefFormatWriter< T >::write().
|
virtual |
FormatWriter derived function It removes properties that must not be written.
Implements soma::FormatWriter< carto::Volume< T > >.
Definition at line 77 of file volumeformatwriter_d.h.
References soma::MinfUtil::filter().
Referenced by write().
|
virtual |
FormatWriter derived function This method understands a volume and calls appropriate ImageWriter methods.
Definition at line 90 of file volumeformatwriter_d.h.
References _imw, carto::Volume< T >::allocatorContext(), soma::AllocatorContext::allocatorType(), carto::Volume< T >::at(), filterProperties(), carto::rc_ptr< typename T >::get(), carto::VolumeProxy< T >::getSize(), soma::AffineTransformationBase::inverse(), soma::AllocatorContext::isAllocated(), localMsg, carto::Volume< T >::posInRefVolume(), soma::AllocatorStrategy::ReadWriteMap, carto::Volume< T >::referential(), carto::Volume< T >::refVolume(), carto::Volume< T >::reorientedHeader(), carto::toString(), soma::Transformation::transformVector(), and carto::Object::value().
Referenced by soma::VolumeRefFormatWriter< T >::write().
|
protected |
Definition at line 100 of file volumeformatwriter.h.