BALL 1.5.0
colorByGridProcessor.h
Go to the documentation of this file.
1#ifndef BALL_VIEW_MODELS_COLORBYGRIDPROCESSOR_H
2#define BALL_VIEW_MODELS_COLORBYGRIDPROCESSOR_H
3
5
8
9namespace BALL
10{
11 namespace VIEW
12 {
13 class GridColorWidget;
14
16 {
17 public:
18 ColorByGridProcessor(const RegularData3D* grid, const GridColorWidget* widget = 0);
19
20 virtual bool start();
21 virtual bool finish();
22 virtual Processor::Result operator() (GeometricObject*& object);
23
24 void setNormalizationEnabled(bool enabled);
25
26 void setColors(const ColorRGBA& min_min, const ColorRGBA& min,
27 const ColorRGBA& mid, const ColorRGBA& max, const ColorRGBA& max_max);
28
29 void setBreakpoints(float min_value, float mid_value, float max_value);
30
31 void setNumLevels(int num_levels);
32
33 protected:
34 vector<float> values_;
35 list<GeometricObject*> objects_;
36
40
42
48
52 };
53 }
54}
55
56#endif //BALL_VIEW_MODELS_COLORBYGRIDPROCESSOR_H
Definition: constants.h:13
T max(const T &a, const T &b)
Definition: MATHS/common.h:75
T min(const T &a, const T &b)
Definition: MATHS/common.h:102
list< GeometricObject * > objects_
void setColors(const ColorRGBA &min_min, const ColorRGBA &min, const ColorRGBA &mid, const ColorRGBA &max, const ColorRGBA &max_max)
void setNumLevels(int num_levels)
void setBreakpoints(float min_value, float mid_value, float max_value)
ColorByGridProcessor(const RegularData3D *grid, const GridColorWidget *widget=0)
void setNormalizationEnabled(bool enabled)
#define BALL_VIEW_EXPORT
Definition: COMMON/global.h:52