Loading...
Searching...
No Matches
colorByGridProcessor.h
Go to the documentation of this file.
#ifndef BALL_VIEW_MODELS_COLORBYGRIDPROCESSOR_H
#define BALL_VIEW_MODELS_COLORBYGRIDPROCESSOR_H
#include <BALL/DATATYPE/regularData3D.h>
#include <BALL/VIEW/MODELS/colorProcessor.h>
#include <BALL/VIEW/DATATYPE/colorMap.h>
namespace BALL
{
namespace VIEW
{
class GridColorWidget;
class BALL_VIEW_EXPORT ColorByGridProcessor : public ColorProcessor
{
public:
ColorByGridProcessor(const RegularData3D* grid, const GridColorWidget* widget = 0);
virtual bool start();
virtual bool finish();
virtual Processor::Result operator() (GeometricObject*& object);
void setNormalizationEnabled(bool enabled);
void setColors(const ColorRGBA& min_min, const ColorRGBA& min,
const ColorRGBA& mid, const ColorRGBA& max, const ColorRGBA& max_max);
void setBreakpoints(float min_value, float mid_value, float max_value);
void setNumLevels(int num_levels);
protected:
vector<float> values_;
list<GeometricObject*> objects_;
float min_value_;
float mid_value_;
float max_value_;
bool normalization_enabled_;
ColorRGBA min_min_color_;
ColorRGBA min_color_;
ColorRGBA mid_color_;
ColorRGBA max_color_;
ColorRGBA max_max_color_;
ColorMap cm_;
const RegularData3D* grid_;
int num_levels_;
};
}
}
#endif //BALL_VIEW_MODELS_COLORBYGRIDPROCESSOR_H
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::Processor::Result
int Result
Definition processor.h:36
BALL::VIEW::ColorByGridProcessor::num_levels_
int num_levels_
Definition colorByGridProcessor.h:51
BALL::VIEW::ColorByGridProcessor::finish
virtual bool finish()
BALL::VIEW::ColorByGridProcessor::max_color_
ColorRGBA max_color_
Definition colorByGridProcessor.h:46
BALL::VIEW::ColorByGridProcessor::min_color_
ColorRGBA min_color_
Definition colorByGridProcessor.h:44
BALL::VIEW::ColorByGridProcessor::min_min_color_
ColorRGBA min_min_color_
Definition colorByGridProcessor.h:43
BALL::VIEW::ColorByGridProcessor::objects_
list< GeometricObject * > objects_
Definition colorByGridProcessor.h:35
BALL::VIEW::ColorByGridProcessor::min_value_
float min_value_
Definition colorByGridProcessor.h:37
BALL::VIEW::ColorByGridProcessor::grid_
const RegularData3D * grid_
Definition colorByGridProcessor.h:50
BALL::VIEW::ColorByGridProcessor::mid_value_
float mid_value_
Definition colorByGridProcessor.h:38
BALL::VIEW::ColorByGridProcessor::max_max_color_
ColorRGBA max_max_color_
Definition colorByGridProcessor.h:47
BALL::VIEW::ColorByGridProcessor::setColors
void setColors(const ColorRGBA &min_min, const ColorRGBA &min, const ColorRGBA &mid, const ColorRGBA &max, const ColorRGBA &max_max)
BALL::VIEW::ColorByGridProcessor::max_value_
float max_value_
Definition colorByGridProcessor.h:39
BALL::VIEW::ColorByGridProcessor::start
virtual bool start()
BALL::VIEW::ColorByGridProcessor::mid_color_
ColorRGBA mid_color_
Definition colorByGridProcessor.h:45
BALL::VIEW::ColorByGridProcessor::setNumLevels
void setNumLevels(int num_levels)
BALL::VIEW::ColorByGridProcessor::setBreakpoints
void setBreakpoints(float min_value, float mid_value, float max_value)
BALL::VIEW::ColorByGridProcessor::ColorByGridProcessor
ColorByGridProcessor(const RegularData3D *grid, const GridColorWidget *widget=0)
BALL::VIEW::ColorByGridProcessor::normalization_enabled_
bool normalization_enabled_
Definition colorByGridProcessor.h:41
BALL::VIEW::ColorByGridProcessor::cm_
ColorMap cm_
Definition colorByGridProcessor.h:49
BALL::VIEW::ColorByGridProcessor::setNormalizationEnabled
void setNormalizationEnabled(bool enabled)
BALL::VIEW::ColorByGridProcessor::values_
vector< float > values_
Definition colorByGridProcessor.h:34
BALL::VIEW::ColorMap
Definition colorMap.h:30
BALL::VIEW::ColorProcessor::ColorProcessor
ColorProcessor()
Default Constructor.
BALL::VIEW::ColorRGBA
Definition colorRGBA.h:32
BALL::VIEW::GeometricObject
Definition geometricObject.h:37
BALL::VIEW::GridColorWidget
Definition gridColorWidget.h:11
colorMap.h
colorProcessor.h
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13
BALL::RegularData3D
TRegularData3D< float > RegularData3D
Definition regularData3D.h:515
regularData3D.h