35 #ifndef IE_CORE_OBJECTPARAMETER_H
36 #define IE_CORE_OBJECTPARAMETER_H
38 #include "IECore/Export.h"
39 #include "IECore/Parameter.h"
54 typedef std::set<TypeId> TypeIdSet;
57 ObjectParameter(
const std::string &name,
const std::string &description, ObjectPtr defaultValue,
const TypeIdSet &types,
const PresetsContainer &presets =
PresetsContainer(),
bool presetsOnly =
false, ConstCompoundObjectPtr userData=
nullptr );
62 bool valueValid(
const Object *value, std::string *reason =
nullptr )
const override;
65 const TypeIdSet &validTypes()
const;
69 TypeIdSet m_validTypes;
77 #endif // IE_CORE_OBJECTPARAMETER_H
Definition: Parameter.h:53
Definition: ObjectParameter.h:48
std::vector< Preset > PresetsContainer
A type to store a bunch of preset values for the Parameter.
Definition: Parameter.h:63
TypeId
Definition: TypeIds.h:46
This namespace contains all components of the core library.
Definition: AddSmoothSkinningInfluencesOp.h:43