IECore::Op Class Reference

#include <Op.h>

Inheritance diagram for IECore::Op:

IECore::Parameterised IECore::RunTimeTyped IECore::ParameterisedInterface IECore::RefCounted IECore::CheckFileDependenciesOp::CheckFileDependenciesOp IECore::ClassLsOp::ClassLsOp IECore::CurveExtrudeOp IECore::CurveTracer IECore::DataCastOp IECore::DataPromoteOp IECore::EnvMapSampler IECore::EnvMapSHProjector IECore::FileDependenciesOp::FileDependenciesOp IECore::FileSequenceAnalyzerOp::FileSequenceAnalyzerOp IECore::HdrMergeOp IECore::ImageDiffOp IECore::LsHeaderOp::LsHeaderOp IECore::MarschnerLookupTableOp IECore::MedianCutSampler IECore::ModifyOp IECore::ParticleMeshOp IECore::PointBoundsOp IECore::PointDensitiesOp IECore::PointMeshOp IECore::PointNormalsOp IECore::PointsMotionOp IECore::RandomRotationOp IECore::Reader IECore::SearchReplaceOp::SearchReplaceOp IECore::SequenceCatOp::SequenceCatOp IECore::SequenceConvertOp::SequenceConvertOp IECore::SequenceCpOp::SequenceCpOp IECore::SequenceLsOp::SequenceLsOp IECore::SequenceMergeOp::SequenceMergeOp IECore::SequenceMvOp::SequenceMvOp IECore::SequenceRenumberOp::SequenceRenumberOp IECore::SequenceRmOp::SequenceRmOp IECore::SplineToImage IECore::UniformRandomPointDistributionOp IECore::Writer IECoreMaya::BakeTransform::BakeTransform IECoreRI::MakeRibOp::MakeRibOp

List of all members.

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 ParameterresultParameter () const

Protected Member Functions

virtual ObjectPtr doOperation (const CompoundObject *operands)=0


Detailed Description

The Op class defines a base class for objects which perform an operation based on some input parameters and returns a result derived from Object. Parameter objects are used to define both the format of the inputs and the result.

Constructor & Destructor Documentation

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]


Member Function Documentation

virtual ObjectPtr IECore::Op::doOperation ( const CompoundObject operands  )  [protected, pure virtual]

IECore::Op::IE_CORE_DECLARERUNTIMETYPED ( Op  ,
Parameterised   
)

ObjectPtr Op::operate (  ) 

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().


The documentation for this class was generated from the following files:

Generated on Mon Jan 24 11:13:26 2011 for Cortex by doxygen 1.5.8