#include <Op.h>

Public Member Functions | |
| IE_CORE_DECLARERUNTIMETYPED (Op, Parameterised) | |
| Op (const std::string &description, ParameterPtr resultParameter) | |
| Op (const std::string &description, CompoundParameterPtr compoundParameter, ParameterPtr resultParameter) | |
| virtual | ~Op () |
| ObjectPtr | operate () |
| const Parameter * | resultParameter () const |
Protected Member Functions | |
| virtual ObjectPtr | doOperation (const CompoundObject *operands)=0 |
| Op::Op | ( | const std::string & | description, | |
| ParameterPtr | resultParameter | |||
| ) |
Derived classes must pass a suitable resultParameter in their initialiser. Also, every non-abstract derived class from Op should provide a default constructor so that it's possible to extract the parameters from an unknown Op (method used in ClassLoader).
| Op::Op | ( | const std::string & | description, | |
| CompoundParameterPtr | compoundParameter, | |||
| ParameterPtr | resultParameter | |||
| ) |
Alternative constructor for replacing the internal CompoundParameter object by another derived class from CompoundParameter.
| Op::~Op | ( | ) | [virtual] |
| virtual ObjectPtr IECore::Op::doOperation | ( | const CompoundObject * | operands | ) | [protected, pure virtual] |
Called by operate() to actually perform the operation. operands contains the result of parameters()->getValidatedValue - this function will never be called when the contents of the parameters are in a bad state.
Implemented in IECore::BGEOParticleReader, IECore::BINMeshReader, IECore::CurveExtrudeOp, IECore::CurveTracer, IECore::DataCastOp, IECore::DataPromoteOp, IECore::EnvMapSampler, IECore::EnvMapSHProjector, IECore::EXRImageReader, IECore::HdrMergeOp, IECore::ImageDiffOp, IECore::ImageReader, IECore::MarschnerLookupTableOp, IECore::MedianCutSampler, IECore::ModifyOp, IECore::ObjectReader, IECore::OBJReader, IECore::ParticleMeshOp, IECore::ParticleReader, IECore::PointBoundsOp, IECore::PointDensitiesOp, IECore::PointMeshOp, IECore::PointNormalsOp, IECore::PointsMotionOp, IECore::RandomRotationOp, IECore::SplineToImage, IECore::UniformRandomPointDistributionOp, IECore::Writer, IECoreRI::PTCParticleReader, and IECoreRI::SLOReader.
Referenced by operate().
| IECore::Op::IE_CORE_DECLARERUNTIMETYPED | ( | Op | , | |
| Parameterised | ||||
| ) |
| ObjectPtr Op::operate | ( | ) |
Performs the operation using the current values of parameters(). Throws an Exception if the parameter values are not valid.
References doOperation(), and IECore::Parameterised::parameters().
Referenced by IECore::SmoothSmoothSkinningWeightsOp::modify(), IECore::MixSmoothSkinningWeightsOp::modify(), IECore::LimitSmoothSkinningInfluencesOp::modify(), IECore::ContrastSmoothSkinningWeightsOp::modify(), IECore::AddSmoothSkinningInfluencesOp::modify(), IECore::Reader::read(), and IECore::Writer::write().
| const Parameter * Op::resultParameter | ( | ) | const |
Returns a parameter describing the result of the operation - the value of this parameter is always the value last returned by operate.
Referenced by IECoreHoudini::SOP_ToHoudiniConverter::cookMySop(), and IECore::MixSmoothSkinningWeightsOp::modify().
1.5.8