Nuke binary plugins 15.1.4
 
Loading...
Searching...
No Matches
DD::Image::GeomOpEngine::InputBinding Class Reference

#include <GeomOp.h>

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.
 
GeomOpEnginegeomEngine () 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.
 
OpInputTimeMap & opsForView (int32_t view)
 

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

◆ geomEngine()

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

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

◆ baseOp()

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.

◆ inputFrameForOpTime()

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)

Referenced by DD::Image::GeomOpEngine::inputOpAt().

◆ opAt()

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.

◆ opAtContext()

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.

◆ opsForView()

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

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

Referenced by DD::Image::GeomOpEngine::inputOpAt().



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