TuttleOFX
1
|
#include <WarpOverlayInteract.hpp>
Public Member Functions | |
WarpOverlayInteract (OfxInteractHandle handle, OFX::ImageEffect *effect) | |
bool | bezier (const point2< double > _p1, const point2< double > _p2) |
bool | draw (const OFX::DrawArgs &args) |
the function called to draw in the interact | |
bool | penDown (const OFX::PenArgs &args) |
the function called to handle pen down events in the interact | |
bool | penUp (const OFX::PenArgs &args) |
the function called to handle pen up events in the interact | |
bool | penMotion (const OFX::PenArgs &args) |
the function called to handle pen motion in the interact | |
bool | keyDown (const OFX::KeyArgs &args) |
the function called to handle key down events in the interact | |
Private Types | |
typedef double | Scalar |
Private Attributes | |
WarpPlugin * | _plugin |
interact::InteractInfos | _infos |
interact::InteractScene | _interactScene |
std::vector< point2< double > > | _tgtPointsBezierIn |
std::vector< point2< double > > | _tgtPointsBezierOut |
Definition at line 17 of file WarpOverlayInteract.hpp.
typedef double tuttle::plugin::warp::WarpOverlayInteract::Scalar [private] |
Definition at line 19 of file WarpOverlayInteract.hpp.
tuttle::plugin::warp::WarpOverlayInteract::WarpOverlayInteract | ( | OfxInteractHandle | handle, |
OFX::ImageEffect * | effect | ||
) |
Definition at line 25 of file WarpOverlayInteract.cpp.
References tuttle::plugin::warp::WarpPlugin::_clipSrc, OFX::Interact::_effect, _infos, _interactScene, tuttle::plugin::warp::WarpPlugin::_paramOverlayIn, tuttle::plugin::warp::WarpPlugin::_paramOverlayInColor, tuttle::plugin::warp::WarpPlugin::_paramOverlayOut, tuttle::plugin::warp::WarpPlugin::_paramOverlayOutColor, tuttle::plugin::warp::WarpPlugin::_paramPointIn, tuttle::plugin::warp::WarpPlugin::_paramPointOut, tuttle::plugin::warp::WarpPlugin::_paramPointTgtIn, tuttle::plugin::warp::WarpPlugin::_paramPointTgtOut, _plugin, tuttle::plugin::warp::kMaxNbPoints, tuttle::plugin::interact::InteractScene::push_back(), and tuttle::plugin::interact::AndActiveFunctor< negate >::push_back().
bool tuttle::plugin::warp::WarpOverlayInteract::bezier | ( | const point2< double > | _p1, |
const point2< double > | _p2 | ||
) |
bool tuttle::plugin::warp::WarpOverlayInteract::draw | ( | const OFX::DrawArgs & | args | ) | [virtual] |
the function called to draw in the interact
Reimplemented from OFX::InteractI.
Definition at line 69 of file WarpOverlayInteract.cpp.
References tuttle::plugin::warp::WarpPlugin::_clipSrc, _interactScene, tuttle::plugin::warp::WarpPlugin::_paramCurveBegin, tuttle::plugin::warp::WarpPlugin::_paramNbPoints, tuttle::plugin::warp::WarpPlugin::_paramNbPointsBezier, tuttle::plugin::warp::WarpPlugin::_paramOverlay, tuttle::plugin::warp::WarpPlugin::_paramOverlayTgtIn, tuttle::plugin::warp::WarpPlugin::_paramOverlayTgtInColor, tuttle::plugin::warp::WarpPlugin::_paramOverlayTgtOut, tuttle::plugin::warp::WarpPlugin::_paramOverlayTgtOutColor, tuttle::plugin::warp::WarpPlugin::_paramPointIn, tuttle::plugin::warp::WarpPlugin::_paramPointOut, tuttle::plugin::warp::WarpPlugin::_paramPointTgtIn, tuttle::plugin::warp::WarpPlugin::_paramPointTgtOut, _plugin, tuttle::plugin::interact::InteractScene::draw(), tuttle::plugin::warp::bezier::drawBezier(), OFX::IntParam::getValue(), OFX::RGBParam::getValue(), OFX::BooleanParam::getValue(), OFX::Clip::isConnected(), tuttle::plugin::warp::longDown, OfxPointD::x, and OfxPointD::y.
bool tuttle::plugin::warp::WarpOverlayInteract::keyDown | ( | const OFX::KeyArgs & | args | ) | [virtual] |
the function called to handle key down events in the interact
returns true if the interact trapped the action in some sense. This will block the action being passed to any other interact that may share the viewer.
Reimplemented from OFX::InteractI.
Definition at line 241 of file WarpOverlayInteract.cpp.
References OFX::KeyArgs::keySymbol, kOfxKey_space, TUTTLE_INFO, and TUTTLE_LOG_DEBUG.
bool tuttle::plugin::warp::WarpOverlayInteract::penDown | ( | const OFX::PenArgs & | args | ) | [virtual] |
the function called to handle pen down events in the interact
returns true if the interact trapped the action in some sense. This will block the action being passed to any other interact that may share the viewer.
Reimplemented from OFX::InteractI.
Definition at line 178 of file WarpOverlayInteract.cpp.
References _interactScene, tuttle::plugin::warp::WarpPlugin::_paramMethod, tuttle::plugin::warp::WarpPlugin::_paramNbPoints, tuttle::plugin::warp::WarpPlugin::_paramPointIn, tuttle::plugin::warp::WarpPlugin::_paramPointOut, tuttle::plugin::warp::WarpPlugin::_paramPointTgtIn, tuttle::plugin::warp::WarpPlugin::_paramPointTgtOut, _plugin, tuttle::plugin::warp::eParamMethodCreation, tuttle::plugin::warp::eParamMethodDelete, tuttle::plugin::warp::eParamMethodMove, OFX::IntParam::getValue(), OFX::ChoiceParam::getValue(), tuttle::plugin::warp::kMaxNbPoints, tuttle::plugin::warp::longDown, tuttle::plugin::interact::InteractScene::penDown(), OFX::PenArgs::penPosition, OFX::IntParam::setValue(), tuttle::plugin::warp::seuil, OfxPointD::x, and OfxPointD::y.
bool tuttle::plugin::warp::WarpOverlayInteract::penMotion | ( | const OFX::PenArgs & | args | ) | [virtual] |
the function called to handle pen motion in the interact
returns true if the interact trapped the action in some sense. This will block the action being passed to any other interact that may share the viewer.
Reimplemented from OFX::InteractI.
Definition at line 142 of file WarpOverlayInteract.cpp.
References _interactScene, tuttle::plugin::warp::WarpPlugin::_paramMethod, tuttle::plugin::warp::WarpPlugin::_paramNbPoints, tuttle::plugin::warp::WarpPlugin::_paramPointIn, tuttle::plugin::warp::WarpPlugin::_paramPointOut, tuttle::plugin::warp::WarpPlugin::_paramPointTgtIn, tuttle::plugin::warp::WarpPlugin::_paramPointTgtOut, _plugin, tuttle::plugin::warp::eParamMethodCreation, tuttle::plugin::warp::eParamMethodMove, OFX::IntParam::getValue(), OFX::ChoiceParam::getValue(), tuttle::plugin::warp::kMaxNbPoints, tuttle::plugin::warp::longDown, tuttle::plugin::ofxToGil(), tuttle::plugin::interact::InteractScene::penMotion(), OFX::PenArgs::penPosition, tuttle::plugin::interact::InteractScene::penUp(), OfxPointD::x, and OfxPointD::y.
bool tuttle::plugin::warp::WarpOverlayInteract::penUp | ( | const OFX::PenArgs & | args | ) | [virtual] |
the function called to handle pen up events in the interact
returns true if the interact trapped the action in some sense. This will block the action being passed to any other interact that may share the viewer.
Reimplemented from OFX::InteractI.
Definition at line 250 of file WarpOverlayInteract.cpp.
References _interactScene, tuttle::plugin::warp::WarpPlugin::_paramMethod, tuttle::plugin::warp::WarpPlugin::_paramNbPoints, _plugin, tuttle::plugin::warp::eParamMethodCreation, tuttle::plugin::warp::eParamMethodMove, OFX::IntParam::getValue(), OFX::ChoiceParam::getValue(), tuttle::plugin::warp::kMaxNbPoints, tuttle::plugin::warp::longDown, and tuttle::plugin::interact::InteractScene::penUp().
Definition at line 23 of file WarpOverlayInteract.hpp.
Referenced by WarpOverlayInteract().
Definition at line 24 of file WarpOverlayInteract.hpp.
Referenced by draw(), penDown(), penMotion(), penUp(), and WarpOverlayInteract().
Definition at line 21 of file WarpOverlayInteract.hpp.
Referenced by draw(), penDown(), penMotion(), penUp(), and WarpOverlayInteract().
std::vector< point2<double> > tuttle::plugin::warp::WarpOverlayInteract::_tgtPointsBezierIn [private] |
Definition at line 25 of file WarpOverlayInteract.hpp.
std::vector< point2<double> > tuttle::plugin::warp::WarpOverlayInteract::_tgtPointsBezierOut [private] |
Definition at line 26 of file WarpOverlayInteract.hpp.