本文整理汇总了C++中ViewportPtr::Refresh方法的典型用法代码示例。如果您正苦于以下问题:C++ ViewportPtr::Refresh方法的具体用法?C++ ViewportPtr::Refresh怎么用?C++ ViewportPtr::Refresh使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ViewportPtr
的用法示例。
在下文中一共展示了ViewportPtr::Refresh方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Apply
void StudyPropertiesDlg::Apply()
{
// set properties based on state of controls in General page
m_studyLayer->SetName(m_txtLayerName->GetValue().c_str());
m_studyLayer->SetDescription(m_txtLayerDescription->GetValue().c_str());
m_studyLayer->SetAuthours(m_txtAuthours->GetValue().c_str());
// set properties based on state of controls in Projection page
StudyControllerPtr studyController = m_studyLayer->GetStudyController();
studyController->SetDatum(m_cboDatum->GetValue().wc_str());
studyController->SetProjection(m_cboProjection->GetValue().wc_str());
ViewportPtr viewport = App::Inst().GetViewport();
// set properties based on state of controls in Symbology page
viewport->SetBackgroundColour( Colour( m_colourBackground->GetColour() ) );
if(m_cboTerrainResolution->GetValue() == _T("256"))
viewport->SetMaxTerrainResolution(256);
else if(m_cboTerrainResolution->GetValue() == _T("512"))
viewport->SetMaxTerrainResolution(512);
else if(m_cboTerrainResolution->GetValue() == _T("1024"))
viewport->SetMaxTerrainResolution(1024);
else if(m_cboTerrainResolution->GetValue() == _T("2048"))
viewport->SetMaxTerrainResolution(2048);
else if(m_cboTerrainResolution->GetValue() == _T("4096"))
viewport->SetMaxTerrainResolution(4096);
else if(m_cboTerrainResolution->GetValue() == _T("8196"))
viewport->SetMaxTerrainResolution(8196);
App::Inst().SetSaveStatus( SESSION_NOT_SAVED );
viewport->Refresh( false );
App::Inst().GetLayerTreeController()->SetName(m_studyLayer, m_studyLayer->GetName());
}