ODIN
filter_edit.h
1 /***************************************************************************
2  filter_edit.h - description
3  -------------------
4  begin : Thu Jan 30 2014
5  copyright : (C) 2000-2021 by Thies 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 FILTER_EDIT_H
19 #define FILTER_EDIT_H
20 
21 #include <odindata/filter_step.h>
22 #include <odindata/filter_range.h> // for str2range
23 
24 class FilterEdit : public FilterStep {
25 
26  LDRstring pos;
27  LDRfloat val;
28 
29 
30  STD_string label() const {return "edit";}
31  STD_string description() const {return "Edit voxel values with range specifed as "+str2range_usage();}
32  bool process(Data<float,4>& data, Protocol& prot) const;
33  FilterStep* allocate() const {return new FilterEdit();}
34  void init();
35 };
36 
37 #endif
virtual bool process(Data< float, 4 > &data, Protocol &prot) const
Protocol proxy.
Definition: protocol.h:33
virtual FilterStep * allocate() const=0
virtual STD_string description() const=0
virtual void init()=0
virtual STD_string label() const=0