80 virtual bool IsEnabled()
const {
return ((
bool)GetValueLong(_EnabledTag, (
int)
false)); }
122 vector<string> names = GetAuxVariableNames();
123 for (
int i = 0; i < names.size(); i++) {
124 if (GetVariableName() == names[i])
return true;
329 GetConstantColor(rgb);
330 vector<float> v = {rgb[0], rgb[1], rgb[2]};
460 void _calculateStride(
string varName);
466 bool _classInitialized;
467 std::vector<CoordType> _slicePlaneQuad;
469 static const string _EnabledTag;
470 static const string _histoScaleTag;
471 static const string _editBoundsTag;
472 static const string _histoBoundsTag;
473 static const string _cursorCoordsTag;
474 static const string _terrainMapTag;
475 static const string _auxVariableNamesTag;
476 static const string _distribVariableNamesTag;
477 static const string _transferFunctionsTag;
478 static const string _stretchFactorsTag;
479 static const string _currentTimestepTag;
481 string _findVarStartingWithLetter(std::vector<string> searchVars,
char letter);
482 string _findVarEndingWithLetter(std::vector<string> searchVars,
char letter);
620 _factoryFunctionRegistry[name] = classFactoryFunction;
632 RenParamsFactory &operator=(
const RenParamsFactory &) {
return *
this; }
656 return new T(dataMgr, ssave, node);
658 return new T(dataMgr, ssave);
715 size_t Size()
const {
return (_elements.size()); }
721 string const GetName()
const {
return (_separator->GetName()); }
727 map<string, RenderParams *> _elements;
3D or 2D box with options for orientation angles .
Settings for color bar displayed in scene Intended to be used in any Params class.
A cache based data reader.
Parent class for TransferFunction and IsoControl, supports positioning histogram over color/opacity m...
Nodes with state in Xml tree representation.
RenderParams * Create(string classType, string name)
ParamsSeparator * GetSeparator() const
RenderParams * GetParams(string name) const
RenderParams * Insert(const RenderParams *rp, string name)
vector< string > GetNames() const
RenParamsContainer(DataMgr *dataMgr, ParamsBase::StateSave *ssave, const string &myname)
RenParamsContainer(DataMgr *dataMgr, ParamsBase::StateSave *ssave, XmlNode *node)
RenParamsContainer & operator=(const RenParamsContainer &rhs)
RenParamsContainer(const RenParamsContainer &rhs)
Copy constructor.
string const GetName() const
XmlNode * GetNode() const
vector< string > GetFactoryNames() const
static RenParamsFactory * Instance()
RenderParams * CreateInstance(string classType, DataMgr *, ParamsBase::StateSave *, XmlNode *))
void RegisterFactoryFunction(string name, function< RenderParams *(DataMgr *, ParamsBase::StateSave *, XmlNode *)> classFactoryFunction)
RenParamsRegistrar(string classType)
A Params subclass for managing parameters used by Renderers.
static const string _useSingleColorTag
void SetConstantOpacity(float o)
bool UseAuxVariable() const
std::vector< CoordType > GetSlicePlaneQuad() const
static const string LightingEnabledTag
vector< double > GetSlicePlaneRotation() const
string GetVariableName() const
std::string GetZFieldVariableName() const
static const string _xFieldVariableNameTag
std::string GetYFieldVariableName() const
static const string _heightVariableNameTag
static const string YSlicePlaneOriginTag
void SetIsoValues(const vector< double > &values)
RenderParams(DataMgr *dataMgr, ParamsBase::StateSave *ssave, const string &classname, int maxdim=3)
static const string _CompressionLevelTag
virtual bool GetUseSingleColorDefault() const
vector< float > GetConstantColor() const
static const string _constantOpacityTag
static const string _RefinementLevelTag
void SetZSlicePlaneOrigin(double zOrigin)
bool UseSingleColor() const
string GetFirstVariableName() const
void SetConstantColor(const float rgb[3])
static const string SlicePlaneNormalXTag
virtual void SetColorbarPbase(ColorbarPbase *pb)
void SetXFieldVariableName(std::string varName)
virtual void SetColorMapVariableName(string varname)
virtual void SetCompressionLevel(int val)
RenderParams & operator=(const RenderParams &rhs)
RenderParams(DataMgr *dataMgr, ParamsBase::StateSave *ssave, XmlNode *node, int maxdim=3)
virtual void SetVariableName(string varName)
static const string UserNameTag
virtual int GetRefinementLevel() const
void initializeBypassFlags()
size_t GetCurrentTimestep() const
virtual void SetDefaultVariables(int dim, bool secondaryColormapVariable)
virtual vector< double > GetIsoValues(const string &variable)
void SetConstantColor(vector< float > rgb)
virtual MapperFunction * GetMapperFunc(string varname)
virtual bool IsEnabled() const
virtual string GetHeightVariableName() const
static const string _colorMapVariableNameTag
virtual void SetRefinementLevel(int numrefinements)
virtual bool HasIsoValues() const
This should be overriden by params for renderes that support iso values to return true.
double GetYSlicePlaneOrigin() const
static const string YSlicePlaneRotationTag
virtual void SetEnabled(bool val)
static const string XSlicePlaneRotationTag
vector< double > GetSlicePlaneNormal() const
void SetSlicePlaneQuad(const std::vector< CoordType > &quad)
virtual void SetIsoValues(const string &variable, const vector< double > &values)
void GetCursorCoords(float coords[2]) const
static const string CustomHistogramDataTag
vector< double > GetIsoValues()
static const string SlicePlaneOrientationModeTag
void SetUseSingleColor(bool val)
virtual Transform * GetTransform() const
Access the transform used by the renderer.
void GetConstantColor(float rgb[3]) const
virtual int GetCompressionLevel() const
vector< string > GetAuxVariableNames() const
virtual void SetHeightVariableName(string varname)
static const string _yFieldVariableNameTag
virtual void RemoveMapperFunc(string varname)
Remove the mapper function for the named variable.
bool InitBoxFromVariable(size_t ts, string varName)
std::string GetXFieldVariableName() const
static const string _zFieldVariableNameTag
virtual void SetMapperFunc(string varname, MapperFunction *tf)
float GetHistoStretch() const
void SetYFieldVariableName(std::string varName)
float GetConstantOpacity() const
static const string SlicePlaneNormalYTag
static const string ZSlicePlaneRotationTag
virtual void SetAuxVariableNames(vector< string > varName)
void SetYSlicePlaneOrigin(double yOrigin)
static const string _variableNameTag
static const string SampleRateTag
int ResetUserExtentsToDataExents(string var="")
static const string SliceOffsetTag
vector< string > GetDistribVariableNames() const
static const string XSlicePlaneOriginTag
void SetXSlicePlaneOrigin(double xOrigin)
void SetHistoStretch(float factor)
virtual Box * GetBox() const
void SetZFieldVariableName(std::string varName)
double GetXSlicePlaneOrigin() const
virtual bool GetOrientable() const
Return whether a renderer can be oriented - IE, can this renderer be rotated about an origin point?
static const string SlicePlaneNormalZTag
static const string CustomHistogramRangeTag
vector< string > GetFieldVariableNames() const
virtual string GetColorMapVariableName() const
static const string ZSlicePlaneOriginTag
double GetZSlicePlaneOrigin() const
virtual size_t GetRenderDim() const =0
virtual string GetActualColorMapVariableName() const =0
void SetCursorCoords(const float coords[2])
void SetCurrentTimestep(size_t ts)
vector< double > GetSlicePlaneOrigin() const
virtual ColorbarPbase * GetColorbarPbase() const
Obtain ColorbarPBase (used to specify Color Bar properties) from RenderParams.
RenderParams(const RenderParams &rhs)
SlicePlaneOrientationMode
virtual void SetFieldVariableNames(vector< string > varNames)
static const string _constantColorTag
virtual XmlNode * GetNode(std::vector< string > path, bool absolute) const