TuttleOFX
1
|
HistogramKeyer plugin. More...
#include <HistogramKeyerPlugin.hpp>
HistogramKeyer plugin.
Definition at line 31 of file HistogramKeyerPlugin.hpp.
Definition at line 35 of file HistogramKeyerPlugin.hpp.
tuttle::plugin::histogramKeyer::HistogramKeyerPlugin::HistogramKeyerPlugin | ( | OfxImageEffectHandle | handle | ) |
Definition at line 15 of file HistogramKeyerPlugin.cpp.
References _isCleaned, _isHistogramRefresh, _isNbStepChanged, _overlayDataCount, _paramButtonAppendToSelectionHSL, _paramButtonAppendToSelectionRGB, _paramClampCurveValues, _paramColorHSLSelection, _paramColorRGBSelection, _paramDisplaySelection, _paramDisplayTypeSelection, _paramGlobalDisplaySelection, _paramMutliplierB, _paramMutliplierG, _paramMutliplierH, _paramMutliplierL, _paramMutliplierR, _paramMutliplierS, _paramNbStepSelection, _paramOutputSettingSelection, _paramOverlayBSelection, _paramOverlayGSelection, _paramOverlayHSelection, _paramOverlayLSelection, _paramOverlayRSelection, _paramOverlaySSelection, _paramRefreshOverlaySelection, _paramResetAll, _paramReverseMaskSelection, _paramSelectionFromCurve, _paramSelectionMode, _paramSelectionMultiplierSelection, _resetHSL, _resetRGB, changedClip(), changedParam(), OFX::ParamSet::fetchBooleanParam(), OFX::ParamSet::fetchChoiceParam(), OFX::ParamSet::fetchDoubleParam(), OFX::ParamSet::fetchIntParam(), OFX::ParamSet::fetchParametricParam(), OFX::ParamSet::fetchPushButtonParam(), tuttle::plugin::histogramKeyer::kBoolBlue, tuttle::plugin::histogramKeyer::kBoolClampValues, tuttle::plugin::histogramKeyer::kBoolGreen, tuttle::plugin::histogramKeyer::kBoolHue, tuttle::plugin::histogramKeyer::kBoolLightness, tuttle::plugin::histogramKeyer::kBoolRed, tuttle::plugin::histogramKeyer::kBoolReverseMask, tuttle::plugin::histogramKeyer::kBoolSaturation, tuttle::plugin::histogramKeyer::kBoolSelection, tuttle::plugin::histogramKeyer::kButtonAppendSelectionToCurveHSL, tuttle::plugin::histogramKeyer::kButtonAppendSelectionToCurveRGB, tuttle::plugin::histogramKeyer::kButtonRefreshOverlay, tuttle::plugin::histogramKeyer::kButtonResetAll, tuttle::plugin::histogramKeyer::kButtonResetHSL, tuttle::plugin::histogramKeyer::kButtonResetRGB, tuttle::plugin::histogramKeyer::kGlobalDisplay, tuttle::plugin::histogramKeyer::kHistoDisplayListParamLabel, tuttle::plugin::histogramKeyer::kMultiplierBlue, tuttle::plugin::histogramKeyer::kMultiplierGreen, tuttle::plugin::histogramKeyer::kMultiplierHue, tuttle::plugin::histogramKeyer::kMultiplierLightness, tuttle::plugin::histogramKeyer::kMultiplierRed, tuttle::plugin::histogramKeyer::kMultiplierSaturation, tuttle::plugin::histogramKeyer::knbStepRange, kOfxImageEffectSimpleSourceClipName, tuttle::plugin::histogramKeyer::kOutputListParamLabel, tuttle::plugin::histogramKeyer::kParamHSLColorSelection, tuttle::plugin::histogramKeyer::kParamRGBColorSelection, tuttle::plugin::histogramKeyer::kprecisionCurveFromSelection, tuttle::plugin::histogramKeyer::kSelectionModeListParamLabel, tuttle::plugin::histogramKeyer::kselectionMultiplier, and OFX::ImageEffect::timeLineGetTime().
void tuttle::plugin::histogramKeyer::HistogramKeyerPlugin::addRefOverlayData | ( | ) |
Overlay data.
Definition at line 776 of file HistogramKeyerPlugin.cpp.
References tuttle::plugin::ImageEffectGilPlugin::_clipSrc, _overlayData, _overlayDataCount, _paramNbStepSelection, _paramSelectionFromCurve, OFX::Clip::getPixelRodSize(), and OFX::IntParam::getValue().
Referenced by tuttle::plugin::histogramKeyer::HistogramKeyerOverlay::HistogramKeyerOverlay(), tuttle::plugin::histogramKeyer::HSLOverlay::HSLOverlay(), and tuttle::plugin::histogramKeyer::RGBOverlay::RGBOverlay().
void tuttle::plugin::histogramKeyer::HistogramKeyerPlugin::changedClip | ( | const OFX::InstanceChangedArgs & | args, |
const std::string & | clipName | ||
) | [virtual] |
called when a clip has just been changed in some way (a rewire maybe)
Reimplemented from OFX::ImageEffect.
Definition at line 729 of file HistogramKeyerPlugin.cpp.
References tuttle::plugin::histogramKeyer::OverlayData::_isDataInvalid, getOverlayData(), hasOverlayData(), kOfxImageEffectSimpleSourceClipName, and OFX::ImageEffect::redrawOverlays().
Referenced by changedParam(), and HistogramKeyerPlugin().
void tuttle::plugin::histogramKeyer::HistogramKeyerPlugin::changedParam | ( | const OFX::InstanceChangedArgs & | args, |
const std::string & | paramName | ||
) | [virtual] |
called when a param has just had its value changed
Reimplemented from OFX::ImageEffect.
Definition at line 111 of file HistogramKeyerPlugin.cpp.
References tuttle::plugin::histogramKeyer::HistogramBufferData::_bufferBlue, tuttle::plugin::histogramKeyer::HistogramBufferData::_bufferGreen, tuttle::plugin::histogramKeyer::HistogramBufferData::_bufferHue, tuttle::plugin::histogramKeyer::HistogramBufferData::_bufferLightness, tuttle::plugin::histogramKeyer::HistogramBufferData::_bufferRed, tuttle::plugin::histogramKeyer::HistogramBufferData::_bufferSaturation, tuttle::plugin::ImageEffectGilPlugin::_clipSrc, tuttle::plugin::histogramKeyer::OverlayData::_curveFromSelection, tuttle::plugin::histogramKeyer::OverlayData::_isDataInvalid, _paramColorHSLSelection, _paramColorRGBSelection, _paramNbStepSelection, _paramOverlayBSelection, _paramOverlayGSelection, _paramOverlayHSelection, _paramOverlayLSelection, _paramOverlayRSelection, _paramOverlaySSelection, _paramSelectionFromCurve, tuttle::plugin::histogramKeyer::OverlayData::_vNbStepCurveFromSelection, OFX::ParametricParam::addControlPoint(), changedClip(), tuttle::plugin::histogramKeyer::OverlayData::clearSelection(), tuttle::plugin::histogramKeyer::OverlayData::computeCurveFromSelectionData(), OFX::ParametricParam::deleteControlPoint(), OFX::ParametricParam::getNControlPoints(), OFX::ParametricParam::getNthControlPoints(), getOverlayData(), OFX::IntParam::getValue(), OFX::BooleanParam::getValue(), hasOverlayData(), tuttle::plugin::histogramKeyer::kButtonAppendSelectionToCurveHSL, tuttle::plugin::histogramKeyer::kButtonAppendSelectionToCurveRGB, tuttle::plugin::histogramKeyer::kButtonRefreshOverlay, tuttle::plugin::histogramKeyer::kButtonResetAll, tuttle::plugin::histogramKeyer::kButtonResetHSL, tuttle::plugin::histogramKeyer::kButtonResetRGB, tuttle::plugin::histogramKeyer::kButtonResetSelection, tuttle::plugin::histogramKeyer::kButtonSelectionToCurveHSL, tuttle::plugin::histogramKeyer::kButtonSelectionToCurveRGB, tuttle::plugin::histogramKeyer::knbStepRange, OFX::Clip::name(), tuttle::plugin::histogramKeyer::nbCurvesHSL, tuttle::plugin::histogramKeyer::nbCurvesRGB, OFX::InstanceChangedArgs::renderScale, tuttle::plugin::histogramKeyer::OverlayData::setNbStep(), OFX::ParametricParam::setNthControlPoints(), and OFX::InstanceChangedArgs::time.
Referenced by HistogramKeyerPlugin().
OverlayData & tuttle::plugin::histogramKeyer::HistogramKeyerPlugin::getOverlayData | ( | ) |
Definition at line 800 of file HistogramKeyerPlugin.cpp.
References _overlayData.
Referenced by changedClip(), changedParam(), tuttle::plugin::histogramKeyer::HSLOverlay::getOverlayData(), tuttle::plugin::histogramKeyer::RGBOverlay::getOverlayData(), tuttle::plugin::histogramKeyer::HistogramKeyerOverlay::getOverlayData(), and render().
const OverlayData & tuttle::plugin::histogramKeyer::HistogramKeyerPlugin::getOverlayData | ( | ) | const |
Definition at line 805 of file HistogramKeyerPlugin.cpp.
References _overlayData.
HistogramKeyerProcessParams< HistogramKeyerPlugin::Scalar > tuttle::plugin::histogramKeyer::HistogramKeyerPlugin::getProcessParams | ( | const OfxTime | time, |
const OfxPointD & | renderScale = OFX::kNoRenderScale |
||
) | const |
Definition at line 79 of file HistogramKeyerPlugin.cpp.
References tuttle::plugin::histogramKeyer::HistogramKeyerProcessParams< Scalar >::_boolClampCurveValues, tuttle::plugin::histogramKeyer::HistogramKeyerProcessParams< Scalar >::_boolHSL, tuttle::plugin::histogramKeyer::HistogramKeyerProcessParams< Scalar >::_boolReverseMask, tuttle::plugin::histogramKeyer::HistogramKeyerProcessParams< Scalar >::_boolRGB, tuttle::plugin::histogramKeyer::HistogramKeyerProcessParams< Scalar >::_multiplierHSL, tuttle::plugin::histogramKeyer::HistogramKeyerProcessParams< Scalar >::_multiplierRGB, _paramClampCurveValues, tuttle::plugin::histogramKeyer::HistogramKeyerProcessParams< Scalar >::_paramColorHSL, _paramColorHSLSelection, tuttle::plugin::histogramKeyer::HistogramKeyerProcessParams< Scalar >::_paramColorRGB, _paramColorRGBSelection, _paramMutliplierB, _paramMutliplierG, _paramMutliplierH, _paramMutliplierL, _paramMutliplierR, _paramMutliplierS, tuttle::plugin::histogramKeyer::HistogramKeyerProcessParams< Scalar >::_paramOutputSetting, _paramOutputSettingSelection, _paramOverlayBSelection, _paramOverlayGSelection, _paramOverlayHSelection, _paramOverlayLSelection, _paramOverlayRSelection, _paramOverlaySSelection, and _paramReverseMaskSelection.
bool tuttle::plugin::histogramKeyer::HistogramKeyerPlugin::hasOverlayData | ( | ) | const |
Definition at line 795 of file HistogramKeyerPlugin.cpp.
References _overlayDataCount.
Referenced by changedClip(), and changedParam().
bool tuttle::plugin::histogramKeyer::HistogramKeyerPlugin::isIdentity | ( | const OFX::RenderArguments & | args, |
OFX::Clip *& | identityClip, | ||
double & | identityTime | ||
) | [virtual] |
client is identity function, returns the clip and time for the identity function
If the effect would do no processing for the given param set and render arguments, then this function should return true and set the identityClip pointer to point to the clip that is the identity and identityTime to be the time at which to access the clip for the identity operation.
Reimplemented from OFX::ImageEffect.
Definition at line 744 of file HistogramKeyerPlugin.cpp.
void tuttle::plugin::histogramKeyer::HistogramKeyerPlugin::releaseOverlayData | ( | ) |
Definition at line 786 of file HistogramKeyerPlugin.cpp.
References _overlayData, and _overlayDataCount.
Referenced by tuttle::plugin::histogramKeyer::HistogramKeyerOverlay::~HistogramKeyerOverlay(), tuttle::plugin::histogramKeyer::HSLOverlay::~HSLOverlay(), and tuttle::plugin::histogramKeyer::RGBOverlay::~RGBOverlay().
void tuttle::plugin::histogramKeyer::HistogramKeyerPlugin::render | ( | const OFX::RenderArguments & | args | ) | [virtual] |
The overridden render function.
[in] | args | Rendering parameters |
Implements OFX::ImageEffect.
Definition at line 757 of file HistogramKeyerPlugin.cpp.
References _isRendering, OFX::getImageEffectHostDescription(), getOverlayData(), tuttle::plugin::histogramKeyer::OverlayData::isCurrentTimeModified(), OFX::ImageEffect::redrawOverlays(), and OFX::RenderArguments::time.
Definition at line 36 of file HistogramKeyerPlugin.hpp.
Referenced by HistogramKeyerPlugin().
Definition at line 38 of file HistogramKeyerPlugin.hpp.
Referenced by HistogramKeyerPlugin().
Definition at line 37 of file HistogramKeyerPlugin.hpp.
Referenced by HistogramKeyerPlugin().
Definition at line 85 of file HistogramKeyerPlugin.hpp.
Referenced by tuttle::plugin::histogramKeyer::HistogramKeyerOverlay::draw(), and render().
boost::scoped_ptr<OverlayData> tuttle::plugin::histogramKeyer::HistogramKeyerPlugin::_overlayData |
Definition at line 88 of file HistogramKeyerPlugin.hpp.
Referenced by addRefOverlayData(), getOverlayData(), and releaseOverlayData().
Definition at line 89 of file HistogramKeyerPlugin.hpp.
Referenced by addRefOverlayData(), hasOverlayData(), HistogramKeyerPlugin(), and releaseOverlayData().
OFX::PushButtonParam* tuttle::plugin::histogramKeyer::HistogramKeyerPlugin::_paramButtonAppendToSelectionHSL |
Definition at line 82 of file HistogramKeyerPlugin.hpp.
Referenced by HistogramKeyerPlugin().
OFX::PushButtonParam* tuttle::plugin::histogramKeyer::HistogramKeyerPlugin::_paramButtonAppendToSelectionRGB |
Definition at line 83 of file HistogramKeyerPlugin.hpp.
Referenced by HistogramKeyerPlugin().
Definition at line 77 of file HistogramKeyerPlugin.hpp.
Referenced by getProcessParams(), and HistogramKeyerPlugin().
Definition at line 42 of file HistogramKeyerPlugin.hpp.
Referenced by changedParam(), getProcessParams(), and HistogramKeyerPlugin().
Definition at line 43 of file HistogramKeyerPlugin.hpp.
Referenced by changedParam(), getProcessParams(), and HistogramKeyerPlugin().
Definition at line 70 of file HistogramKeyerPlugin.hpp.
Referenced by tuttle::plugin::histogramKeyer::HistogramKeyerOverlay::draw(), HistogramKeyerPlugin(), and tuttle::plugin::histogramKeyer::HistogramKeyerOverlay::penDown().
Definition at line 67 of file HistogramKeyerPlugin.hpp.
Referenced by tuttle::plugin::histogramKeyer::HSLOverlay::draw(), tuttle::plugin::histogramKeyer::RGBOverlay::draw(), and HistogramKeyerPlugin().
OFX::BooleanParam* tuttle::plugin::histogramKeyer::HistogramKeyerPlugin::_paramGlobalDisplaySelection |
Definition at line 41 of file HistogramKeyerPlugin.hpp.
Referenced by tuttle::plugin::histogramKeyer::HistogramKeyerOverlay::draw(), and HistogramKeyerPlugin().
Definition at line 52 of file HistogramKeyerPlugin.hpp.
Referenced by getProcessParams(), and HistogramKeyerPlugin().
Definition at line 49 of file HistogramKeyerPlugin.hpp.
Referenced by getProcessParams(), and HistogramKeyerPlugin().
Definition at line 57 of file HistogramKeyerPlugin.hpp.
Referenced by getProcessParams(), and HistogramKeyerPlugin().
Definition at line 63 of file HistogramKeyerPlugin.hpp.
Referenced by getProcessParams(), and HistogramKeyerPlugin().
Definition at line 46 of file HistogramKeyerPlugin.hpp.
Referenced by getProcessParams(), and HistogramKeyerPlugin().
Definition at line 60 of file HistogramKeyerPlugin.hpp.
Referenced by getProcessParams(), and HistogramKeyerPlugin().
Definition at line 74 of file HistogramKeyerPlugin.hpp.
Referenced by addRefOverlayData(), changedParam(), and HistogramKeyerPlugin().
OFX::ChoiceParam* tuttle::plugin::histogramKeyer::HistogramKeyerPlugin::_paramOutputSettingSelection |
Definition at line 79 of file HistogramKeyerPlugin.hpp.
Referenced by getProcessParams(), and HistogramKeyerPlugin().
Definition at line 51 of file HistogramKeyerPlugin.hpp.
Referenced by changedParam(), tuttle::plugin::histogramKeyer::RGBOverlay::draw(), tuttle::plugin::histogramKeyer::RGBOverlay::getOnlyChannelSelectedRGB(), getProcessParams(), and HistogramKeyerPlugin().
Definition at line 48 of file HistogramKeyerPlugin.hpp.
Referenced by changedParam(), tuttle::plugin::histogramKeyer::RGBOverlay::draw(), tuttle::plugin::histogramKeyer::RGBOverlay::getOnlyChannelSelectedRGB(), getProcessParams(), and HistogramKeyerPlugin().
Definition at line 56 of file HistogramKeyerPlugin.hpp.
Referenced by changedParam(), tuttle::plugin::histogramKeyer::HSLOverlay::draw(), tuttle::plugin::histogramKeyer::HSLOverlay::getOnlyChannelSelectedHSL(), getProcessParams(), and HistogramKeyerPlugin().
Definition at line 62 of file HistogramKeyerPlugin.hpp.
Referenced by changedParam(), tuttle::plugin::histogramKeyer::HSLOverlay::draw(), tuttle::plugin::histogramKeyer::HSLOverlay::getOnlyChannelSelectedHSL(), getProcessParams(), and HistogramKeyerPlugin().
Definition at line 45 of file HistogramKeyerPlugin.hpp.
Referenced by changedParam(), tuttle::plugin::histogramKeyer::RGBOverlay::draw(), tuttle::plugin::histogramKeyer::RGBOverlay::getOnlyChannelSelectedRGB(), getProcessParams(), and HistogramKeyerPlugin().
Definition at line 59 of file HistogramKeyerPlugin.hpp.
Referenced by changedParam(), tuttle::plugin::histogramKeyer::HSLOverlay::draw(), tuttle::plugin::histogramKeyer::HSLOverlay::getOnlyChannelSelectedHSL(), getProcessParams(), and HistogramKeyerPlugin().
OFX::PushButtonParam* tuttle::plugin::histogramKeyer::HistogramKeyerPlugin::_paramRefreshOverlaySelection |
Definition at line 76 of file HistogramKeyerPlugin.hpp.
Referenced by HistogramKeyerPlugin().
Definition at line 68 of file HistogramKeyerPlugin.hpp.
Referenced by HistogramKeyerPlugin().
Definition at line 80 of file HistogramKeyerPlugin.hpp.
Referenced by getProcessParams(), and HistogramKeyerPlugin().
Definition at line 71 of file HistogramKeyerPlugin.hpp.
Referenced by addRefOverlayData(), changedParam(), and HistogramKeyerPlugin().
OFX::DoubleParam* tuttle::plugin::histogramKeyer::HistogramKeyerPlugin::_paramSelectionMultiplierSelection |
Definition at line 75 of file HistogramKeyerPlugin.hpp.
Referenced by tuttle::plugin::histogramKeyer::HSLOverlay::draw(), tuttle::plugin::histogramKeyer::RGBOverlay::draw(), and HistogramKeyerPlugin().
Definition at line 65 of file HistogramKeyerPlugin.hpp.
Referenced by HistogramKeyerPlugin().
Definition at line 54 of file HistogramKeyerPlugin.hpp.
Referenced by HistogramKeyerPlugin().