Knob creation functions. More...
Classes | |
struct | DD::Image::IRange |
Namespaces | |
namespace | DD::Image |
Defines | |
#define | CustomKnob0(knobclass, cb, name) |
#define | CustomKnob1(knobclass, cb, pointer, name) |
#define | CustomKnob2(knobclass, cb, pointer, name, label) |
#define | CustomKnobA(knobclass, cb, pointer, name, args) |
Enumerations | |
enum | FileKnob_Type { Normal_File, Read_File_Proxy, Write_File_Proxy, Geo_File, Write_File_Normal, Script_File, Read_File_Cached, Read_File_NoProxy, OCIO_File, Particle_Cache_File } |
enum | { TRANSFORM, POSITIONER, TO_PROXY, NO_SCALE, NO_UNIFORM_SCALE, NO_SKEW, NO_CENTER, T2D_GAUGE, T2D_INVERT } |
Functions | |
void | DD::Image::Tooltip (Knob_Callback f, const char *) |
void | DD::Image::Tooltip (Knob_Callback f, const std::string &text) |
void | DD::Image::SetFlags (Knob_Callback f, Knob::FlagMask n) |
void | DD::Image::ClearFlags (Knob_Callback f, Knob::FlagMask n) |
void | DD::Image::SetRange (Knob_Callback f, double minimum, double maximum) |
Knob * | DD::Image::Obsolete_knob (Knob_Callback f, const char *linkto, NAME name, const char *script) |
Knob * | DD::Image::Obsolete_knob (Knob_Callback f, NAME name, const char *script) |
Knob * | DD::Image::Op_knob (Knob_Callback f, Op *op, NAME name) |
Knob * | DD::Image::String_knob (Knob_Callback f, const char **p, NAME n, LABEL l=0) |
Knob * | DD::Image::Password_knob (Knob_Callback f, const char **p, NAME n, LABEL l=0) |
Knob * | DD::Image::String_knob (Knob_Callback f, std::string *p, NAME n, LABEL l=0) |
Knob * | DD::Image::String_knob (Knob_Callback f, NAME n, LABEL l=0) |
Knob * | DD::Image::File_knob (Knob_Callback f, const char **p, NAME n, LABEL l=0, FileKnob_Type type=Normal_File) |
Knob * | DD::Image::Read_File_knob (ReadFileKnobOwner *ptr, Knob_Callback f, const char **p, NAME n, LABEL l=0) |
Knob * | DD::Image::Read_File_knob (ReadFileKnobOwner *ptr, Knob_Callback f, std::string *p, NAME n, LABEL l=0) |
Knob * | DD::Image::Cached_File_knob (Knob_Callback f, const char **p, NAME n, LABEL l=0, FileKnob_Type type=Normal_File) |
Knob * | DD::Image::Write_File_knob (Knob_Callback f, const char **p, NAME n, LABEL l=0) |
Knob * | DD::Image::Write_File_knob (Knob_Callback f, std::string *p, NAME n, LABEL l=0) |
Knob * | DD::Image::Proxyless_Read_File_knob (ReadFileKnobOwner *ptr, Knob_Callback f, const char **p, NAME n, LABEL l=0) |
Knob * | DD::Image::Int_knob (Knob_Callback f, int *p, NAME n, LABEL l=0) |
Knob * | DD::Image::Enumeration_knob (Knob_Callback f, int *p, ENUM_LABELS e, NAME n, LABEL l=0) |
Knob * | DD::Image::CascadingEnumeration_knob (Knob_Callback f, int *p, ENUM_LABELS e, NAME n, LABEL l=0) |
Knob * | DD::Image::SceneView_knob (Knob_Callback f, int *p, ENUM_LABELS e, NAME n, LABEL l=0) |
Knob * | DD::Image::FreeTypeFont_knob (Knob_Callback f, StlStringIntPair *p, NAME n, LABEL l=0) |
Knob * | DD::Image::OneView_knob (Knob_Callback f, int *p, NAME n, LABEL l=0, const char *defcaption=0) |
Knob * | DD::Image::ViewPair_knob (Knob_Callback f, std::pair< int, int > *p, NAME n, LABEL l=0) |
Knob * | DD::Image::MetaData_knob (Knob_Callback f, NAME n, LABEL l=0) |
Knob * | DD::Image::MultiView_knob (Knob_Callback f, std::set< int > *p, NAME n, LABEL l=0) |
Knob * | DD::Image::ViewView_knob (Knob_Callback f, std::map< int, int > *p, NAME n, std::pair< std::string, std::string > *headings, LABEL l=0) |
Knob * | DD::Image::Bitmask_knob (Knob_Callback f, unsigned int *p, ENUM_LABELS e, NAME n, LABEL l=0) |
Knob * | DD::Image::Dynamic_Bitmask_knob (Knob_Callback f, unsigned int *p, std::map< int, std::string > *e, NAME n, LABEL l=0) |
Knob * | DD::Image::Bool_knob (Knob_Callback f, bool *p, NAME n, LABEL l=0) |
Knob * | DD::Image::Float_knob (Knob_Callback f, double *p, NAME n, LABEL l=0) |
Knob * | DD::Image::Float_knob (Knob_Callback f, float *p, NAME n, LABEL l=0) |
Knob * | DD::Image::Frame_knob (Knob_Callback f, float *p, NAME n, LABEL l=0) |
Knob * | DD::Image::Deep_knob (Knob_Callback f, float *p, NAME n, LABEL l=0) |
Knob * | DD::Image::MultiFloat_knob (Knob_Callback f, double *p, int dim, NAME n, LABEL l=0) |
Knob * | DD::Image::MultiFloat_knob (Knob_Callback f, float *p, int dim, NAME n, LABEL l=0) |
Knob * | DD::Image::MultiInt_knob (Knob_Callback f, int *p, int dim, NAME n, LABEL l=0) |
Knob * | DD::Image::PixelAspect_knob (Knob_Callback f, double *p, NAME n, LABEL l=0) |
Knob * | DD::Image::Array_knob (Knob_Callback f, ConvolveArray *p, int width, int height, NAME n, LABEL l=0, bool defaultData=false) |
Knob * | DD::Image::ResizableArray_knob (Knob_Callback f, ConvolveArray *p, int width, int height, NAME n, LABEL l=0, bool defaultData=false) |
Knob * | DD::Image::ChannelSet_knob (Knob_Callback f, ChannelSet *p, NAME n, LABEL l=0) |
Knob * | DD::Image::Input_ChannelSet_knob (Knob_Callback f, ChannelSet *p, int input, NAME n, LABEL l=0) |
Knob * | DD::Image::InputOnly_ChannelSet_knob (Knob_Callback f, ChannelSet *p, int input, NAME n, LABEL l=0) |
Knob * | DD::Image::Channel_knob (Knob_Callback f, Channel *p, int count, NAME n, LABEL l=0) |
Knob * | DD::Image::Input_Channel_knob (Knob_Callback f, Channel *p, int count, int input, NAME n, LABEL l=0) |
Knob * | DD::Image::InputOnly_Channel_knob (Knob_Callback f, Channel *p, int count, int input, NAME n, LABEL l=0) |
Knob * | DD::Image::XY_knob (Knob_Callback f, double *p, NAME n, LABEL l, Knob *parent=0) |
Knob * | DD::Image::XY_knob (Knob_Callback f, double *p, NAME n, Knob *parent=0) |
Knob * | DD::Image::XY_knob (Knob_Callback f, float *p, NAME n, LABEL l, Knob *parent=0) |
Knob * | DD::Image::XY_knob (Knob_Callback f, float *p, NAME n, Knob *parent=0) |
Knob * | DD::Image::XYZ_knob (Knob_Callback f, float *p, NAME n, LABEL l=0, Knob *parent=0) |
Knob * | DD::Image::UV_knob (Knob_Callback f, double *p, NAME n, LABEL l=0) |
Knob * | DD::Image::UV_knob (Knob_Callback f, float *p, NAME n, LABEL l=0) |
Knob * | DD::Image::CP_knob (Knob_Callback f, float *p, int dim, NAME n, LABEL l=0) |
Knob * | DD::Image::WH_knob (Knob_Callback f, double *p, NAME n, LABEL l=0) |
Knob * | DD::Image::WH_knob (Knob_Callback f, float *p, NAME n, LABEL l=0) |
Knob * | DD::Image::BBox_knob (Knob_Callback f, double *p, NAME n, LABEL l=0, Knob *parent=0) |
Knob * | DD::Image::BBox_knob (Knob_Callback f, float *p, NAME n, LABEL l=0, Knob *parent=0) |
Knob * | DD::Image::Format_knob (Knob_Callback f, FormatPair *p, NAME n, LABEL l=0) |
Knob * | DD::Image::Color_knob (Knob_Callback f, float *p, NAME n, LABEL l=0) |
Knob * | DD::Image::Color_knob (Knob_Callback f, double *p, NAME n, LABEL l=0) |
Knob * | DD::Image::AColor_knob (Knob_Callback f, float *p, NAME n, LABEL l=0) |
Knob * | DD::Image::AColor_knob (Knob_Callback f, double *p, NAME n, LABEL l=0) |
Knob * | DD::Image::Eyedropper_knob (Knob_Callback f, float *p, NAME n, LABEL l=0) |
Knob * | DD::Image::Range_knob (Knob_Callback f, double *p, int np, NAME n, LABEL l=0) |
Knob * | DD::Image::Range_knob (Knob_Callback f, float *p, int np, NAME n, LABEL l=0) |
void | DD::Image::FrameRange_knob (Knob_Callback f, FrameRange p, const std::string &n, LABEL l=0) |
Knob * | DD::Image::Transform2d_knob (Knob_Callback f, Matrix4 *p, NAME n, int type=0) |
Knob * | DD::Image::Transform2d_knob (Knob_Callback f, Matrix4 *p, NAME n, LABEL l, int type=0) |
Knob * | DD::Image::LookupCurves_knob (Knob_Callback f, LookupCurves *p, DD::Image::LookupCurvesType type, NAME n, LABEL l=0) |
Knob * | DD::Image::LookupCurves_knob (Knob_Callback f, LookupCurves *p, NAME n, LABEL l=0) |
Knob * | DD::Image::Axis_knob (Knob_Callback f, Matrix4 *p, NAME n, LABEL l=0) |
Knob * | DD::Image::PositionVector_knob (Knob_Callback f, float *p, NAME n, LABEL l=0) |
Knob * | DD::Image::Box3_knob (Knob_Callback f, float *p, NAME n, LABEL l=0) |
Knob * | DD::Image::Histogram_knob (Knob_Callback f, Histogram_Data *p, NAME n, LABEL l=0) |
Knob * | DD::Image::Keyer_knob (Knob_Callback f, double *p, NAME n, LABEL l=0) |
Knob * | DD::Image::ColorChip_knob (Knob_Callback f, unsigned *p, NAME n, LABEL l=0) |
Knob * | DD::Image::Tab_knob (Knob_Callback f, LABEL label) |
Knob * | DD::Image::MultiArray_knob (Knob_Callback f, NAME n, LABEL l=0) |
Knob * | DD::Image::BeginGroup (Knob_Callback f, NAME name, LABEL label=0) |
Knob * | DD::Image::BeginClosedGroup (Knob_Callback f, NAME name, LABEL label=0) |
Knob * | DD::Image::EndGroup (Knob_Callback f) |
Knob * | DD::Image::BeginToolbar (Knob_Callback f, NAME name, LABEL label=0, int position=Knob::TOOLBAR_TOP) |
Knob * | DD::Image::EndToolbar (Knob_Callback f) |
Knob * | DD::Image::BeginTabGroup (Knob_Callback f, NAME name, LABEL label=0) |
Knob * | DD::Image::EndTabGroup (Knob_Callback f) |
Knob * | DD::Image::BeginExoGroup (Knob_Callback f, NAME name, LABEL label=0) |
Knob * | DD::Image::EndExoGroup (Knob_Callback f) |
Knob * | DD::Image::Text_knob (Knob_Callback f, LABEL text) |
Knob * | DD::Image::Text_knob (Knob_Callback f, LABEL label, LABEL text) |
Knob * | DD::Image::Named_Text_knob (Knob_Callback f, LABEL name, LABEL text) |
Knob * | DD::Image::Newline (Knob_Callback f, LABEL label=" ") |
Knob * | DD::Image::Divider (Knob_Callback f, LABEL label=0) |
Knob * | DD::Image::Spacer (Knob_Callback f, int spaceInPixels) |
Knob * | DD::Image::VSpacer (Knob_Callback f, int spaceInPixels) |
Knob * | DD::Image::Icon_knob (Knob_Callback f, const char *icon) |
Knob * | DD::Image::Help_knob (Knob_Callback f, LABEL text) |
Knob * | DD::Image::Help_knob (Knob_Callback f, LABEL label, LABEL text) |
Knob * | DD::Image::Button (Knob_Callback f, NAME n, LABEL l=0) |
Knob * | DD::Image::Script_knob (Knob_Callback f, NAME command, NAME n, LABEL l=0) |
Knob * | DD::Image::PyScript_knob (Knob_Callback f, NAME command, NAME n, LABEL l=0) |
Knob * | DD::Image::CancelExecution_knob (Knob_Callback f, NAME n, LABEL l=0) |
Knob * | DD::Image::Menu_knob (Knob_Callback f, const char *menuName, NAME name, LABEL label=NULL) |
Knob * | DD::Image::Python_knob (Knob_Callback f, NAME command, NAME n, LABEL l=0) |
Knob * | DD::Image::Pulldown_knob (Knob_Callback f, ENUM_LABELS e, NAME n, LABEL l=0) |
Knob * | DD::Image::PyPulldown_knob (Knob_Callback f, ENUM_LABELS e, NAME n, LABEL l=0) |
Knob * | DD::Image::Multiline_String_knob (Knob_Callback f, const char **p, NAME n, LABEL l=0, int lines=5) |
Knob * | DD::Image::RangeStuff (Knob_Callback f, Knob *knob, const IRange &r) |
Knob * | DD::Image::Int_knob (Knob_Callback f, int *p, const IRange &r, NAME n, LABEL l=0) |
Knob * | DD::Image::Double_knob (Knob_Callback f, double *p, NAME n, LABEL l=0) |
Knob * | DD::Image::Double_knob (Knob_Callback f, double *p, const IRange &r, NAME n, LABEL l=0) |
Knob * | DD::Image::Float_knob (Knob_Callback f, double *p, const IRange &r, NAME n, LABEL l=0) |
Knob * | DD::Image::Float_knob (Knob_Callback f, float *p, const IRange &r, NAME n, LABEL l=0) |
Knob * | DD::Image::ChannelMask_knob (Knob_Callback f, ChannelSet *p, NAME n, LABEL l=0) |
Knob * | DD::Image::Input_ChannelMask_knob (Knob_Callback f, ChannelSet *p, int input, NAME n, LABEL l=0) |
Knob * | DD::Image::InputOnly_ChannelMask_knob (Knob_Callback f, ChannelSet *p, int input, NAME n, LABEL l=0) |
Knob * | DD::Image::WH_knob (Knob_Callback f, double *p, const IRange &r, NAME n, LABEL l=0) |
Knob * | DD::Image::Scale_knob (Knob_Callback f, double *p, NAME n, LABEL l=0) |
Knob * | DD::Image::Scale_knob (Knob_Callback f, double *p, const IRange &r, NAME n, LABEL l=0) |
Knob * | DD::Image::Color_knob (Knob_Callback f, float *p, const IRange &r, NAME n, LABEL l=0) |
Knob * | DD::Image::AColor_knob (Knob_Callback f, float *p, const IRange &r, NAME n, LABEL l=0) |
Knob * | DD::Image::List_knob (Knob_Callback f, std::vector< std::vector< std::string > > *p, NAME n, LABEL l=0) |
Knob * | DD::Image::Table_knob (Knob_Callback f, NAME n, LABEL l=0) |
Knob * | DD::Image::Range_knob (Knob_Callback f, double *p, int np, int ixp, NAME n, LABEL l=0, double min=0.0, double max=1.0) |
Knob * | DD::Image::Tab_knob (Knob_Callback f, int level, LABEL label) |
Knob * | DD::Image::Link_knob (Knob_Callback f, const char *linkto, NAME name, LABEL label=0) |
Knob * | DD::Image::Multiline_Eval_String_knob (Knob_Callback f, const char **p, NAME n, LABEL l=0, int lines=5) |
Knob * | DD::Image::Eval_String_knob (Knob_Callback f, const char **p, NAME n, LABEL l=0) |
Knob * | DD::Image::TextEditor_knob (Knob_Callback f, const char **p, NAME n, LABEL l=0, int lines=5) |
Knob * | DD::Image::Toolbox_knob (Knob_Callback f, int *p, bool expanded, ENUM_LABELS e, NAME n, LABEL l=0, bool changeOnClick=false) |
Knob * | DD::Image::GeoSelect_knob (DD::Image::Knob_Callback f, const char *name) |
Knob * | DD::Image::ControlPointCollection_knob (Knob_Callback f, NAME n, LABEL l=0) |
Knob * | DD::Image::MetaKeyFrame_knob (Knob_Callback f, NAME n, LABEL l=0, const DD::Image::MetaKeyFrameOptions &options=DD::Image::MetaKeyFrameOptions()) |
Knob * | DD::Image::TransformJack_knob (Knob_Callback f, NAME n) |
Knob * | DD::Image::Ripple_knob (Knob_Callback f, NAME n, LABEL l=0) |
Knob * | DD::Image::Disable_knob (Knob_Callback f, bool *p, NAME n, LABEL l=0) |
Knob * | DD::Image::FrameExtent_knob (Knob_Callback f, DD::Image::FrameExtentProviderI *prov, NAME n, LABEL l=0) |
Knob * | DD::Image::Radio_knob (Knob_Callback f, int *p, ENUM_LABELS e, NAME n, LABEL l=0) |
Knob creation functions.
Definition of callbacks for the Op::knob() method. These are wrappers around the actual callback, providing type-safe Knob calls.
#define CustomKnob0 | ( | knobclass, | |
cb, | |||
name | |||
) |
Use this macro in Op::knobs to create your own class of knob. Your class must have a constructor that takes (&cb, name) as arguemnts, and the store() function will not be called.
#define CustomKnob1 | ( | knobclass, | |
cb, | |||
pointer, | |||
name | |||
) |
Use this macro in Op::knobs to create your own class of knob. A constructor for your class must take (&cb, pointer, name) as arguments, and store(pointer,...) will be called if pointer is not zero.
#define CustomKnob2 | ( | knobclass, | |
cb, | |||
pointer, | |||
name, | |||
label | |||
) |
Use this macro in Op::knobs to create your own class of knob. A constructor for your class must take (&cb, pointer, name, label) as arguments (note label can be an arbitrary type), and store(pointer,...) will be called if pointer is not zero.
#define CustomKnobA | ( | knobclass, | |
cb, | |||
pointer, | |||
name, | |||
args | |||
) |
Use this macro in Op::knobs to create your own class of knob. The args is a parenthesized set of arguments to pass to the constructor, and store(pointer...) will be called if pointer is not zero. This is not type safe as nothing makes sure the type in pointer is correct because it is not passed to the constructor.