本文整理汇总了C++中LayerMRI::GetCurrentSurfaceRegion方法的典型用法代码示例。如果您正苦于以下问题:C++ LayerMRI::GetCurrentSurfaceRegion方法的具体用法?C++ LayerMRI::GetCurrentSurfaceRegion怎么用?C++ LayerMRI::GetCurrentSurfaceRegion使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LayerMRI
的用法示例。
在下文中一共展示了LayerMRI::GetCurrentSurfaceRegion方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SurfaceRegionRemoved
void RenderView3D::DeleteCurrentSelectRegion()
{
LayerMRI* mri = (LayerMRI*)MainWindow::GetMainWindow()->GetActiveLayer( "MRI" );
if ( mri )
{
SurfaceRegion* reg = mri->GetCurrentSurfaceRegion();
if ( mri->DeleteCurrentSurfaceRegion() )
{
emit SurfaceRegionRemoved(reg);
}
}
}
示例2: if
bool Interactor3DMeasure::ProcessMouseDownEvent( wxMouseEvent& event, RenderView* renderview )
{
RenderView3D* view = ( RenderView3D* )renderview;
bool ret = Interactor3D::ProcessMouseDownEvent( event, renderview );
if ( m_nAction == MM_SurfaceRegion && !Interactor3D::IsInAction() && event.LeftDown() )
{
if ( event.CmdDown() && !event.ShiftDown() )
{
if ( view->InitializeSelectRegion( event.GetX(), event.GetY() ) )
{
m_bSelectRegion = true;
return false; // do not pass down the event
}
}
else if ( event.CmdDown() && event.ShiftDown() )
{
LayerMRI* mri = (LayerMRI*)MainWindow::GetMainWindowPointer()->GetActiveLayer( "MRI" );
if ( mri && mri->GetCurrentSurfaceRegion() )
{
mri->GetCurrentSurfaceRegion()->ResetOutline();
m_bSelectRegion = true;
return false;
}
}
else if ( !event.CmdDown() && event.ShiftDown() )
{
LayerMRI* mri = (LayerMRI*)MainWindow::GetMainWindowPointer()->GetActiveLayer( "MRI" );
if ( mri && mri->GetCurrentSurfaceRegion() )
{
if ( mri->GetCurrentSurfaceRegion()->DeleteCell( view, event.GetX(), event.GetY() ) )
view->NeedRedraw();
return false;
}
}
}
return ret;
}