#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. | |
GeomOpEngine * | geomEngine () const |
Op * | baseOp () const |
double | inputFrameForOpTime (double member_geop_frame) const |
Op * | opAt (double frame, int32_t view=-1) const |
Op * | opAtContext (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. | |
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.
|
inline |
Returns a GeomOpEngine pointer if the connected input object is another GeomOpEngine (a GeomEngine).
|
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.
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().
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.
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. |