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 
9 namespace 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 
37  float min_value_;
38  float mid_value_;
39  float max_value_;
40 
42 
48 
52  };
53  }
54 }
55 
56 #endif //BALL_VIEW_MODELS_COLORBYGRIDPROCESSOR_H
T max(const T &a, const T &b)
Definition: MATHS/common.h:75
#define BALL_VIEW_EXPORT
Definition: COMMON/global.h:52
T min(const T &a, const T &b)
Definition: MATHS/common.h:102
Definition: constants.h:12
list< GeometricObject * > objects_