Nuke binary plugins  14.0.8
DD::Image::GeomOpEngine::InputBinding Class Reference

Public Member Functions

 InputBinding ()
 Default ctor makes an invalid binding.
 
uint32_t nodeInput () const
 Node input number.
 
bool isValid () const
 Return true if the InputBinding has a valid input Op assignment.
 
GeomOpEngine * geomEngine () const
 
OpbaseOp () const
 
double inputFrameForOpTime (double member_geop_frame) const
 
OpopAt (double frame, int32_t view=-1) const
 
OpopAtContext (const OutputContext &ctx) const
 
uint32_t opIndexStart () const
 Starting point of Node input index in Op input count.
 
uint32_t opSplitCount () const
 Op split input count for this Nuke Node input.
 
const OpInputTimeMap & opsForView (int32_t view) const
 

Friends

class GeomOpEngine
 
std::ostream & operator<< (std::ostream &, const InputBinding &)
 Print out InputBinding components to a stream.
 

Detailed Description

Nuke Node input binding. Note that this is NOT an Op input!

If _upstreamEngine is not null the InputBinding is connected to a GeomOp with a GeomOpEngine. _upstreamFirstOp will be a GeomOp, and _upstreamEngine can be called directly.

Otherwise _upstreamFirstOp will be some other Op type and can be type tested.

In both cases _upstreamOpsPerView will contain the list of Ops at the requested OutputContexts.

Member Function Documentation

GeomOpEngine* DD::Image::GeomOpEngine::InputBinding::geomEngine ( ) const
inline

Returns a GeomOpEngine pointer if the connected input object is another GeomOpEngine (a GeomEngine).

Referenced by DD::Image::operator<<().

Op* DD::Image::GeomOpEngine::InputBinding::baseOp ( ) const
inline

If the input is an Op type, return its Op::firstOp(), which may not be at any specific desired OutputContext. To get a specific frame/view Op variant use the opAt() and opAtContext() methods.

Referenced by DD::Image::operator<<().

double GeomOpEngine::InputBinding::inputFrameForOpTime ( double  member_geop_frame) const

Possibly remap the member GeomOp frame to a time-warped input Op frame. Also rounds the frame to three decimal places (ie .001, a thousandth of a frame)

Op * GeomOpEngine::InputBinding::opAt ( double  frame,
int32_t  view = -1 
) const

Returns the matching Op input for a specific frame and view, if one exists. The frame number is rounded to three decimal places (ie .001, a thousandth of a frame) to make it more likely that a match will occur, and possibly remapped. If view is non-valid then the 'main' view (view index 1) is used instead.

Op * GeomOpEngine::InputBinding::opAtContext ( const OutputContext ctx) const

Returns the matching Op input for the provided OutputContext (frame & view) if one exists. The OutputContext's frame number is rounded to three decimal places (ie .001, a thousandth of a frame) to make it more likely that a match will occur.

const GeomOpEngine::OpInputTimeMap & GeomOpEngine::InputBinding::opsForView ( int32_t  view) const

Returns the time/InputOp map for a specific view. If the view doesn't exists the map will be empty.



©2024 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.foundry.com