54 bool IsEnabled() {
return (GetValueLong(_enabledTag, 0) != 0 ?
true :
false); }
56 double GetMean()
const {
return GetValueDouble(_meanTag, 0.5); }
58 double GetSSQ()
const {
return GetValueDouble(_ssqTag, 0.1); }
60 double GetFreq()
const {
return GetValueDouble(_freqTag, 5.0); }
62 double GetPhase()
const {
return GetValueDouble(_phaseTag, 2 *
M_PI); }
95 int leftControlIndex(
float val)
const;
97 double normSSq(
double ssq);
98 double denormSSq(
double ssq);
100 double normSineFreq(
double freq);
101 double denormSineFreq(
double freq);
103 double normSinePhase(
double phase);
104 double denormSinePhase(
double phase);
106 const double _minSSq;
107 const double _maxSSq;
108 const double _minFreq;
109 const double _maxFreq;
110 const double _minPhase;
111 const double _maxPhase;
113 static const string _relMinTag;
114 static const string _relMaxTag;
115 static const string _enabledTag;
116 static const string _meanTag;
117 static const string _ssqTag;
118 static const string _freqTag;
119 static const string _phaseTag;
120 static const string _typeTag;
121 static const string _controlPointsTag;
122 static const string _interpTypeTag;
123 static const string _opacityMapIndexTag;
124 static const string _dataBoundsTag;
static string GetClassType()
void SetPhase(double phase)
void SetEnabled(bool enabled)
float controlPointOpacity(int index) const
void setMaxValue(double val)
void SetDataBounds(const vector< double > &bounds)
void deleteControlPoint(int index)
void SetMean(double mean)
bool inDataBounds(float value) const
void SetInterpType(TFInterpolator::type t)
float opacityData(float value) const
void moveControlPoint(int index, float dx, float dy)
vector< double > GetDataBounds() const
void controlPointValue(int index, float value)
void SetControlPoints(const vector< double > &opacityControlPoints)
void addNormControlPoint(float normv, float opacity)
float opacityDataAtNorm(float nv) const
void SetFreq(double freq)
vector< double > GetControlPoints() const
OpacityMap(ParamsBase::StateSave *ssave, XmlNode *node)
Create a OpacityMap object from an existing XmlNode tree.
void SetType(OpacityMap::Type type)
void controlPointValueNormalized(int index, float nv)
float controlPointValue(int index) const
void controlPointOpacity(int index, float opacity)
OpacityMap::Type GetType() const
TFInterpolator::type GetInterpType() const
float controlPointValueNormalized(int index) const
OpacityMap(ParamsBase::StateSave *ssave)
Create a OpacityMap object from scratch.
void setMinValue(double val)
void addControlPoint(float value, float opacity)
int numControlPoints() const
Nodes with state in Xml tree representation.