hgl 0.5.42~jessie
A compiler/interpreter suite for developing images (plugin development)
Public Member Functions | List of all members
HGL::ControlSource::ParameterFactory Class Reference

Factory for creating parameters to hand over to the interpreter. More...

#include "parameterfactory.h"

Public Member Functions

void clearParamVector (const ControlSource::IControlSource::PARAMVECTOR &pv) const
 Clears the ControlSource::IControlSource::PARAMVECTOR. More...
 
Methods to create parameters
HGL::Type::StringParam * createStringParameter (const std::string &s) const
 Creates an StringParam instance. More...
 
HGL::Type::FloatParam * createNumericParameter (float f) const
 Creates an FloatParam instance. More...
 
HGL::Type::Vector2D * createNumericParameter (float x, float y) const
 Creates an Vector2D instance. More...
 
HGL::Type::FloatParam * createNumericParameter (int i) const
 Creates an FloatParam instance. More...
 
HGL::Type::ReferenceParam * createReferenceParameter (IType *project, const std::string &ref) const
 Creates an ReferenceParam instance. More...
 

Detailed Description

Factory for creating parameters to hand over to the interpreter.

Author
Heiko Schäfer heiko.nosp@m.@hgl.nosp@m..rang.nosp@m.un.d.nosp@m.e

Member Function Documentation

void HGL::ControlSource::ParameterFactory::clearParamVector ( const ControlSource::IControlSource::PARAMVECTOR &  pv) const

Clears the ControlSource::IControlSource::PARAMVECTOR.

Parameters
pva ControlSource::IControlSource::PARAMVECTOR
HGL::Type::FloatParam* HGL::ControlSource::ParameterFactory::createNumericParameter ( float  f) const

Creates an FloatParam instance.

Parameters
fthe float value, the FloatParam should represent
Returns
an FloatParam instance
HGL::Type::Vector2D* HGL::ControlSource::ParameterFactory::createNumericParameter ( float  x,
float  y 
) const

Creates an Vector2D instance.

Parameters
xthe x-value, the Vector2DParam should represent
ythe y-vale, the Vector2DParam should represent
Returns
an Vector2D instance
HGL::Type::FloatParam* HGL::ControlSource::ParameterFactory::createNumericParameter ( int  i) const

Creates an FloatParam instance.

Parameters
ithe integer value, the FloatParam should represent
Returns
an FloatParam instance
HGL::Type::ReferenceParam* HGL::ControlSource::ParameterFactory::createReferenceParameter ( IType *  project,
const std::string &  ref 
) const

Creates an ReferenceParam instance.

Parameters
projectTODO
refthe reference, the ReferenceParam should represent
Returns
an ReferenceParam instance
HGL::Type::StringParam* HGL::ControlSource::ParameterFactory::createStringParameter ( const std::string &  s) const

Creates an StringParam instance.

Parameters
sthe string, the StringParam should represent
Returns
an StringParam instance