Implements the constrain behaviour. More...
#include <ConstrainOpI.h>
Public Member Functions | |
| ConstrainOpI (fdk::FrameValue referenceFrame, fdk::AxisDirection defaultLookAxis=fdk::AxisDirection::Z_PLUS) | |
| ConstrainOpI (DD::Image::Op *op, fdk::AxisDirection defaultLookAxis=fdk::AxisDirection::Z_PLUS) | |
| void | knobs (Knob_Callback f, Op *op) |
| int | knob_changed (Knob *k, Op *op) |
| const char * | input_label (char *buffer) const |
| Returns the input label for the current constrain mode. | |
| const char * | constraintKnobName () const |
| const char * | orientAxisKnobName () const |
| const char * | rotateXKnobName () const |
| const char * | rotateYKnobName () const |
| const char * | rotateZKnobName () const |
| const char * | strengthKnobName () const |
| const char * | applyTranslateKnobName () const |
| const char * | applyRotateKnobName () const |
| const char * | applyScaleKnobName () const |
| const char * | maintainOffsetFrameKnobName () const |
| const char * | maintainOffsetKnobName () const |
| const char * | setMaintainOffsetFrameToCurrentKnobName () const |
| ndk::ConstraintMatrixParams | getConstraintParametersFromKnobs (const OutputContext *context=nullptr) const |
| fdk::TimeValueSet | getNeededInputTimes (const fdk::TimeValueSet &requestedTimes) const |
| Returns the times we need from inputs given the times that have been requested. | |
| ndk::ConstraintMode | getConstraintType () const |
| Gets the constraint type from the constraint knob. | |
| bool | constraintMaintainOffset () const |
Static Public Member Functions | |
| static fdk::AxisDirection | GetLookAxis (int lookAxisIndex) |
Protected Attributes | |
| Knob * | _constraintKnob |
| Knob * | _lookAxisKnob |
| Knob * | _strengthKnob |
| Knob * | _rotateXKnob |
| Knob * | _rotateYKnob |
| Knob * | _rotateZKnob |
| Knob * | _applyTranslateKnob |
| Knob * | _applyRotateKnob |
| Knob * | _applyScaleKnob |
| Knob * | _maintainOffsetFrameKnob |
| Knob * | _maintainOffsetKnob |
| Knob * | _setMaintainOffsetFrameToCurrentKnob |
| int | _constraint |
| fdk::AxisDirection | _lookAxis |
| bool | _rotateX |
| bool | _rotateY |
| bool | _rotateZ |
| double | _strength |
| bool | _applyTranslate |
| bool | _applyRotate |
| bool | _applyScale |
| bool | _maintainOffset |
| float | _maintainOffsetFrame |
Implements the constrain behaviour.
| ndk::ConstraintMatrixParams ConstrainOpI::getConstraintParametersFromKnobs | ( | const OutputContext * | context = nullptr | ) | const |
Returns a ConstraintMatrixParams structure populated from the knobs Does not populate xform variables as these are not obtained from the knobs.
References DD::Image::Knob::get().
| bool ConstrainOpI::constraintMaintainOffset | ( | ) | const |
Gets whether we should be maintaining the offset given the constraint type and whether the maintain offset knob value is True.
References DD::Image::Knob::get(), and getConstraintType().
| ©2026 The Foundry Visionmongers, Ltd. All Rights Reserved. |