本文整理汇总了C++中Geom::GetCfdMeshMainSourceVec方法的典型用法代码示例。如果您正苦于以下问题:C++ Geom::GetCfdMeshMainSourceVec方法的具体用法?C++ Geom::GetCfdMeshMainSourceVec怎么用?C++ Geom::GetCfdMeshMainSourceVec使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Geom
的用法示例。
在下文中一共展示了Geom::GetCfdMeshMainSourceVec方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Update
//.........这里部分代码省略.........
m_U1Slider.Update( ps->m_ULoc1.GetID() );
m_W1Slider.Update( ps->m_WLoc1.GetID() );
m_U2Slider.Update( ps->m_ULoc2.GetID() );
m_W2Slider.Update( ps->m_WLoc2.GetID() );
m_CfdMeshUI->EditSourceTitle->label( "Edit Box Source" );
m_Length2Slider.Deactivate();
m_Radius2Slider.Deactivate();
}
}
else
{
m_LengthSlider.Deactivate();
m_RadiusSlider.Deactivate();
m_Length2Slider.Deactivate();
m_Radius2Slider.Deactivate();
m_U1Slider.Deactivate();
m_W1Slider.Deactivate();
m_U2Slider.Deactivate();
m_W2Slider.Deactivate();
m_CfdMeshUI->SourceNameInput->deactivate();
m_CfdMeshUI->EditSourceTitle->label( "" );
}
//==== Load Up Source Browser ====//
int currSourceID = -1;
m_CfdMeshUI->sourceBrowser->clear();
if( currGeom )
{
vector< BaseSource* > sVec = currGeom->GetCfdMeshMainSourceVec();
for ( i = 0 ; i < ( int )sVec.size() ; i++ )
{
if ( source == sVec[i] )
{
currSourceID = i;
}
m_CfdMeshUI->sourceBrowser->add( sVec[i]->GetName().c_str() );
}
if ( currSourceID >= 0 && currSourceID < ( int )sVec.size() )
{
m_CfdMeshUI->sourceBrowser->select( currSourceID + 1 );
}
int nmain = currGeom->GetNumMainSurfs();
for ( i = 0; i < nmain; i++ )
{
char str[256];
sprintf( str, "Surf_%d", i );
m_CfdMeshUI->surfChoice->add( str );
}
int currMainSurfID = CfdMeshMgr.GetCurrMainSurfIndx();
if( currMainSurfID >= 0 && currMainSurfID < nmain )
{
m_CfdMeshUI->surfChoice->value( currMainSurfID );
}
}
m_DrawMeshButton.Update( CfdMeshMgr.GetCfdSettingsPtr()->m_DrawMeshFlag.GetID() );
m_DrawSourceButton.Update( CfdMeshMgr.GetCfdSettingsPtr()->m_DrawSourceFlag.GetID() );
m_DrawFarButton.Update( CfdMeshMgr.GetCfdSettingsPtr()->m_DrawFarFlag.GetID() );
m_DrawFarPreButton.Update( CfdMeshMgr.GetCfdSettingsPtr()->m_DrawFarPreFlag.GetID() );
m_DrawBadButton.Update( CfdMeshMgr.GetCfdSettingsPtr()->m_DrawBadFlag.GetID() );