Add rtengine::ProcEvent for de-fishing
This commit is contained in:
@@ -38,6 +38,11 @@ Distortion::Distortion (): FoldableToolPanel(this, TOOL_NAME, M("TP_DISTORTION_L
|
||||
EvDistortionDefish = mapper->newEvent(TRANSFORM, "HISTORY_MSG_DISTORTION_DEFISH");
|
||||
EvDistortionDefishVoid = mapper->newEvent(M_VOID, "HISTORY_MSG_DISTORTION_DEFISH");
|
||||
|
||||
EvDistortionDefishFocalLength = mapper->newEvent(TRANSFORM, "HISTORY_MSG_DISTORTION_DEFISH_FOCAL");
|
||||
EvDistortionDefishFocalLengthVoid = mapper->newEvent(M_VOID, "HISTORY_MSG_DISTORTION_DEFISH_FOCAL");
|
||||
|
||||
setCamBasedEventsActive();
|
||||
|
||||
rlistener = nullptr;
|
||||
autoDistor = Gtk::manage (new Gtk::Button (M("GENERAL_AUTO")));
|
||||
autoDistor->set_image (*Gtk::manage (new RTImage ("distortion-auto-small", Gtk::ICON_SIZE_BUTTON)));
|
||||
@@ -158,6 +163,18 @@ void Distortion::defishChanged()
|
||||
}
|
||||
}
|
||||
|
||||
void Distortion::setCamBasedEventsActive(bool active)
|
||||
{
|
||||
if (active) {
|
||||
event_distortion_defish = &EvDistortionDefish;
|
||||
event_distortion_defish_focal_length = &EvDistortionDefishFocalLength;
|
||||
}
|
||||
else {
|
||||
event_distortion_defish = &EvDistortionDefishVoid;
|
||||
event_distortion_defish_focal_length = &EvDistortionDefishFocalLengthVoid;
|
||||
}
|
||||
}
|
||||
|
||||
void Distortion::setAdjusterBehavior (bool vadd, bool focal_length_add)
|
||||
{
|
||||
distor->setAddMode(vadd);
|
||||
|
Reference in New Issue
Block a user