TuttleOFX  1
OFX::Validation Namespace Reference

The validation code has its own namespace. More...

Data Structures

struct  ValueHolder
 This is uses to hold a property value, used by the property checking classes. More...
class  PropertyDescription
 class to describe properties, check their default and set their values More...
class  PropertySetDescription
 Describes a set of properties. More...

Enumerations

enum  DescriptionTag { eDescDefault, eDescFinished }
 Enum used in the varargs list of the PropertyDescription constructor. More...

Functions

static void setVectorFromVarArgs (OFX::PropertyTypeEnum ilk, int dimension, va_list &argp, std::vector< ValueHolder > &vec)
 Set the vector by getting dimension things specified by ilk from the argp list, used by PropertyDescription ctor.
void validateHostProperties (OfxHost *host)
 Validates the host structure and property handle.
void validatePluginDescriptorProperties (PropertySet props)
 Validates the effect descriptor properties.
void validatePluginInstanceProperties (PropertySet props)
 Validates the effect instance properties.
void validateClipDescriptorProperties (PropertySet props)
 validates a clip descriptor
void validateClipInstanceProperties (PropertySet props)
 validates a clip instance
void validateImageProperties (PropertySet props)
 validates a clip descriptor
void validateActionArgumentsProperties (const std::string &action, PropertySet inArgs, PropertySet outArgs)
 Validates action in/out arguments.
void validateParameterProperties (ParamTypeEnum paramType, OFX::PropertySet &paramProps, bool checkDefaults)
 Validates parameter properties.
void initialise (void)
 Initialises validation stuff that needs to be done once we know how the host behaves, called during the onload action.

Variables

static PropertyDescription gHostProps []
 A list of properties that all hosts must have, and will be validated against. None of these has a default, but they must exist.
static PropertySetDescription gHostPropSet ("Host Property", gHostProps, sizeof(gHostProps)/sizeof(PropertyDescription), NULLPTR)
 the property set for the global host pointer
static PropertyDescription gPluginDescriptorProps []
 A list of properties to validate the effect descriptor against.
static PropertySetDescription gPluginDescriptorPropSet ("Plugin Descriptor", gPluginDescriptorProps, sizeof(gPluginDescriptorProps)/sizeof(PropertyDescription), NULLPTR)
 the property set for the global plugin descriptor
static PropertyDescription gPluginInstanceProps []
 A list of properties to validate the plugin instance.
static PropertySetDescription gPluginInstancePropSet ("Plugin Instance", gPluginInstanceProps, sizeof(gPluginInstanceProps)/sizeof(PropertyDescription), NULLPTR)
 the property set for a plugin instance
static PropertyDescription gClipDescriptorProps []
 A list of properties to validate a clip descriptor.
static PropertySetDescription gClipDescriptorPropSet ("Clip Descriptor", gClipDescriptorProps, sizeof(gClipDescriptorProps)/sizeof(PropertyDescription), NULLPTR)
 the property set for a clip descriptor
static PropertyDescription gClipInstanceProps []
 A list of properties to validate a clip instance.
static PropertySetDescription gClipInstancePropSet ("Clip Instance", gClipInstanceProps, sizeof(gClipInstanceProps)/sizeof(PropertyDescription), NULLPTR)
 the property set for a clip instance
static PropertyDescription gImageInstanceProps []
 List of properties to validate an image instance.
static PropertySetDescription gImageInstancePropSet ("Image Instance", gImageInstanceProps, sizeof(gImageInstanceProps)/sizeof(PropertyDescription), NULLPTR)
 the property set for an image instance
static PropertyDescription gDescribeInContextActionInArgProps []
 kOfxImageEffectActionDescribeInContext actions's inargs properties
static PropertySetDescription gDescribeInContextActionInArgPropSet (kOfxImageEffectActionDescribeInContext" in argument", gDescribeInContextActionInArgProps, sizeof(gDescribeInContextActionInArgProps)/sizeof(PropertyDescription), NULLPTR)
 the property set for describe in context action
static PropertyDescription gRenderActionInArgProps []
 kOfxImageEffectActionRender action's inargs properties
static PropertySetDescription gRenderActionInArgPropSet (kOfxImageEffectActionRender" in argument", gRenderActionInArgProps, sizeof(gRenderActionInArgProps)/sizeof(PropertyDescription), NULLPTR)
 kOfxImageEffectActionRender property set
static PropertyDescription gBeginSequenceRenderActionInArgProps []
 kOfxImageEffectActionBeginSequenceRender action's inargs properties
static PropertySetDescription gBeginSequenceRenderActionInArgPropSet (kOfxImageEffectActionBeginSequenceRender" in argument", gBeginSequenceRenderActionInArgProps, sizeof(gBeginSequenceRenderActionInArgProps)/sizeof(PropertyDescription), NULLPTR)
 kOfxImageEffectActionBeginSequenceRender property set
static PropertyDescription gEndSequenceRenderActionInArgProps []
 kOfxImageEffectActionEndSequenceRender action's inargs properties
static PropertySetDescription gEndSequenceRenderActionInArgPropSet (kOfxImageEffectActionEndSequenceRender" in argument", gEndSequenceRenderActionInArgProps, sizeof(gEndSequenceRenderActionInArgProps)/sizeof(PropertyDescription), NULLPTR)
 kOfxImageEffectActionEndSequenceRender property set
static PropertyDescription gIsIdentityActionInArgProps []
 kOfxImageEffectActionIsIdentity action's inargs properties
static PropertySetDescription gIsIdentityActionInArgPropSet (kOfxImageEffectActionIsIdentity" in argument", gIsIdentityActionInArgProps, sizeof(gIsIdentityActionInArgProps)/sizeof(PropertyDescription), NULLPTR)
 kOfxImageEffectActionIsIdentity property set
static PropertyDescription gIsIdentityActionOutArgProps []
 kOfxImageEffectActionIsIdentity action's outargs properties
static PropertySetDescription gIsIdentityActionOutArgPropSet (kOfxImageEffectActionIsIdentity" out argument", gIsIdentityActionOutArgProps, sizeof(gIsIdentityActionOutArgProps)/sizeof(PropertyDescription), NULLPTR)
 kOfxImageEffectActionIsIdentity property set
static PropertyDescription gGetRegionOfDefinitionInArgProps []
 kOfxImageEffectActionGetRegionOfDefinition action's inargs properties
static PropertySetDescription gGetRegionOfDefinitionInArgPropSet (kOfxImageEffectActionGetRegionOfDefinition" in argument", gGetRegionOfDefinitionInArgProps, sizeof(gGetRegionOfDefinitionInArgProps)/sizeof(PropertyDescription), NULLPTR)
 kOfxImageEffectActionGetRegionOfDefinition property set
static PropertyDescription gGetRegionOfDefinitionOutArgProps []
 kOfxImageEffectActionGetRegionOfDefinition action's outargs properties
static PropertySetDescription gGetRegionOfDefinitionOutArgPropSet (kOfxImageEffectActionGetRegionOfDefinition" out argument", gGetRegionOfDefinitionOutArgProps, sizeof(gGetRegionOfDefinitionOutArgProps)/sizeof(PropertyDescription), NULLPTR)
 kOfxImageEffectActionGetRegionOfDefinition property set
static PropertyDescription gGetRegionOfInterestInArgProps []
 kOfxImageEffectActionGetRegionsOfInterest action's inargs properties
static PropertySetDescription gGetRegionOfInterestInArgPropSet (kOfxImageEffectActionGetRegionsOfInterest"in argument", gGetRegionOfInterestInArgProps, sizeof(gGetRegionOfInterestInArgProps)/sizeof(PropertyDescription), NULLPTR)
 kOfxImageEffectActionGetRegionsOfInterest property set
static PropertyDescription gGetTimeDomainOutArgProps []
 kOfxImageEffectActionGetTimeDomain action's outargs properties
static PropertySetDescription gGetTimeDomainOutArgPropSet (kOfxImageEffectActionGetTimeDomain" out argument", gGetTimeDomainOutArgProps, sizeof(gGetTimeDomainOutArgProps)/sizeof(PropertyDescription), NULLPTR)
 kOfxImageEffectActionGetTimeDomain property set
static PropertyDescription gGetFramesNeededInArgProps []
 kOfxImageEffectActionGetFramesNeeded action's inargs properties
static PropertySetDescription gGetFramesNeededInArgPropSet (kOfxImageEffectActionGetFramesNeeded" in argument", gGetFramesNeededInArgProps, sizeof(gGetFramesNeededInArgProps)/sizeof(PropertyDescription), NULLPTR)
 kOfxImageEffectActionGetFramesNeeded property set
static PropertyDescription gGetClipPreferencesOutArgProps []
 kOfxImageEffectActionGetClipPreferences action's outargs properties
static PropertySetDescription gGetClipPreferencesOutArgPropSet (kOfxImageEffectActionGetClipPreferences" out argument", gGetClipPreferencesOutArgProps, sizeof(gGetClipPreferencesOutArgProps)/sizeof(PropertyDescription), NULLPTR)
 kOfxImageEffectActionGetClipPreferences property set
static PropertyDescription gInstanceChangedInArgProps []
 kOfxActionInstanceChanged action's inargs properties
static PropertySetDescription gInstanceChangedInArgPropSet (kOfxActionInstanceChanged" in argument", gInstanceChangedInArgProps, sizeof(gInstanceChangedInArgProps)/sizeof(PropertyDescription), NULLPTR)
 kOfxActionInstanceChanged property set
static PropertyDescription gBeginEndInstanceChangedInArgProps []
 kOfxActionBeginInstanceChanged and kOfxActionEndInstanceChanged actions' inargs properties
static PropertySetDescription gBeginInstanceChangedInArgPropSet (kOfxActionBeginInstanceChanged" in argument", gBeginEndInstanceChangedInArgProps, sizeof(gBeginEndInstanceChangedInArgProps)/sizeof(PropertyDescription), NULLPTR)
 kOfxActionBeginInstanceChanged property set
static PropertySetDescription gEndInstanceChangedInArgPropSet (kOfxActionEndInstanceChanged" in argument", gBeginEndInstanceChangedInArgProps, sizeof(gBeginEndInstanceChangedInArgProps)/sizeof(PropertyDescription), NULLPTR)
 kOfxActionEndInstanceChanged property set
static PropertyDescription gBasicParamProps []
 Basic parameter descriptor properties.
static PropertyDescription gInteractOverideParamProps []
 Props for params that can have an interact override their UI.
static PropertyDescription gValueHolderParamProps []
 Props for params that can hold values.
static PropertyDescription gStringParamProps []
 values for a string param
static PropertyDescription gCustomParamProps []
 values for a string param
static PropertyDescription gRGBColourParamProps []
 properties for an RGB colour param
static PropertyDescription gRGBAColourParamProps []
 properties for an RGBA colour param
static PropertyDescription gBooleanParamProps []
 properties for a boolean param
static PropertyDescription gChoiceParamProps []
 properties for a boolean param
static PropertyDescription gInt1DParamProps []
 properties for a 1D integer param
static PropertyDescription gInt2DParamProps []
 properties for a 2D integer param
static PropertyDescription gInt3DParamProps []
 properties for a 3D integer param
static PropertyDescription gDoubleParamProps []
 Properties common to all double params.
static PropertyDescription gDouble1DParamProps []
 properties for a 1D double param
static PropertyDescription gDouble2DParamProps []
 properties for a 2D double param
static PropertyDescription gDouble3DParamProps []
 properties for a 3D double param
static PropertyDescription gGroupParamProps []
 properties for a group param
static PropertyDescription gPageParamProps []
 properties for a page param
static PropertyDescription gParametricParamProps []
 properties for a parametric param
static PropertyDescription gCameraParamProps []
 properties for a camera param
static PropertySetDescription gInt1DParamPropSet ("1D Integer parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gInteractOverideParamProps), mPropDescriptionArg(gValueHolderParamProps), mPropDescriptionArg(gInt1DParamProps), NULLPTR)
 Property set for 1D ints.
static PropertySetDescription gInt2DParamPropSet ("2D Integer parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gInteractOverideParamProps), mPropDescriptionArg(gValueHolderParamProps), mPropDescriptionArg(gInt2DParamProps), NULLPTR)
 Property set for 2D ints.
static PropertySetDescription gInt3DParamPropSet ("3D Integer parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gInteractOverideParamProps), mPropDescriptionArg(gValueHolderParamProps), mPropDescriptionArg(gInt3DParamProps), NULLPTR)
 Property set for 3D ints.
static PropertySetDescription gDouble1DParamPropSet ("1D Double parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gInteractOverideParamProps), mPropDescriptionArg(gValueHolderParamProps), mPropDescriptionArg(gDoubleParamProps), mPropDescriptionArg(gDouble1DParamProps), NULLPTR)
 Property set for 1D doubles.
static PropertySetDescription gDouble2DParamPropSet ("2D Double parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gInteractOverideParamProps), mPropDescriptionArg(gValueHolderParamProps), mPropDescriptionArg(gDoubleParamProps), mPropDescriptionArg(gDouble2DParamProps), NULLPTR)
 Property set for 2D doubles.
static PropertySetDescription gDouble3DParamPropSet ("3D Double parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gInteractOverideParamProps), mPropDescriptionArg(gValueHolderParamProps), mPropDescriptionArg(gDoubleParamProps), mPropDescriptionArg(gDouble3DParamProps), NULLPTR)
 Property set for 3D doubles.
static PropertySetDescription gRGBParamPropSet ("RGB Colour parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gInteractOverideParamProps), mPropDescriptionArg(gValueHolderParamProps), mPropDescriptionArg(gRGBColourParamProps), NULLPTR)
 Property set for RGB colour params.
static PropertySetDescription gRGBAParamPropSet ("RGB Colour parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gInteractOverideParamProps), mPropDescriptionArg(gValueHolderParamProps), mPropDescriptionArg(gRGBAColourParamProps), NULLPTR)
 Property set for RGB colour params.
static PropertySetDescription gStringParamPropSet ("String parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gInteractOverideParamProps), mPropDescriptionArg(gValueHolderParamProps), mPropDescriptionArg(gStringParamProps), NULLPTR)
 Property set for string params.
static PropertySetDescription gCustomParamPropSet ("Custom parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gInteractOverideParamProps), mPropDescriptionArg(gValueHolderParamProps), mPropDescriptionArg(gCustomParamProps), NULLPTR)
 Property set for string params.
static PropertySetDescription gBooleanParamPropSet ("Boolean parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gInteractOverideParamProps), mPropDescriptionArg(gValueHolderParamProps), mPropDescriptionArg(gBooleanParamProps), NULLPTR)
 Property set for boolean params.
static PropertySetDescription gChoiceParamPropSet ("Choice parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gInteractOverideParamProps), mPropDescriptionArg(gValueHolderParamProps), mPropDescriptionArg(gChoiceParamProps), NULLPTR)
 Property set for choice params.
static PropertySetDescription gPushButtonParamPropSet ("PushButton parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gInteractOverideParamProps), NULLPTR)
 Property set for push button params.
static PropertySetDescription gGroupParamPropSet ("Group Parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gGroupParamProps), NULLPTR)
 Property set for push button params.
static PropertySetDescription gPageParamPropSet ("Page Parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gPageParamProps), NULLPTR)
 Property set for push button params.
static PropertySetDescription gParametricParamPropSet ("Parametric Parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gInteractOverideParamProps), mPropDescriptionArg(gValueHolderParamProps), mPropDescriptionArg(gParametricParamProps), NULLPTR)
static PropertySetDescription gCameraParamPropSet ("Camera Parameter", mPropDescriptionArg(gCameraParamProps), NULLPTR)

Detailed Description

The validation code has its own namespace.


Enumeration Type Documentation

Enum used in the varargs list of the PropertyDescription constructor.

Enumerator:
eDescDefault 
eDescFinished 

following values are the default to check against

we have finished the description

Definition at line 152 of file ofxsSupportPrivate.h.


Function Documentation

void OFX::Validation::initialise ( void  )

Initialises validation stuff that needs to be done once we know how the host behaves, called during the onload action.

initialises the validation code, call this in on load

Definition at line 1225 of file ofxsPropertyValidation.cpp.

References OFX::Validation::PropertySetDescription::addProperty(), eDescDefault, eDescFinished, OFX::eInt, gBooleanParamPropSet, gChoiceParamPropSet, gCustomParamPropSet, OFX::getImageEffectHostDescription(), gStringParamPropSet, and kOfxParamPropAnimates.

Referenced by OFX::Private::loadAction().

Here is the call graph for this function:

static void OFX::Validation::setVectorFromVarArgs ( OFX::PropertyTypeEnum  ilk,
int  dimension,
va_list &  argp,
std::vector< ValueHolder > &  vec 
) [static]

Set the vector by getting dimension things specified by ilk from the argp list, used by PropertyDescription ctor.

Definition at line 67 of file ofxsPropertyValidation.cpp.

References OFX::eDouble, OFX::eInt, OFX::ePointer, and OFX::eString.

Referenced by OFX::Validation::PropertyDescription::PropertyDescription().

void OFX::Validation::validateClipDescriptorProperties ( PropertySet  props)

validates a clip descriptor

Definition at line 1070 of file ofxsPropertyValidation.cpp.

References gClipDescriptorPropSet, and OFX::Validation::PropertySetDescription::validate().

Referenced by OFX::ClipDescriptor::ClipDescriptor().

Here is the call graph for this function:

void OFX::Validation::validateClipInstanceProperties ( PropertySet  props)

validates a clip instance

Definition at line 1078 of file ofxsPropertyValidation.cpp.

References gClipInstancePropSet, and OFX::Validation::PropertySetDescription::validate().

Referenced by OFX::Clip::Clip().

Here is the call graph for this function:

void OFX::Validation::validateHostProperties ( OfxHost host)

Validates the host structure and property handle.

Definition at line 1044 of file ofxsPropertyValidation.cpp.

References gHostPropSet, OfxHost::host, and OFX::Validation::PropertySetDescription::validate().

Referenced by OFX::Private::loadAction().

Here is the call graph for this function:

void OFX::Validation::validateImageProperties ( PropertySet  props)

validates a clip descriptor

Definition at line 1086 of file ofxsPropertyValidation.cpp.

References gImageInstancePropSet, and OFX::Validation::PropertySetDescription::validate().

Referenced by OFX::Image::Image().

Here is the call graph for this function:

void OFX::Validation::validatePluginDescriptorProperties ( PropertySet  props)

Validates the effect descriptor properties.

Definition at line 1054 of file ofxsPropertyValidation.cpp.

References gPluginDescriptorPropSet, and OFX::Validation::PropertySetDescription::validate().

Referenced by OFX::ImageEffectDescriptor::ImageEffectDescriptor(), and OFX::Private::mainEntryStr().

Here is the call graph for this function:

void OFX::Validation::validatePluginInstanceProperties ( PropertySet  props)

Validates the effect instance properties.

Definition at line 1062 of file ofxsPropertyValidation.cpp.

References gPluginInstancePropSet, and OFX::Validation::PropertySetDescription::validate().

Referenced by OFX::ImageEffect::ImageEffect(), and OFX::Private::mainEntryStr().

Here is the call graph for this function:


Variable Documentation

Initial value:
{
    PropertyDescription( kOfxPropType,                   OFX::eString, 1, eDescDefault, kOfxTypeParameter, eDescFinished ),
    PropertyDescription( kOfxPropName,                   OFX::eString, 1, eDescFinished ),
    PropertyDescription( kOfxPropLabel,                  OFX::eString, 1, eDescFinished ),
    PropertyDescription( kOfxPropShortLabel,             OFX::eString, 1, eDescFinished ),
    PropertyDescription( kOfxPropLongLabel,              OFX::eString, 1, eDescFinished ),
    PropertyDescription( kOfxParamPropType,              OFX::eString, 1, eDescFinished ),
    PropertyDescription( kOfxParamPropSecret,            OFX::eInt,    1, eDescDefault, 0, eDescFinished ),
    PropertyDescription( kOfxParamPropCanUndo,           OFX::eInt,    1, eDescDefault, 1, eDescFinished ),
    PropertyDescription( kOfxParamPropHint,              OFX::eString, 1, eDescFinished ),
    PropertyDescription( kOfxParamPropScriptName,        OFX::eString, 1, eDescFinished ),
    PropertyDescription( kOfxParamPropParent,            OFX::eString, 1, eDescFinished ),
    PropertyDescription( kOfxParamPropEnabled,           OFX::eInt,    1, eDescDefault, 1, eDescFinished ),
    PropertyDescription( kOfxParamPropDataPtr,           OFX::ePointer, 1, eDescDefault, ( void* )( 0 ), eDescFinished ),
}

Basic parameter descriptor properties.

Definition at line 720 of file ofxsPropertyValidation.cpp.

Initial value:
{
    PropertyDescription( kOfxPropChangeReason,           OFX::eString, 1, eDescFinished ),
}

kOfxActionBeginInstanceChanged and kOfxActionEndInstanceChanged actions' inargs properties

Definition at line 701 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gBeginInstanceChangedInArgPropSet(kOfxActionBeginInstanceChanged" in argument", gBeginEndInstanceChangedInArgProps, sizeof(gBeginEndInstanceChangedInArgProps)/sizeof(PropertyDescription), NULLPTR) [static]

kOfxActionBeginInstanceChanged property set

Referenced by validateActionArgumentsProperties().

Initial value:

kOfxImageEffectActionBeginSequenceRender action's inargs properties

Definition at line 561 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gBeginSequenceRenderActionInArgPropSet(kOfxImageEffectActionBeginSequenceRender" in argument", gBeginSequenceRenderActionInArgProps, sizeof(gBeginSequenceRenderActionInArgProps)/sizeof(PropertyDescription), NULLPTR) [static]

kOfxImageEffectActionBeginSequenceRender property set

Referenced by validateActionArgumentsProperties().

Initial value:
{
    PropertyDescription( kOfxParamPropDefault,              OFX::eInt, 1, eDescFinished ),
    PropertyDescription( kOfxParamPropAnimates,             OFX::eInt, 1, eDescDefault, 0, eDescFinished ),
}

properties for a boolean param

Definition at line 789 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gBooleanParamPropSet("Boolean parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gInteractOverideParamProps), mPropDescriptionArg(gValueHolderParamProps), mPropDescriptionArg(gBooleanParamProps), NULLPTR) [static]

Property set for boolean params.

Referenced by initialise(), and validateParameterProperties().

Initial value:
{
    PropertyDescription( kOfxPropType,                             OFX::eString, 1, eDescDefault, "NukeCamera", eDescFinished ),
    PropertyDescription( kOfxPropName,                           OFX::eString, 1, eDescFinished ),
    PropertyDescription( kOfxPropLabel,                          OFX::eString, 1,  eDescFinished ),
    PropertyDescription( kOfxPropShortLabel,                     OFX::eString, 1,  eDescFinished ),
    PropertyDescription( kOfxPropLongLabel,                      OFX::eString, 1, eDescFinished ),
    PropertyDescription( kOfxImageClipPropOptional,              OFX::eInt, 1, eDescDefault, 0, eDescFinished ),
}

properties for a camera param

Definition at line 904 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gCameraParamPropSet("Camera Parameter", mPropDescriptionArg(gCameraParamProps), NULLPTR) [static]
Initial value:
{
    PropertyDescription( kOfxParamPropDefault,              OFX::eInt,     1, eDescFinished ),
    PropertyDescription( kOfxParamPropAnimates,             OFX::eInt,     1, eDescDefault, 0, eDescFinished ),
    PropertyDescription( kOfxParamPropChoiceOption,         OFX::eString, -1, eDescFinished ),
}

properties for a boolean param

Definition at line 796 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gChoiceParamPropSet("Choice parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gInteractOverideParamProps), mPropDescriptionArg(gValueHolderParamProps), mPropDescriptionArg(gChoiceParamProps), NULLPTR) [static]

Property set for choice params.

Referenced by initialise(), and validateParameterProperties().

Initial value:

A list of properties to validate a clip descriptor.

Definition at line 435 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gClipDescriptorPropSet("Clip Descriptor", gClipDescriptorProps, sizeof(gClipDescriptorProps)/sizeof(PropertyDescription), NULLPTR) [static]

the property set for a clip descriptor

Referenced by validateClipDescriptorProperties().

A list of properties to validate a clip instance.

Definition at line 461 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gClipInstancePropSet("Clip Instance", gClipInstanceProps, sizeof(gClipInstanceProps)/sizeof(PropertyDescription), NULLPTR) [static]

the property set for a clip instance

Referenced by validateClipInstanceProperties().

Initial value:

values for a string param

Definition at line 768 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gCustomParamPropSet("Custom parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gInteractOverideParamProps), mPropDescriptionArg(gValueHolderParamProps), mPropDescriptionArg(gCustomParamProps), NULLPTR) [static]

Property set for string params.

Referenced by initialise(), and validateParameterProperties().

Initial value:
{
    PropertyDescription( kOfxImageEffectPropContext,   OFX::eString, 1, eDescFinished ),
}

kOfxImageEffectActionDescribeInContext actions's inargs properties

Definition at line 536 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gDescribeInContextActionInArgPropSet(kOfxImageEffectActionDescribeInContext" in argument", gDescribeInContextActionInArgProps, sizeof(gDescribeInContextActionInArgProps)/sizeof(PropertyDescription), NULLPTR) [static]

the property set for describe in context action

Referenced by validateActionArgumentsProperties().

Initial value:
{
    PropertyDescription( kOfxParamPropDefault,              OFX::eDouble, 1, eDescFinished ),
    PropertyDescription( kOfxParamPropMin,                  OFX::eDouble, 1, eDescFinished ),
    PropertyDescription( kOfxParamPropMax,                  OFX::eDouble, 1, eDescFinished ),
    PropertyDescription( kOfxParamPropDisplayMin,           OFX::eDouble, 1, eDescFinished ),
    PropertyDescription( kOfxParamPropDisplayMax,           OFX::eDouble, 1, eDescFinished ),
    PropertyDescription( kOfxParamPropShowTimeMarker,       OFX::eInt,    1, eDescDefault, 0, eDescFinished ),
}

properties for a 1D double param

Definition at line 848 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gDouble1DParamPropSet("1D Double parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gInteractOverideParamProps), mPropDescriptionArg(gValueHolderParamProps), mPropDescriptionArg(gDoubleParamProps), mPropDescriptionArg(gDouble1DParamProps), NULLPTR) [static]

Property set for 1D doubles.

Referenced by validateParameterProperties().

Initial value:
{
    PropertyDescription( kOfxParamPropDefault,              OFX::eDouble, 2, eDescFinished ),
    PropertyDescription( kOfxParamPropMin,                  OFX::eDouble, 2, eDescFinished ),
    PropertyDescription( kOfxParamPropMax,                  OFX::eDouble, 2, eDescFinished ),
    PropertyDescription( kOfxParamPropDisplayMin,           OFX::eDouble, 2, eDescFinished ),
    PropertyDescription( kOfxParamPropDisplayMax,           OFX::eDouble, 2, eDescFinished ),
    PropertyDescription( kOfxParamPropDimensionLabel,       OFX::eString, 2, eDescDefault, "x", "y", eDescFinished ),
}

properties for a 2D double param

Definition at line 859 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gDouble2DParamPropSet("2D Double parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gInteractOverideParamProps), mPropDescriptionArg(gValueHolderParamProps), mPropDescriptionArg(gDoubleParamProps), mPropDescriptionArg(gDouble2DParamProps), NULLPTR) [static]

Property set for 2D doubles.

Referenced by validateParameterProperties().

Initial value:
{
    PropertyDescription( kOfxParamPropDefault,              OFX::eDouble, 3, eDescFinished ),
    PropertyDescription( kOfxParamPropMin,                  OFX::eDouble, 3, eDescFinished ),
    PropertyDescription( kOfxParamPropMax,                  OFX::eDouble, 3, eDescFinished ),
    PropertyDescription( kOfxParamPropDisplayMin,           OFX::eDouble, 3, eDescFinished ),
    PropertyDescription( kOfxParamPropDisplayMax,           OFX::eDouble, 3, eDescFinished ),
    PropertyDescription( kOfxParamPropDimensionLabel,       OFX::eString, 3, eDescDefault, "x", "y", "z", eDescFinished ),
}

properties for a 3D double param

Definition at line 870 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gDouble3DParamPropSet("3D Double parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gInteractOverideParamProps), mPropDescriptionArg(gValueHolderParamProps), mPropDescriptionArg(gDoubleParamProps), mPropDescriptionArg(gDouble3DParamProps), NULLPTR) [static]

Property set for 3D doubles.

Referenced by validateParameterProperties().

Initial value:

Properties common to all double params.

Definition at line 839 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gEndInstanceChangedInArgPropSet(kOfxActionEndInstanceChanged" in argument", gBeginEndInstanceChangedInArgProps, sizeof(gBeginEndInstanceChangedInArgProps)/sizeof(PropertyDescription), NULLPTR) [static]

kOfxActionEndInstanceChanged property set

Referenced by validateActionArgumentsProperties().

Initial value:
{
    PropertyDescription( kOfxImageEffectPropRenderScale, OFX::eDouble, 2, eDescFinished ),
    PropertyDescription( kOfxPropIsInteractive,          OFX::eInt, 1, eDescFinished ),
}

kOfxImageEffectActionEndSequenceRender action's inargs properties

Definition at line 575 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gEndSequenceRenderActionInArgPropSet(kOfxImageEffectActionEndSequenceRender" in argument", gEndSequenceRenderActionInArgProps, sizeof(gEndSequenceRenderActionInArgProps)/sizeof(PropertyDescription), NULLPTR) [static]

kOfxImageEffectActionEndSequenceRender property set

Referenced by validateActionArgumentsProperties().

Initial value:

kOfxImageEffectActionGetClipPreferences action's outargs properties

Definition at line 671 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gGetClipPreferencesOutArgPropSet(kOfxImageEffectActionGetClipPreferences" out argument", gGetClipPreferencesOutArgProps, sizeof(gGetClipPreferencesOutArgProps)/sizeof(PropertyDescription), NULLPTR) [static]

kOfxImageEffectActionGetClipPreferences property set

Referenced by validateActionArgumentsProperties().

Initial value:
{
    PropertyDescription( kOfxPropTime,                     OFX::eDouble, 1, eDescFinished ),
}

kOfxImageEffectActionGetFramesNeeded action's inargs properties

Definition at line 660 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gGetFramesNeededInArgPropSet(kOfxImageEffectActionGetFramesNeeded" in argument", gGetFramesNeededInArgProps, sizeof(gGetFramesNeededInArgProps)/sizeof(PropertyDescription), NULLPTR) [static]

kOfxImageEffectActionGetFramesNeeded property set

Referenced by validateActionArgumentsProperties().

Initial value:
{
    PropertyDescription( kOfxPropTime,                     OFX::eDouble, 1, eDescFinished ),
    PropertyDescription( kOfxImageEffectPropRenderScale,   OFX::eDouble, 2, eDescFinished ),
}

kOfxImageEffectActionGetRegionOfDefinition action's inargs properties

Definition at line 613 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gGetRegionOfDefinitionInArgPropSet(kOfxImageEffectActionGetRegionOfDefinition" in argument", gGetRegionOfDefinitionInArgProps, sizeof(gGetRegionOfDefinitionInArgProps)/sizeof(PropertyDescription), NULLPTR) [static]

kOfxImageEffectActionGetRegionOfDefinition property set

Referenced by validateActionArgumentsProperties().

Initial value:

kOfxImageEffectActionGetRegionOfDefinition action's outargs properties

Definition at line 625 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gGetRegionOfDefinitionOutArgPropSet(kOfxImageEffectActionGetRegionOfDefinition" out argument", gGetRegionOfDefinitionOutArgProps, sizeof(gGetRegionOfDefinitionOutArgProps)/sizeof(PropertyDescription), NULLPTR) [static]

kOfxImageEffectActionGetRegionOfDefinition property set

Referenced by validateActionArgumentsProperties().

Initial value:

kOfxImageEffectActionGetRegionsOfInterest action's inargs properties

Definition at line 636 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gGetRegionOfInterestInArgPropSet(kOfxImageEffectActionGetRegionsOfInterest"in argument", gGetRegionOfInterestInArgProps, sizeof(gGetRegionOfInterestInArgProps)/sizeof(PropertyDescription), NULLPTR) [static]

kOfxImageEffectActionGetRegionsOfInterest property set

Referenced by validateActionArgumentsProperties().

Initial value:
{
    PropertyDescription( kOfxImageEffectPropFrameRange,   OFX::eDouble, 2, eDescFinished ),
}

kOfxImageEffectActionGetTimeDomain action's outargs properties

Definition at line 649 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gGetTimeDomainOutArgPropSet(kOfxImageEffectActionGetTimeDomain" out argument", gGetTimeDomainOutArgProps, sizeof(gGetTimeDomainOutArgProps)/sizeof(PropertyDescription), NULLPTR) [static]

kOfxImageEffectActionGetTimeDomain property set

Referenced by validateActionArgumentsProperties().

Initial value:
{
    PropertyDescription( kOfxParamPropGroupOpen,            OFX::eInt, 2, eDescFinished ),
}

properties for a group param

Definition at line 881 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gGroupParamPropSet("Group Parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gGroupParamProps), NULLPTR) [static]

Property set for push button params.

Referenced by validateParameterProperties().

A list of properties that all hosts must have, and will be validated against. None of these has a default, but they must exist.

Definition at line 323 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gHostPropSet("Host Property", gHostProps, sizeof(gHostProps)/sizeof(PropertyDescription), NULLPTR) [static]

the property set for the global host pointer

Referenced by validateHostProperties().

Initial value:

List of properties to validate an image instance.

Definition at line 501 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gImageInstancePropSet("Image Instance", gImageInstanceProps, sizeof(gImageInstanceProps)/sizeof(PropertyDescription), NULLPTR) [static]

the property set for an image instance

Referenced by validateImageProperties().

Initial value:
{
    PropertyDescription( kOfxPropType,                   OFX::eString, 1, eDescFinished ),
    PropertyDescription( kOfxPropName,                   OFX::eString, 1, eDescFinished ),
    PropertyDescription( kOfxPropChangeReason,           OFX::eString, 1, eDescFinished ),
    PropertyDescription( kOfxPropTime,                   OFX::eDouble, 1, eDescFinished ),
    PropertyDescription( kOfxImageEffectPropRenderScale, OFX::eDouble, 2, eDescFinished ),
}

kOfxActionInstanceChanged action's inargs properties

Definition at line 686 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gInstanceChangedInArgPropSet(kOfxActionInstanceChanged" in argument", gInstanceChangedInArgProps, sizeof(gInstanceChangedInArgProps)/sizeof(PropertyDescription), NULLPTR) [static]

kOfxActionInstanceChanged property set

Referenced by validateActionArgumentsProperties().

Initial value:
{
    PropertyDescription( kOfxParamPropDefault,              OFX::eInt, 1, eDescFinished ),
    PropertyDescription( kOfxParamPropMin,                  OFX::eInt, 1, eDescFinished ),
    PropertyDescription( kOfxParamPropMax,                  OFX::eInt, 1, eDescFinished ),
    PropertyDescription( kOfxParamPropDisplayMin,           OFX::eInt, 1, eDescFinished ),
    PropertyDescription( kOfxParamPropDisplayMax,           OFX::eInt, 1, eDescFinished ),
    PropertyDescription( kOfxParamPropAnimates,             OFX::eInt, 1, eDescDefault, 0, eDescFinished ),
}

properties for a 1D integer param

Definition at line 804 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gInt1DParamPropSet("1D Integer parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gInteractOverideParamProps), mPropDescriptionArg(gValueHolderParamProps), mPropDescriptionArg(gInt1DParamProps), NULLPTR) [static]

Property set for 1D ints.

Referenced by validateParameterProperties().

Initial value:
{
    PropertyDescription( kOfxParamPropDefault,              OFX::eInt, 2, eDescFinished ),
    PropertyDescription( kOfxParamPropMin,                  OFX::eInt, 2, eDescFinished ),
    PropertyDescription( kOfxParamPropMax,                  OFX::eInt, 2, eDescFinished ),
    PropertyDescription( kOfxParamPropDisplayMin,           OFX::eInt, 2, eDescFinished ),
    PropertyDescription( kOfxParamPropDisplayMax,           OFX::eInt, 2, eDescFinished ),
    PropertyDescription( kOfxParamPropAnimates,             OFX::eInt, 1, eDescDefault, 0, eDescFinished ),
    PropertyDescription( kOfxParamPropDimensionLabel,       OFX::eString, 2, eDescDefault, "x", "y", eDescFinished ),
}

properties for a 2D integer param

Definition at line 815 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gInt2DParamPropSet("2D Integer parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gInteractOverideParamProps), mPropDescriptionArg(gValueHolderParamProps), mPropDescriptionArg(gInt2DParamProps), NULLPTR) [static]

Property set for 2D ints.

Referenced by validateParameterProperties().

Initial value:
{
    PropertyDescription( kOfxParamPropDefault,              OFX::eInt, 3, eDescFinished ),
    PropertyDescription( kOfxParamPropMin,                  OFX::eInt, 3, eDescFinished ),
    PropertyDescription( kOfxParamPropMax,                  OFX::eInt, 3, eDescFinished ),
    PropertyDescription( kOfxParamPropDisplayMin,           OFX::eInt, 3, eDescFinished ),
    PropertyDescription( kOfxParamPropDisplayMax,           OFX::eInt, 3, eDescFinished ),
    PropertyDescription( kOfxParamPropAnimates,             OFX::eInt, 1, eDescDefault, 0, eDescFinished ),
    PropertyDescription( kOfxParamPropDimensionLabel,       OFX::eString, 3, eDescDefault, "x", "y", "z", eDescFinished ),
}

properties for a 3D integer param

Definition at line 827 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gInt3DParamPropSet("3D Integer parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gInteractOverideParamProps), mPropDescriptionArg(gValueHolderParamProps), mPropDescriptionArg(gInt3DParamProps), NULLPTR) [static]

Property set for 3D ints.

Referenced by validateParameterProperties().

Initial value:
{
    PropertyDescription( kOfxParamPropInteractV1,           OFX::ePointer, 1, eDescDefault, ( void* )( 0 ), eDescFinished ),
    PropertyDescription( kOfxParamPropInteractSize,         OFX::eDouble, 2, eDescFinished ),
    PropertyDescription( kOfxParamPropInteractSizeAspect,   OFX::eDouble, 1, eDescDefault, 1.0, eDescFinished ),
    PropertyDescription( kOfxParamPropInteractMinimumSize,  OFX::eInt,    2, eDescDefault, 10, 10, eDescFinished ),
    PropertyDescription( kOfxParamPropInteractPreferedSize, OFX::eInt,    2, eDescDefault, 10, 10, eDescFinished ),
}

Props for params that can have an interact override their UI.

Definition at line 738 of file ofxsPropertyValidation.cpp.

Initial value:

kOfxImageEffectActionIsIdentity action's inargs properties

Definition at line 587 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gIsIdentityActionInArgPropSet(kOfxImageEffectActionIsIdentity" in argument", gIsIdentityActionInArgProps, sizeof(gIsIdentityActionInArgProps)/sizeof(PropertyDescription), NULLPTR) [static]

kOfxImageEffectActionIsIdentity property set

Referenced by validateActionArgumentsProperties().

Initial value:
{
    PropertyDescription( kOfxPropTime, OFX::eDouble, 1, eDescFinished ),
    PropertyDescription( kOfxPropName, OFX::eString, 1, eDescFinished ),
}

kOfxImageEffectActionIsIdentity action's outargs properties

Definition at line 601 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gIsIdentityActionOutArgPropSet(kOfxImageEffectActionIsIdentity" out argument", gIsIdentityActionOutArgProps, sizeof(gIsIdentityActionOutArgProps)/sizeof(PropertyDescription), NULLPTR) [static]

kOfxImageEffectActionIsIdentity property set

Referenced by validateActionArgumentsProperties().

Initial value:
{
    PropertyDescription( kOfxParamPropPageChild,            OFX::eString, -1, eDescFinished ),
}

properties for a page param

Definition at line 887 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gPageParamPropSet("Page Parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gPageParamProps), NULLPTR) [static]

Property set for push button params.

Referenced by validateParameterProperties().

Initial value:

properties for a parametric param

Definition at line 893 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gParametricParamPropSet("Parametric Parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gInteractOverideParamProps), mPropDescriptionArg(gValueHolderParamProps), mPropDescriptionArg(gParametricParamProps), NULLPTR) [static]

A list of properties to validate the effect descriptor against.

Definition at line 362 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gPluginDescriptorPropSet("Plugin Descriptor", gPluginDescriptorProps, sizeof(gPluginDescriptorProps)/sizeof(PropertyDescription), NULLPTR) [static]

the property set for the global plugin descriptor

Referenced by validatePluginDescriptorProperties().

PropertySetDescription OFX::Validation::gPluginInstancePropSet("Plugin Instance", gPluginInstanceProps, sizeof(gPluginInstanceProps)/sizeof(PropertyDescription), NULLPTR) [static]

the property set for a plugin instance

Referenced by validatePluginInstanceProperties().

PropertySetDescription OFX::Validation::gPushButtonParamPropSet("PushButton parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gInteractOverideParamProps), NULLPTR) [static]

Property set for push button params.

Referenced by validateParameterProperties().

Initial value:

kOfxImageEffectActionRender action's inargs properties

Definition at line 547 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gRenderActionInArgPropSet(kOfxImageEffectActionRender" in argument", gRenderActionInArgProps, sizeof(gRenderActionInArgProps)/sizeof(PropertyDescription), NULLPTR) [static]

kOfxImageEffectActionRender property set

Referenced by validateActionArgumentsProperties().

Initial value:
{
    PropertyDescription( kOfxParamPropDefault,              OFX::eDouble, 4, eDescFinished ),
    PropertyDescription( kOfxParamPropAnimates,             OFX::eInt,    1, eDescDefault, 1, eDescFinished ),
}

properties for an RGBA colour param

Definition at line 782 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gRGBAParamPropSet("RGB Colour parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gInteractOverideParamProps), mPropDescriptionArg(gValueHolderParamProps), mPropDescriptionArg(gRGBAColourParamProps), NULLPTR) [static]

Property set for RGB colour params.

Referenced by validateParameterProperties().

Initial value:
{
    PropertyDescription( kOfxParamPropDefault,              OFX::eDouble, 3, eDescFinished ),
    PropertyDescription( kOfxParamPropAnimates,             OFX::eInt,    1, eDescDefault, 1, eDescFinished ),
}

properties for an RGB colour param

Definition at line 775 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gRGBParamPropSet("RGB Colour parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gInteractOverideParamProps), mPropDescriptionArg(gValueHolderParamProps), mPropDescriptionArg(gRGBColourParamProps), NULLPTR) [static]

Property set for RGB colour params.

Referenced by validateParameterProperties().

Initial value:

values for a string param

Definition at line 759 of file ofxsPropertyValidation.cpp.

PropertySetDescription OFX::Validation::gStringParamPropSet("String parameter", mPropDescriptionArg(gBasicParamProps), mPropDescriptionArg(gInteractOverideParamProps), mPropDescriptionArg(gValueHolderParamProps), mPropDescriptionArg(gStringParamProps), NULLPTR) [static]

Property set for string params.

Referenced by initialise(), and validateParameterProperties().

Initial value:

Props for params that can hold values.

Definition at line 748 of file ofxsPropertyValidation.cpp.