11 enum class Type { Any, DVR, Iso };
49 using RenderParams::GetIsoValues;
50 using RenderParams::SetIsoValues;
52 void SetIsoValues(
const string &variable,
const vector<double> &values)
override;
101 if (GetAlgorithm() == OSPVolmeAlgorithmName)
102 return GetVariableName();
103 else if (GetValueLong(UseColormapVariableTag, 0))
104 return GetColorMapVariableName();
106 return GetVariableName();
115 struct AlgorithmEntry {
116 const std::string name;
118 bool operator==(
const VolumeParams::AlgorithmEntry &b) {
return std::tie(name, type) == std::tie(b.name, b.type); }
120 static std::vector<AlgorithmEntry> _algorithms;
122 static const std::string _algorithmWasManuallySetByUserTag;
123 static const std::string _isoValuesTag;
124 static const std::string _enabledIsoValuesTag;
A cache based data reader.
A Params subclass for managing parameters used by Renderers.
float GetPhongAmbient() const
long GetSamplingMultiplier() const
static string GetClassType()
void SetAlgorithm(std::string algorithm)
vector< double > GetIsoValues(const string &variable) override
static const std::string OSPVolmeAlgorithmName
void SetPhongShininess(float v)
virtual double GetDefaultPhongShininess() const
void SetSamplingMultiplier(long d)
static const std::string PhongSpecularTag
void SetPhongSpecular(float v)
void SetIsoValues(const string &variable, const vector< double > &values) override
virtual string GetDefaultAlgorithmName() const
virtual double GetDefaultPhongSpecular() const
float GetPhongDiffuse() const
bool GetAlgorithmWasManuallySetByUser() const
void SetPhongAmbient(float v)
virtual double GetDefaultPhongDiffuse() const
std::string GetAlgorithm() const
static const std::string UseColormapVariableTag
If this is enabled, the volume opacity will be controlled by the main variable while the colormapping...
static const std::vector< std::string > GetAlgorithmNames(Type type=Type::Any)
VolumeParams(DataMgr *dataMgr, ParamsBase::StateSave *ssave, XmlNode *node)
virtual size_t GetRenderDim() const override
static const std::string PhongAmbientTag
static void Register(const std::string &name, Type type=Type::Any)
virtual bool GetDefaultLightingEnabled() const
VolumeParams(DataMgr *dataMgr, ParamsBase::StateSave *ssave, std::string classType)
static const std::string SamplingRateMultiplierTag
VolumeParams(DataMgr *dataMgr, ParamsBase::StateSave *ssave)
static const std::string OSPDensity
virtual string GetActualColorMapVariableName() const override
static const std::string LightingEnabledTag
static const std::string OSPAmbientLightIntensity
void SetLightingEnabled(bool v)
void SetAlgorithmWasManuallySetByUser(bool v)
static const std::string _algorithmTag
static const std::string OSPSampleRateScalar
static std::vector< float > GetSamplingRateMultiples()
float GetPhongShininess() const
virtual double GetDefaultPhongAmbient() const
float GetPhongSpecular() const
static const std::string VolumeDensityTag
void SetAlgorithmByUser(std::string algorithm)
bool GetLightingEnabled() const
void SetPhongDiffuse(float v)
static const std::string PhongDiffuseTag
static const std::string OSPDirectionalLightIntensity
static const std::string PhongShininessTag