brainrat-private  5.1.2
dpyheader.h
Go to the documentation of this file.
1 /* Copyright (C) 2000-2013 CEA
2  *
3  * This software and supporting documentation were developed by
4  * bioPICSEL
5  * CEA/DSV/I²BM/MIRCen/LMN, Batiment 61,
6  * 18, route du Panorama
7  * 92265 Fontenay-aux-Roses
8  * France
9  */
10 
11 #ifndef BRAINRAT_PLUGINS_BIODPY_LIB_IO_DPYHEADER_H
12 #define BRAINRAT_PLUGINS_BIODPY_LIB_IO_DPYHEADER_H
13 
14 #include <string>
15 #include <vector>
16 #include <aims/data/sliceformatheader.h>
17 
18 using namespace std;
19 using namespace aims;
20 
21 namespace bio
22 {
23 
27  class DpyHeader : public SliceFormatHeader
28  {
29  public:
30  DpyHeader( const string& name="", const string& type="PYTHON",
31  int x=1, int y=1, int z=1, int t=1,
32  float sx=1, float sy=1, float sz=1, float st=1 ) :
33  SliceFormatHeader( name, x, y, z, t, sx, sy, sz ,st ),
34  _type(type), _dimX(x), _dimY(y),
35  _dimZ(z), _dimT(t), _sizeX(sx), _sizeY(sy), _sizeZ(sz), _sizeT(st)
36  { }
37  virtual ~DpyHeader() { }
38 
39  int dimX() const { return _dimX; }
40  int dimY() const { return _dimY; }
41  int dimZ() const { return _dimZ; }
42  int dimT() const { return _dimT; }
43 
44  float sizeX() const { return _sizeX; }
45  float sizeY() const { return _sizeY; }
46  float sizeZ() const { return _sizeZ; }
47  float sizeT() const { return _sizeT; }
48 
50  string dataType() const { return _type; }
51  void setType( const string & t );
53  string name() { return _name; }
54  void setName( string name ) { _name = name; }
55  vector<string> possibleDataTypes() const;
56 
57  virtual string extension() const { return( ".dpy" ); }
58  virtual set<string> extensions() const;
59 
60  void read();
61 
62  private:
63  string _type;
64  int _dimX;
65  int _dimY;
66  int _dimZ;
67  int _dimT;
68  float _sizeX;
69  float _sizeY;
70  float _sizeZ;
71  float _sizeT;
72  };
73 
74 }
75 
76 namespace carto {
77  DECLARE_GENERIC_OBJECT_TYPE( bio::DpyHeader )
78 }
79 
80 #endif
81 
The descriptor class of the header.
Definition: dpyheader.h:28
int dimT() const
Definition: dpyheader.h:42
float sizeT() const
Definition: dpyheader.h:47
string dataType() const
Get type of items ("Dictionary")
Definition: dpyheader.h:50
float sizeZ() const
Definition: dpyheader.h:46
virtual string extension() const
Definition: dpyheader.h:57
int dimZ() const
Definition: dpyheader.h:41
void setName(string name)
Definition: dpyheader.h:54
DpyHeader(const string &name="", const string &type="PYTHON", int x=1, int y=1, int z=1, int t=1, float sx=1, float sy=1, float sz=1, float st=1)
Definition: dpyheader.h:30
vector< string > possibleDataTypes() const
string name()
Get the file name of the header.
Definition: dpyheader.h:53
void setType(const string &t)
virtual set< string > extensions() const
float sizeY() const
Definition: dpyheader.h:45
float sizeX() const
Definition: dpyheader.h:44
virtual ~DpyHeader()
Definition: dpyheader.h:37
int dimX() const
Definition: dpyheader.h:39
int dimY() const
Definition: dpyheader.h:40
ImageProcessors<AimsRGB, double> p(data, mask, "rgbm", options, ImageProcessorMode::Init); ImageProce...
Definition: classes.h:25