brainrat-private  5.0.5
dpydata.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_DATA_DPYDATA_H
12 #define BRAINRAT_PLUGINS_BIODPY_LIB_DATA_DPYDATA_H
13 
14 #include <cartobase/object/object.h>
15 #include <brainrat/io/dpyheader.h>
16 
17 using namespace carto;
18 
19 namespace bio
20 {
21 
24  class DpyData
25  {
26  public:
27  DpyData( int dimX = 1, int dimY = 1, int dimZ = 1, int dimT = 1, string syntax = "__generic__" );
28  virtual ~DpyData(){}
29 
30  void setHeader( DpyHeader & header ) { _header = header; }
31  DpyHeader header() const { return _header; }
32 
33  void setContent( Object & content ) { _content = content; }
34  Object & content() { return _content; }
35  const Object & content() const { return _content; }
36 
37  int dimX() const;
38  int dimY() const;
39  int dimZ() const;
40  int dimT() const;
41  int dim( uint index ) const;
42  void setDim( uint index, int dim );
43 
44  float sizeX() const;
45  float sizeY() const;
46  float sizeZ() const;
47  float sizeT() const;
48  float size( uint index ) const;
49  void setSizeX( float size );
50  void setSizeY( float size );
51  void setSizeZ( float size );
52  void setSizeT( float size );
53  void setSize( uint index, float size );
54 
55  private:
56  Object _content;
57  DpyHeader _header;
58 
59  };
60 
61 }
62 
63 namespace carto {
64  DECLARE_GENERIC_OBJECT_TYPE( bio::DpyData )
65 }
66 
67 #endif
68 
Object & content()
Definition: dpydata.h:34
void setContent(Object &content)
Definition: dpydata.h:33
virtual ~DpyData()
Definition: dpydata.h:28
ImageProcessors<AimsRGB, double> p(data, mask, "rgbm", options, ImageProcessorMode::Init); ImageProce...
Definition: classes.h:25
The data class of the dpy format.
Definition: dpydata.h:24
const Object & content() const
Definition: dpydata.h:35
DpyHeader header() const
Definition: dpydata.h:31
void setHeader(DpyHeader &header)
Definition: dpydata.h:30
The descriptor class of the header.
Definition: dpyheader.h:27