本文整理汇总了C++中KisConfig::ocioLutPath方法的典型用法代码示例。如果您正苦于以下问题:C++ KisConfig::ocioLutPath方法的具体用法?C++ KisConfig::ocioLutPath怎么用?C++ KisConfig::ocioLutPath使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KisConfig
的用法示例。
在下文中一共展示了KisConfig::ocioLutPath方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: QDockWidget
LutDockerDock::LutDockerDock()
: QDockWidget(i18n("LUT Management"))
, m_canvas(0)
, m_displayFilter(0)
, m_draggingSlider(false)
{
setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea);
m_page = new QWidget(this);
setupUi(m_page);
setWidget(m_page);
KisConfig cfg;
m_chkUseOcio->setChecked(cfg.useOcio());
connect(m_chkUseOcio, SIGNAL(toggled(bool)), SLOT(updateWidgets()));
m_chkUseOcioEnvironment->setChecked(cfg.useOcioEnvironmentVariable());
connect(m_chkUseOcioEnvironment, SIGNAL(toggled(bool)), SLOT(updateWidgets()));
m_txtConfigurationPath->setText(cfg.ocioConfigurationPath());
m_bnSelectConfigurationFile->setToolTip(i18n("Select custom configuration file."));
connect(m_bnSelectConfigurationFile,SIGNAL(clicked()), SLOT(selectOcioConfiguration()));
m_txtLut->setText(cfg.ocioLutPath());
m_bnSelectLut->setToolTip(i18n("Select LUT file"));
connect(m_bnSelectLut, SIGNAL(clicked()), SLOT(selectLut()));
connect(m_bnClearLut, SIGNAL(clicked()), SLOT(clearLut()));
// See http://groups.google.com/group/ocio-dev/browse_thread/thread/ec95c5f54a74af65 -- maybe need to be reinstated
// when people ask for it.
m_lblLut->hide();
m_txtLut->hide();
m_bnSelectLut->hide();
m_bnClearLut->hide();
connect(m_cmbDisplayDevice, SIGNAL(currentIndexChanged(int)), SLOT(refillViewCombobox()));
connect(m_cmbDisplayDevice, SIGNAL(currentIndexChanged(int)), SLOT(updateDisplaySettings()));
m_exposureDoubleWidget->setToolTip(i18n("Select the exposure (stops) for HDR images."));
m_exposureDoubleWidget->setRange(-10, 10);
m_exposureDoubleWidget->setPrecision(1);
m_exposureDoubleWidget->setValue(0.0);
m_exposureDoubleWidget->setSingleStep(0.25);
m_exposureDoubleWidget->setPageStep(1);
connect(m_exposureDoubleWidget, SIGNAL(valueChanged(double)), SLOT(exposureValueChanged(double)));
connect(m_exposureDoubleWidget, SIGNAL(sliderPressed()), SLOT(exposureSliderPressed()));
connect(m_exposureDoubleWidget, SIGNAL(sliderReleased()), SLOT(exposureSliderReleased()));
// Gamma needs to be exponential (gamma *= 1.1f, gamma /= 1.1f as steps)
m_gammaDoubleWidget->setToolTip(i18n("Select the amount of gamma modification for display. This does not affect the pixels of your image."));
m_gammaDoubleWidget->setRange(0.1, 5);
m_gammaDoubleWidget->setPrecision(2);
m_gammaDoubleWidget->setValue(1.0);
m_gammaDoubleWidget->setSingleStep(0.1);
m_gammaDoubleWidget->setPageStep(1);
connect(m_gammaDoubleWidget, SIGNAL(valueChanged(double)), SLOT(gammaValueChanged(double)));
connect(m_gammaDoubleWidget, SIGNAL(sliderPressed()), SLOT(gammaSliderPressed()));
connect(m_gammaDoubleWidget, SIGNAL(sliderReleased()), SLOT(gammaSliderReleased()));
connect(m_cmbInputColorSpace, SIGNAL(currentIndexChanged(int)), SLOT(updateDisplaySettings()));
connect(m_cmbDisplayDevice, SIGNAL(currentIndexChanged(int)), SLOT(updateDisplaySettings()));
connect(m_cmbView, SIGNAL(currentIndexChanged(int)), SLOT(updateDisplaySettings()));
connect(m_cmbComponents, SIGNAL(currentIndexChanged(int)), SLOT(updateDisplaySettings()));
m_draggingSlider = false;
connect(KisConfigNotifier::instance(), SIGNAL(configChanged()), SLOT(slotImageColorSpaceChanged()));
m_displayFilter = new OcioDisplayFilter;
resetOcioConfiguration();
}
示例2: QDockWidget
LutDockerDock::LutDockerDock()
: QDockWidget(i18n("LUT Management"))
, m_canvas(0)
, m_draggingSlider(false)
{
m_exposureCompressor.reset(new KisSignalCompressorWithParam<qreal>(40, boost::bind(&LutDockerDock::setCurrentExposureImpl, this, _1)));
m_gammaCompressor.reset(new KisSignalCompressorWithParam<qreal>(40, boost::bind(&LutDockerDock::setCurrentGammaImpl, this, _1)));
m_page = new QWidget(this);
setupUi(m_page);
setWidget(m_page);
KisConfig cfg;
m_chkUseOcio->setChecked(cfg.useOcio());
connect(m_chkUseOcio, SIGNAL(toggled(bool)), SLOT(updateDisplaySettings()));
connect(m_colorManagement, SIGNAL(currentIndexChanged(int)), SLOT(slotColorManagementModeChanged()));
m_txtConfigurationPath->setText(cfg.ocioConfigurationPath());
m_bnSelectConfigurationFile->setToolTip(i18n("Select custom configuration file."));
connect(m_bnSelectConfigurationFile,SIGNAL(clicked()), SLOT(selectOcioConfiguration()));
m_txtLut->setText(cfg.ocioLutPath());
m_bnSelectLut->setToolTip(i18n("Select LUT file"));
connect(m_bnSelectLut, SIGNAL(clicked()), SLOT(selectLut()));
connect(m_bnClearLut, SIGNAL(clicked()), SLOT(clearLut()));
// See http://groups.google.com/group/ocio-dev/browse_thread/thread/ec95c5f54a74af65 -- maybe need to be reinstated
// when people ask for it.
m_lblLut->hide();
m_txtLut->hide();
m_bnSelectLut->hide();
m_bnClearLut->hide();
connect(m_cmbDisplayDevice, SIGNAL(currentIndexChanged(int)), SLOT(refillViewCombobox()));
m_exposureDoubleWidget->setToolTip(i18n("Select the exposure (stops) for HDR images."));
m_exposureDoubleWidget->setRange(-10, 10);
m_exposureDoubleWidget->setPrecision(1);
m_exposureDoubleWidget->setValue(0.0);
m_exposureDoubleWidget->setSingleStep(0.25);
m_exposureDoubleWidget->setPageStep(1);
connect(m_exposureDoubleWidget, SIGNAL(valueChanged(double)), SLOT(exposureValueChanged(double)));
connect(m_exposureDoubleWidget, SIGNAL(sliderPressed()), SLOT(exposureSliderPressed()));
connect(m_exposureDoubleWidget, SIGNAL(sliderReleased()), SLOT(exposureSliderReleased()));
// Gamma needs to be exponential (gamma *= 1.1f, gamma /= 1.1f as steps)
m_gammaDoubleWidget->setToolTip(i18n("Select the amount of gamma modification for display. This does not affect the pixels of your image."));
m_gammaDoubleWidget->setRange(0.1, 5);
m_gammaDoubleWidget->setPrecision(2);
m_gammaDoubleWidget->setValue(1.0);
m_gammaDoubleWidget->setSingleStep(0.1);
m_gammaDoubleWidget->setPageStep(1);
connect(m_gammaDoubleWidget, SIGNAL(valueChanged(double)), SLOT(gammaValueChanged(double)));
connect(m_gammaDoubleWidget, SIGNAL(sliderPressed()), SLOT(gammaSliderPressed()));
connect(m_gammaDoubleWidget, SIGNAL(sliderReleased()), SLOT(gammaSliderReleased()));
m_bwPointChooser = new BlackWhitePointChooser(this);
connect(m_bwPointChooser, SIGNAL(sigBlackPointChanged(qreal)), SLOT(updateDisplaySettings()));
connect(m_bwPointChooser, SIGNAL(sigWhitePointChanged(qreal)), SLOT(updateDisplaySettings()));
connect(m_btnConvertCurrentColor, SIGNAL(toggled(bool)), SLOT(updateDisplaySettings()));
connect(m_btmShowBWConfiguration, SIGNAL(clicked()), SLOT(slotShowBWConfiguration()));
slotUpdateIcons();
connect(m_cmbInputColorSpace, SIGNAL(currentIndexChanged(int)), SLOT(updateDisplaySettings()));
connect(m_cmbDisplayDevice, SIGNAL(currentIndexChanged(int)), SLOT(updateDisplaySettings()));
connect(m_cmbView, SIGNAL(currentIndexChanged(int)), SLOT(updateDisplaySettings()));
connect(m_cmbComponents, SIGNAL(currentIndexChanged(int)), SLOT(updateDisplaySettings()));
m_draggingSlider = false;
connect(KisConfigNotifier::instance(), SIGNAL(configChanged()), SLOT(resetOcioConfiguration()));
m_displayFilter = 0;
resetOcioConfiguration();
}