17#include "momentum_export.h"
18#include "momentum_namespace.h"
26#include <agx/ref_ptr.h>
30#include <agxOSG/ScalarColorMap.h>
75#ifndef AGX_MOMENTUM_ANALYSIS_API
106#ifndef AGX_MOMENTUM_ANALYSIS_API
159 agx::ref_ptr<agxOSG::ScalarColorMap> m_scalarColorMap;
160 agxOSG::ScalarColorMap* getAGXScalarColorMap()
const;
Definition: ScalarColorMap.h:40
ColorRangePreset
Enum representation of predefined color ranges than can be set in the class.
Definition: ScalarColorMap.h:61
@ RAINBOW
Definition: ScalarColorMap.h:62
@ CIVIDIS
Definition: ScalarColorMap.h:69
@ BONE
Definition: ScalarColorMap.h:70
@ COOLWARM
Definition: ScalarColorMap.h:63
@ INFERNO
Definition: ScalarColorMap.h:65
@ VIRIDIS
Definition: ScalarColorMap.h:64
@ COPPER
Definition: ScalarColorMap.h:71
@ PLASMA
Definition: ScalarColorMap.h:66
@ BLUE_WHITE_RED
Definition: ScalarColorMap.h:68
@ GRAYSCALE
Definition: ScalarColorMap.h:67
std::vector< Vec4 > getColors() const
double getMinScalar() const
ScalarColorMap()
Default constructor.
void setColorsFromPreset(ColorRangePreset colorRangePreset)
Set a range of colors from an available color range preset in the class.
void setMaxScalar(double maxScalar)
Set the maximum scalar of the interval.
ScalarColorMap(double minScalar, double maxScalar)
Constructor.
void setScalarInterval(double minScalar, double maxScalar)
Set the scalars of the interval used in the color interpolation.
double getMaxScalar() const
Vec4 getColor(double scalar, bool modifyAlpha=false) const
Get an agx representation of a color value in the map given a scalar inside the interval.
void setColors(const std::vector< Vec4 > &colorVector)
void setMinScalar(double minScalar)
Set the min scalar of the interval.
A 4 dimensional vector and contains basic arithmetic.
Definition: Vec4.h:33
Namespace for Momentum Scripting API.
Definition: AffineMatrix4x4.h:29