ODIN
miview_rois.h
1 /***************************************************************************
2  miview_rois.h - description
3  -------------------
4  begin : Mon Feb 15 10:00:00 CEST 2021
5  copyright : (C) 2000-2021 by Thies H. Jochimsen
6  email : thies@jochimsen.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef MIVIEW_ROIS_H
19 #define MIVIEW_ROIS_H
20 
21 #include <odinpara/ldrtypes.h>
22 #include <odinpara/ldrblock.h>
23 
24 // forward declarations
25 class Protocol;
26 
28 
29 class MiViewRois : public LDRblock {
30 
31  public:
32  MiViewRois();
33  ~MiViewRois();
34 
35  bool init(int nx, int ny, int nz);
36 
37  bool is_valid() const {return valid;}
38 
39  const farray& get_overlay_map(int current_z=-1) const;
40  bool write_overlay_map(const STD_string& filename, const Protocol& prot);
41 
42  void new_slice(const float *data, int slice);
43 
44  void update();
45 
46  private:
47  LDRbool roismode;
48  LDRaction clearall;
49  LDRaction clearslice;
50 
51  mutable farray overlay_map;
52  bool valid;
53 
54 };
55 
56 
57 
58 #endif
59 
60 
Protocol proxy.
Definition: protocol.h:33