CtBuffer.h 806 Bytes
Newer Older
papillon's avatar
 
papillon committed
1
2
3
4
#ifndef CTBUFFER_H
#define CTBUFFER_H

#include "Constants.h"
papillon's avatar
   
papillon committed
5
#include "CtAcquisition.h"
papillon's avatar
   
papillon committed
6
7
#include "HwInterface.h"
#include "HwCap.h"
papillon's avatar
 
papillon committed
8
9
10
11
12
13
14

namespace lima {

class CtBuffer {

    public:
	struct Parameters {
papillon's avatar
   
papillon committed
15
16
17
		Parameters();
		void reset();
		BufferMode mode;
papillon's avatar
 
papillon committed
18
19
20
21
		long	nbBuffers;
		short	maxMemory;
	};

papillon's avatar
   
papillon committed
22
	CtBuffer(HwInterface *hw);
papillon's avatar
 
papillon committed
23
24
	~CtBuffer();

papillon's avatar
   
papillon committed
25
26
27
	void setPars(Parameters pars);
	void getPars(Parameters& pars) const;

papillon's avatar
 
papillon committed
28
29
30
31
32
33
34
35
36
	void setMode(BufferMode mode);
	void getMode(BufferMode& mode) const;

	void setNumber(long nb_buffers);
	void getNumber(long& nb_buffers) const;

	void setMaxMemory(short max_memory);
	void getMaxMemory(short& max_memory) const;

papillon's avatar
   
papillon committed
37
	void setup(CtAcquisition *ct_acq, FrameDim& fdim);
papillon's avatar
   
papillon committed
38

papillon's avatar
 
papillon committed
39
    private:
papillon's avatar
   
papillon committed
40
41
	HwBufferCtrlObj	*m_hw_buffer;
	Parameters	m_pars;
papillon's avatar
 
papillon committed
42

seb's avatar
seb committed
43
};
papillon's avatar
 
papillon committed
44
45
46
} // namespace lima

#endif // CTBUFFER_H