本文整理汇总了C++中TSceneProperties::getFieldGuideAspectRatio方法的典型用法代码示例。如果您正苦于以下问题:C++ TSceneProperties::getFieldGuideAspectRatio方法的具体用法?C++ TSceneProperties::getFieldGuideAspectRatio怎么用?C++ TSceneProperties::getFieldGuideAspectRatio使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TSceneProperties
的用法示例。
在下文中一共展示了TSceneProperties::getFieldGuideAspectRatio方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: update
void SceneSettingsPopup::update()
{
TSceneProperties *sprop = getProperties();
QString str;
m_frameRateFld->setValue(sprop->getOutputProperties()->getFrameRate());
TPixel32 col1, col2;
Preferences::instance()->getChessboardColors(col1, col2);
m_bgColorFld->setChessboardColors(col1, col2);
TPixel bgColor = sprop->getBgColor();
m_bgColorFld->setColor(bgColor);
m_fieldGuideFld->setValue(sprop->getFieldGuideSize());
m_aspectRatioFld->setValue(sprop->getFieldGuideAspectRatio());
UnitParameters::setFieldGuideAspectRatio(sprop->getFieldGuideAspectRatio());
m_fullcolorSubsamplingFld->setValue(sprop->getFullcolorSubsampling());
if (m_tlvSubsamplingFld)
m_tlvSubsamplingFld->setValue(sprop->getTlvSubsampling());
int markerDistance = 0, markerOffset = 0;
sprop->getMarkers(markerDistance, markerOffset);
m_markerIntervalFld->setValue(markerDistance);
m_startFrameFld->setValue(markerOffset + 1);
}
示例2: onFieldGuideAspectRatioEditingFinished
void SceneSettingsPopup::onFieldGuideAspectRatioEditingFinished()
{
TSceneProperties *sprop = getProperties();
double fieldGuideAspectRatio = sprop->getFieldGuideAspectRatio();
double aspectRatioFld = m_aspectRatioFld->text().toDouble();
if (fieldGuideAspectRatio == aspectRatioFld)
return;
sprop->setFieldGuideAspectRatio(aspectRatioFld);
TApp::instance()->getCurrentScene()->notifySceneChanged();
TApp::instance()->getCurrentXsheet()->notifyXsheetChanged();
UnitParameters::setFieldGuideAspectRatio(m_aspectRatioFld->text().toDouble());
}