TuttleOFX
1
|
Describes a set of properties. More...
#include <ofxsParam.h>
Public Member Functions | |
OfxParamSetHandle | getOfxParamSetHandle () |
virtual | ~ParamSetDescriptor () |
dtor | |
ParamDescriptor * | getParamDescriptor (const std::string &name) const |
tries to fetch a ParamDescriptor, returns 0 if it isn't there | |
void | setPageParamOrder (PageParamDescriptor &p) |
estabilishes the order of page params. Do it by calling it in turn for each page | |
IntParamDescriptor * | defineIntParam (const std::string &name) |
Define an integer param. | |
Int2DParamDescriptor * | defineInt2DParam (const std::string &name) |
Define a 2D integer param. | |
Int3DParamDescriptor * | defineInt3DParam (const std::string &name) |
Define a 3D integer param. | |
DoubleParamDescriptor * | defineDoubleParam (const std::string &name) |
Define an double param. | |
Double2DParamDescriptor * | defineDouble2DParam (const std::string &name) |
Define a 2D double param. | |
Double3DParamDescriptor * | defineDouble3DParam (const std::string &name) |
Define a 3D double param. | |
StringParamDescriptor * | defineStringParam (const std::string &name) |
Define a string param. | |
RGBAParamDescriptor * | defineRGBAParam (const std::string &name) |
Define a RGBA param. | |
RGBParamDescriptor * | defineRGBParam (const std::string &name) |
Define an RGB param. | |
BooleanParamDescriptor * | defineBooleanParam (const std::string &name) |
Define a Boolean param. | |
ChoiceParamDescriptor * | defineChoiceParam (const std::string &name) |
Define a Choice param. | |
GroupParamDescriptor * | defineGroupParam (const std::string &name) |
Define a group param. | |
PageParamDescriptor * | definePageParam (const std::string &name) |
Define a Page param. | |
PushButtonParamDescriptor * | definePushButtonParam (const std::string &name) |
Define a push button param. | |
ParametricParamDescriptor * | defineParametricParam (const std::string &name) |
Define a parametric param. | |
CustomParamDescriptor * | defineCustomParam (const std::string &name) |
Define a custom param. | |
Protected Member Functions | |
mDeclareProtectedAssignAndCC (ParamSetDescriptor) | |
void | defineRawParam (const std::string &name, ParamTypeEnum paramType, OfxPropertySetHandle &props) |
calls the raw OFX routine to define a param | |
template<class T > | |
bool | defineParamDescriptor (const std::string &name, ParamTypeEnum paramType, T *¶mPtr) |
Define a param descriptor of the given type. | |
ParamSetDescriptor (void) | |
Hidden ctor. | |
ParamDescriptor * | findPreviouslyDefinedParam (const std::string &name) |
find a param in the map | |
void | setOfxParamSetHandle (OfxParamSetHandle h) |
set the param set handle | |
Protected Attributes | |
PropertySet | _paramSetProps |
Properties that belong to this param set. | |
OfxParamSetHandle | _paramSetHandle |
Parameter set handle. | |
std::map< std::string, ParamDescriptor * > | _definedParams |
Set of all previously defined parameters, defined on demand. |
Describes a set of properties.
Definition at line 741 of file ofxsParam.h.
OFX::ParamSetDescriptor::ParamSetDescriptor | ( | void | ) | [protected] |
OFX::ParamSetDescriptor::~ParamSetDescriptor | ( | ) | [virtual] |
BooleanParamDescriptor * OFX::ParamSetDescriptor::defineBooleanParam | ( | const std::string & | name | ) |
Define a Boolean param.
Definition at line 964 of file ofxsParams.cpp.
References defineParamDescriptor(), and OFX::eBooleanParam.
Referenced by tuttle::plugin::av::addOptionsFromAVOption(), tuttle::plugin::describeGeneratorParamsInContext(), and tuttle::plugin::describeWriterParamsInContext().
ChoiceParamDescriptor * OFX::ParamSetDescriptor::defineChoiceParam | ( | const std::string & | name | ) |
Define a Choice param.
Definition at line 973 of file ofxsParams.cpp.
References defineParamDescriptor(), and OFX::eChoiceParam.
Referenced by tuttle::plugin::av::addOptionsFromAVOption(), tuttle::plugin::describeGeneratorParamsInContext(), tuttle::plugin::describeReaderParamsInContext(), tuttle::plugin::describeSamplerParamsInContext(), and tuttle::plugin::describeWriterParamsInContext().
CustomParamDescriptor * OFX::ParamSetDescriptor::defineCustomParam | ( | const std::string & | name | ) |
Define a custom param.
Definition at line 1022 of file ofxsParams.cpp.
References defineParamDescriptor(), and OFX::eCustomParam.
Double2DParamDescriptor * OFX::ParamSetDescriptor::defineDouble2DParam | ( | const std::string & | name | ) |
Define a 2D double param.
Definition at line 919 of file ofxsParams.cpp.
References defineParamDescriptor(), and OFX::eDouble2DParam.
Double3DParamDescriptor * OFX::ParamSetDescriptor::defineDouble3DParam | ( | const std::string & | name | ) |
Define a 3D double param.
Definition at line 928 of file ofxsParams.cpp.
References defineParamDescriptor(), and OFX::eDouble3DParam.
DoubleParamDescriptor * OFX::ParamSetDescriptor::defineDoubleParam | ( | const std::string & | name | ) |
Define an double param.
Define an double param, only callable from describe in context.
Definition at line 910 of file ofxsParams.cpp.
References defineParamDescriptor(), and OFX::eDoubleParam.
Referenced by tuttle::plugin::av::addOptionsFromAVOption(), tuttle::plugin::describeGeneratorParamsInContext(), and tuttle::plugin::describeSamplerParamsInContext().
GroupParamDescriptor * OFX::ParamSetDescriptor::defineGroupParam | ( | const std::string & | name | ) |
Define a group param.
Definition at line 982 of file ofxsParams.cpp.
References defineParamDescriptor(), and OFX::eGroupParam.
Referenced by tuttle::plugin::av::addOptionsFromAVOption().
Int2DParamDescriptor * OFX::ParamSetDescriptor::defineInt2DParam | ( | const std::string & | name | ) |
Define a 2D integer param.
Definition at line 892 of file ofxsParams.cpp.
References defineParamDescriptor(), and OFX::eInt2DParam.
Referenced by tuttle::plugin::av::addOptionsFromAVOption(), and tuttle::plugin::describeGeneratorParamsInContext().
Int3DParamDescriptor * OFX::ParamSetDescriptor::defineInt3DParam | ( | const std::string & | name | ) |
Define a 3D integer param.
Definition at line 901 of file ofxsParams.cpp.
References defineParamDescriptor(), and OFX::eInt3DParam.
IntParamDescriptor * OFX::ParamSetDescriptor::defineIntParam | ( | const std::string & | name | ) |
Define an integer param.
Define an integer param, only callable from describe in context.
Definition at line 883 of file ofxsParams.cpp.
References defineParamDescriptor(), and OFX::eIntParam.
Referenced by tuttle::plugin::av::addOptionsFromAVOption(), tuttle::plugin::describeGeneratorParamsInContext(), tuttle::plugin::describeSamplerParamsInContext(), and tuttle::plugin::describeWriterParamsInContext().
PageParamDescriptor * OFX::ParamSetDescriptor::definePageParam | ( | const std::string & | name | ) |
Define a Page param.
Definition at line 991 of file ofxsParams.cpp.
References defineParamDescriptor(), and OFX::ePageParam.
bool OFX::ParamSetDescriptor::defineParamDescriptor | ( | const std::string & | name, |
ParamTypeEnum | paramType, | ||
T *& | paramPtr | ||
) | [inline, protected] |
Define a param descriptor of the given type.
Definition at line 751 of file ofxsParam.h.
References _definedParams, defineRawParam(), findPreviouslyDefinedParam(), kOfxStatErrExists, and OFXS_COUT_WARNING.
Referenced by defineBooleanParam(), defineChoiceParam(), defineCustomParam(), defineDouble2DParam(), defineDouble3DParam(), defineDoubleParam(), defineGroupParam(), defineInt2DParam(), defineInt3DParam(), defineIntParam(), definePageParam(), defineParametricParam(), definePushButtonParam(), defineRGBAParam(), defineRGBParam(), and defineStringParam().
ParametricParamDescriptor * OFX::ParamSetDescriptor::defineParametricParam | ( | const std::string & | name | ) |
Define a parametric param.
<
Definition at line 1009 of file ofxsParams.cpp.
References defineParamDescriptor(), OFX::eParametricParam, and OFX::ParametricParamDescriptor::setParamSet().
PushButtonParamDescriptor * OFX::ParamSetDescriptor::definePushButtonParam | ( | const std::string & | name | ) |
Define a push button param.
Definition at line 1000 of file ofxsParams.cpp.
References defineParamDescriptor(), and OFX::ePushButtonParam.
Referenced by tuttle::plugin::describeWriterParamsInContext().
void OFX::ParamSetDescriptor::defineRawParam | ( | const std::string & | name, |
ParamTypeEnum | paramType, | ||
OfxPropertySetHandle & | props | ||
) | [protected] |
calls the raw OFX routine to define a param
Definition at line 864 of file ofxsParams.cpp.
References _paramSetHandle, OFX::Private::gParamSuite, OFX::mapParamTypeEnumToString(), OfxParameterSuiteV1::paramDefine, and OFX::throwSuiteStatusException().
Referenced by defineParamDescriptor().
RGBAParamDescriptor * OFX::ParamSetDescriptor::defineRGBAParam | ( | const std::string & | name | ) |
Define a RGBA param.
Definition at line 946 of file ofxsParams.cpp.
References defineParamDescriptor(), and OFX::eRGBAParam.
RGBParamDescriptor * OFX::ParamSetDescriptor::defineRGBParam | ( | const std::string & | name | ) |
Define an RGB param.
Definition at line 955 of file ofxsParams.cpp.
References defineParamDescriptor(), and OFX::eRGBParam.
StringParamDescriptor * OFX::ParamSetDescriptor::defineStringParam | ( | const std::string & | name | ) |
Define a string param.
Definition at line 937 of file ofxsParams.cpp.
References defineParamDescriptor(), and OFX::eStringParam.
Referenced by tuttle::plugin::av::addOptionsFromAVOption(), tuttle::plugin::describeReaderParamsInContext(), and tuttle::plugin::describeWriterParamsInContext().
ParamDescriptor * OFX::ParamSetDescriptor::findPreviouslyDefinedParam | ( | const std::string & | name | ) | [protected] |
find a param in the map
if a param has been defined in this set, go find it
Definition at line 872 of file ofxsParams.cpp.
References _definedParams.
Referenced by defineParamDescriptor().
OfxParamSetHandle OFX::ParamSetDescriptor::getOfxParamSetHandle | ( | ) | [inline] |
Definition at line 807 of file ofxsParam.h.
References _paramSetHandle.
Referenced by OFX::ParametricParamDescriptor::setParamSet().
ParamDescriptor * OFX::ParamSetDescriptor::getParamDescriptor | ( | const std::string & | name | ) | const |
tries to fetch a ParamDescriptor, returns 0 if it isn't there
Definition at line 812 of file ofxsParams.cpp.
References _definedParams.
OFX::ParamSetDescriptor::mDeclareProtectedAssignAndCC | ( | ParamSetDescriptor | ) | [protected] |
void OFX::ParamSetDescriptor::setOfxParamSetHandle | ( | OfxParamSetHandle | h | ) | [protected] |
set the param set handle
Definition at line 821 of file ofxsParams.cpp.
References _paramSetHandle, _paramSetProps, OFX::Private::gParamSuite, OfxParameterSuiteV1::paramSetGetPropertySet, OFX::PropertySet::propSetHandle(), and OFX::throwSuiteStatusException().
Referenced by OFX::ImageEffectDescriptor::ImageEffectDescriptor().
void OFX::ParamSetDescriptor::setPageParamOrder | ( | PageParamDescriptor & | p | ) |
estabilishes the order of page params. Do it by calling it in turn for each page
Definition at line 856 of file ofxsParams.cpp.
References _paramSetProps, OFX::ParamDescriptor::getName(), kOfxPluginPropParamPageOrder, OFX::PropertySet::propGetDimension(), and OFX::PropertySet::propSetString().
std::map<std::string, ParamDescriptor*> OFX::ParamSetDescriptor::_definedParams [protected] |
Set of all previously defined parameters, defined on demand.
Definition at line 794 of file ofxsParam.h.
Referenced by defineParamDescriptor(), findPreviouslyDefinedParam(), getParamDescriptor(), and ~ParamSetDescriptor().
Parameter set handle.
Definition at line 791 of file ofxsParam.h.
Referenced by defineRawParam(), getOfxParamSetHandle(), and setOfxParamSetHandle().
PropertySet OFX::ParamSetDescriptor::_paramSetProps [protected] |
Properties that belong to this param set.
Definition at line 788 of file ofxsParam.h.
Referenced by setOfxParamSetHandle(), and setPageParamOrder().