本文整理汇总了C++中Geom::SetWakeActiveFlag方法的典型用法代码示例。如果您正苦于以下问题:C++ Geom::SetWakeActiveFlag方法的具体用法?C++ Geom::SetWakeActiveFlag怎么用?C++ Geom::SetWakeActiveFlag使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Geom
的用法示例。
在下文中一共展示了Geom::SetWakeActiveFlag方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CallBack
//.........这里部分代码省略.........
{
string newfile = m_ScreenMgr->GetSelectFileScreen()->FileChooser( "Select .msh file.", "*.msh" );
if ( newfile.compare( "" ) != 0 )
{
CfdMeshMgr.GetCfdSettingsPtr()->SetExportFileName( newfile, vsp::CFD_GMSH_FILE_NAME );
}
}
else if ( w == m_CfdMeshUI->srfButton )
{
string newfile = m_ScreenMgr->GetSelectFileScreen()->FileChooser( "Select .srf file.", "*.srf" );
if ( newfile.compare( "" ) != 0 )
{
CfdMeshMgr.GetCfdSettingsPtr()->SetExportFileName( newfile, vsp::CFD_SRF_FILE_NAME );
}
}
else if ( w == m_CfdMeshUI->tkeyButton )
{
string newfile = m_ScreenMgr->GetSelectFileScreen()->FileChooser( "Select .tkey file.", "*.tkey" );
if ( newfile.compare( "" ) != 0 )
{
CfdMeshMgr.GetCfdSettingsPtr()->SetExportFileName( newfile, vsp::CFD_TKEY_FILE_NAME );
}
}
else if ( w == m_CfdMeshUI->addWakeButton )
{
bool flag = !!( m_CfdMeshUI->addWakeButton->value() );
vector<string> geomVec = m_Vehicle->GetGeomVec();
string wakeGeomID = CfdMeshMgr.GetWakeGeomID();
Geom* g = m_Vehicle->FindGeom( wakeGeomID );
if ( g )
{
g->SetWakeActiveFlag( flag );
}
}
else if ( w == m_CfdMeshUI->farBoxGenButton )
{
CfdMeshMgr.GetCfdSettingsPtr()->SetFarCompFlag( false );
}
else if ( w == m_CfdMeshUI->farComponentGenButton )
{
CfdMeshMgr.GetCfdSettingsPtr()->SetFarCompFlag( true );
}
else if ( w == m_CfdMeshUI->farCenLocButton )
{
CfdMeshMgr.GetCfdSettingsPtr()->SetFarManLocFlag( false );
}
else if ( w == m_CfdMeshUI->farManLocButton )
{
CfdMeshMgr.GetCfdSettingsPtr()->SetFarManLocFlag( true );
}
else if ( w == m_CfdMeshUI->farRelSizeButton )
{
CfdMeshMgr.GetCfdSettingsPtr()->SetFarAbsSizeFlag( false );
}
else if ( w == m_CfdMeshUI->farAbsSizeButton )
{
CfdMeshMgr.GetCfdSettingsPtr()->SetFarAbsSizeFlag( true );
}
// else if ( w == m_CfdMeshUI->farXScaleAbsInput )
// {
// bool change = false;
//
// if ( !CfdMeshMgr.GetFarAbsSizeFlag() )
// {