MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / onMotionModelKnobValueChanged

Method onMotionModelKnobValueChanged

Gui/TrackerPanel.cpp:1882–1900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1880}
1881
1882void
1883TrackerPanel::onMotionModelKnobValueChanged(const TrackMarkerPtr &marker,
1884 int /*dimension*/,
1885 int reason)
1886{
1887 if (reason == eValueChangedReasonNatronGuiEdited) {
1888 return;
1889 }
1890 int row = getMarkerRow(marker);
1891 if (row == -1) {
1892 return;
1893 }
1894 ComboBox* w = dynamic_cast<ComboBox*>( _imp->view->cellWidget(row, COL_MOTION_MODEL) );
1895 if (!w) {
1896 return;
1897 }
1898 int index = marker->getMotionModelKnob()->getValue();
1899 w->setCurrentIndex_no_emit(index);
1900}
1901
1902void
1903TrackerPanel::onEnabledChanged(const TrackMarkerPtr& marker,

Callers

nothing calls this directly

Calls 4

cellWidgetMethod · 0.80
getMotionModelKnobMethod · 0.80
getValueMethod · 0.45

Tested by

no test coverage detected