aimsdata 6.0.20
Neuroimaging data handling
aims::JpegHeader Class Reference

The descriptor class of the .dim GIS header. More...

#include <aims/io/jpegheader.h>

Inheritance diagram for aims::JpegHeader:
Collaboration diagram for aims::JpegHeader:

Public Member Functions

 JpegHeader (const std::string &name, const std::string &type="UNKNOWN", int x=1, int y=1, int z=1, int t=1, float sx=1, float sy=1, float sz=1, float st=1)
virtual ~JpegHeader ()
int dimX () const
int dimY () const
int dimZ () const
int dimT () const
float sizeX () const
float sizeY () const
float sizeZ () const
float sizeT () const
std::string dataType () const
 Get type of items ("U08", "S08", "U16", "S16", ...).
void setType (const std::string &t)
std::vector< std::string > possibleDataTypes () const
 Get the file name of the header.
virtual std::string extension () const
 standard file format extension of specialized headers
virtual std::set< std::string > extensions () const
 possible filename extensions for specialized formats
void read ()
Public Member Functions inherited from aims::SliceFormatHeader
 SliceFormatHeader (const std::string &filename, int dimx=1, int dimy=1, int dimz=1, int dimt=1, float vsx=1, float vsy=1, float vsz=1, float vst=1)
virtual ~SliceFormatHeader ()
virtual std::vector< std::string > inputFilenames ()
virtual std::vector< std::string > outputFilenames () const
std::string inputNamepattern (unsigned &smin, unsigned &smax, unsigned &tmin, unsigned &tmax) const
std::string filename () const
Public Member Functions inherited from aims::PythonHeader
 PythonHeader ()
 PythonHeader (const internal::PythonHeaderType &)
 PythonHeader (const PythonHeader &)
 PythonHeader (carto::Headered &)
 initialization by reference
virtual ~PythonHeader ()
virtual PythonHeader & operator= (const PythonHeader &)
virtual const char * id () const
virtual bool readMinf (const std::string &filename)
 read meta-info header
virtual bool writeMinf (const std::string &filename)
 write meta-info header, non-const version (may change some attributes)
virtual bool writeMinf (const std::string &filename) const
 write meta-info header
virtual Header * cloneHeader (bool keepUuid=false) const
virtual void copy (const PythonHeader &, bool keepUuid=false)
virtual void copy (const carto::Object &, bool keepUuid=false)
virtual bool isScalar () const
virtual bool isString () const
virtual bool isArray () const
virtual bool isDynArray () const
virtual bool isIterator () const
virtual bool isDictionaryIterator () const
Public Member Functions inherited from carto::PointerObject< carto::PropertySet >
 PointerObject (T &x, bool owner)
virtual ~PointerObject ()
virtual T & getValue ()
virtual Object clone () const
Public Member Functions inherited from carto::TypedObject< T >
 TypedObject ()
virtual ~TypedObject ()
virtual void setValue (Object val)
virtual std::string type () const
virtual double getScalar () const
virtual void setScalar (double)
virtual std::string getString () const
virtual void setString (const std::string &)
virtual bool isContiguous () const
virtual bool hasItem (int index) const
virtual Object getArrayItem (int index) const
virtual void setArrayItem (int, Object)
virtual size_t size () const
virtual void reserveArray (size_t)
virtual void resizeArray (size_t)
virtual void removeArrayItem (int)
virtual void insertArrayItem (int, Object)
virtual bool getProperty (const std::string &, Object &) const
virtual bool isDictionary () const
virtual void setProperty (const std::string &, Object)
virtual bool removeProperty (const std::string &)
virtual bool hasProperty (const std::string &) const
virtual void clearProperties ()
virtual bool isIterable () const
virtual Object objectIterator () const
virtual bool isValid () const
virtual Object currentValue () const
virtual void next ()
virtual bool isKeyIterator () const
virtual Object keyObject () const
virtual std::string key () const
virtual bool isIntKeyIterator () const
virtual long intKey () const
virtual bool isNone () const
virtual bool operator== (const GenericObject &other) const
Public Member Functions inherited from carto::GenericObject
virtual ~GenericObject ()
const T & value () const
T & value ()
bool value (T &) const
void setValue (const T &val)
T * getInterface ()
const T * getInterface () const
virtual bool operator!= (const GenericObject &other) const
Public Member Functions inherited from carto::RCObject
 RCObject ()
 RCObject (const RCObject &)
RCObject & operator= (const RCObject &)
virtual ~RCObject ()
Public Member Functions inherited from carto::StringInterface
virtual ~StringInterface ()
virtual bool operator== (const StringInterface &other) const
virtual bool operator!= (const StringInterface &other) const
Public Member Functions inherited from carto::Interface
virtual ~Interface ()
Public Member Functions inherited from carto::ScalarInterface
virtual ~ScalarInterface ()
virtual bool operator== (const ScalarInterface &other) const
virtual bool operator!= (const ScalarInterface &other) const
Public Member Functions inherited from carto::DynArrayInterface
virtual ~DynArrayInterface ()
Public Member Functions inherited from carto::ArrayInterface
virtual ~ArrayInterface ()
Public Member Functions inherited from carto::SizeInterface
virtual ~SizeInterface ()
Public Member Functions inherited from carto::IterableInterface
virtual ~IterableInterface ()
virtual bool operator== (const IterableInterface &other) const
virtual bool operator!= (const IterableInterface &other) const
Public Member Functions inherited from carto::DictionaryInterface
virtual ~DictionaryInterface ()
Object getProperty (const std::string &) const
Object getProperty (Object key) const
bool getProperty (const std::string &key, T &value) const
void setProperty (const std::string &, const char *)
void setProperty (const std::string &, const T &)
virtual void copyProperties (Object source)
virtual bool operator== (const DictionaryInterface &other) const
virtual bool operator!= (const DictionaryInterface &other) const
void setProperty (const std::string &key, Object const &value)
bool getProperty (const std::string &key, Object &value) const
Public Member Functions inherited from carto::IteratorInterface
virtual ~IteratorInterface ()
Public Member Functions inherited from carto::KeyIteratorInterface
virtual ~KeyIteratorInterface ()
Public Member Functions inherited from carto::DictionaryIteratorInterface
virtual ~DictionaryIteratorInterface ()
Public Member Functions inherited from carto::IntKeyIteratorInterface
virtual ~IntKeyIteratorInterface ()
Public Member Functions inherited from carto::NoneInterface
virtual ~NoneInterface ()
Public Member Functions inherited from aims::Header
virtual ~Header ()=0
virtual std::string extension (const std::string &filename) const
 extension of given filename (including '.')
virtual std::string removeExtension (const std::string &) const

Additional Inherited Members

Public Types inherited from carto::RCObject
typedef int RefCounterType
Static Public Member Functions inherited from aims::PythonHeader
static carto::SyntaxSet * syntax ()
static bool writeMinf (const carto::Object &header, const std::string &filename)
static bool writeMinf (carto::Object &header, const std::string &filename)
static void copy (const carto::Object &src, carto::Object &dst, bool keepUuid=false)
static carto::Object cloneHeader (const carto::Object &src, bool keepUuid=false)
Protected Member Functions inherited from carto::GenericObject
virtual Interface * _getGenericInterface ()=0
virtual const void * _getAddressOfValue () const=0
Static Protected Member Functions inherited from carto::DefaultRefConstruction
static const T * release (const_ref< T > *)
Protected Attributes inherited from aims::SliceFormatHeader
std::string _name

Detailed Description

The descriptor class of the .dim GIS header.

The programmer can either read an existing header, or write a new one.

Definition at line 52 of file jpegheader.h.

Constructor & Destructor Documentation

◆ JpegHeader()

aims::JpegHeader::JpegHeader ( const std::string & name,
const std::string & type = "UNKNOWN",
int x = 1,
int y = 1,
int z = 1,
int t = 1,
float sx = 1,
float sy = 1,
float sz = 1,
float st = 1 )
inline

Definition at line 55 of file jpegheader.h.

References aims::SliceFormatHeader::SliceFormatHeader().

Referenced by aims::JpegReader< T >::read().

◆ ~JpegHeader()

virtual aims::JpegHeader::~JpegHeader ( )
inlinevirtual

Definition at line 62 of file jpegheader.h.

Member Function Documentation

◆ dataType()

std::string aims::JpegHeader::dataType ( ) const
inline

Get type of items ("U08", "S08", "U16", "S16", ...).

Definition at line 75 of file jpegheader.h.

◆ dimT()

int aims::JpegHeader::dimT ( ) const
inline

Definition at line 67 of file jpegheader.h.

Referenced by aims::JpegReader< T >::read().

◆ dimX()

int aims::JpegHeader::dimX ( ) const
inline

Definition at line 64 of file jpegheader.h.

Referenced by aims::JpegReader< T >::read().

◆ dimY()

int aims::JpegHeader::dimY ( ) const
inline

Definition at line 65 of file jpegheader.h.

Referenced by aims::JpegReader< T >::read().

◆ dimZ()

int aims::JpegHeader::dimZ ( ) const
inline

Definition at line 66 of file jpegheader.h.

Referenced by aims::JpegReader< T >::read().

◆ extension()

virtual std::string aims::JpegHeader::extension ( ) const
virtual

standard file format extension of specialized headers

Reimplemented from aims::Header.

Referenced by aims::JpegWriter< T >::write().

◆ extensions()

virtual std::set< std::string > aims::JpegHeader::extensions ( ) const
virtual

possible filename extensions for specialized formats

Reimplemented from aims::Header.

◆ possibleDataTypes()

std::vector< std::string > aims::JpegHeader::possibleDataTypes ( ) const

Get the file name of the header.

◆ read()

void aims::JpegHeader::read ( )

◆ setType()

void aims::JpegHeader::setType ( const std::string & t)

◆ sizeT()

float aims::JpegHeader::sizeT ( ) const
inline

Definition at line 72 of file jpegheader.h.

Referenced by aims::JpegReader< T >::read().

◆ sizeX()

float aims::JpegHeader::sizeX ( ) const
inline

Definition at line 69 of file jpegheader.h.

Referenced by aims::JpegReader< T >::read().

◆ sizeY()

float aims::JpegHeader::sizeY ( ) const
inline

Definition at line 70 of file jpegheader.h.

Referenced by aims::JpegReader< T >::read().

◆ sizeZ()

float aims::JpegHeader::sizeZ ( ) const
inline

Definition at line 71 of file jpegheader.h.

Referenced by aims::JpegReader< T >::read().


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