本文整理汇总了C++中LayerSurface::CreateFromMRIS方法的典型用法代码示例。如果您正苦于以下问题:C++ LayerSurface::CreateFromMRIS方法的具体用法?C++ LayerSurface::CreateFromMRIS怎么用?C++ LayerSurface::CreateFromMRIS使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LayerSurface
的用法示例。
在下文中一共展示了LayerSurface::CreateFromMRIS方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: MakeAllLayers
//.........这里部分代码省略.........
if (m_fcd->mri_thickness_difference)
{
LayerMRI* mri = m_mri_difference;
if (m_layerSource)
{
mri->SetRefVolume(m_layerSource->GetSourceVolume());
}
mri->SetName(GetName() + "_thickness_difference");
// mri->SetFileName(m_fcd->mri_thickness_increase->fname);
if ( mri->CreateFromMRIData((void*)m_fcd->mri_thickness_difference) )
{
mri->GetProperty()->SetColorMap(LayerPropertyMRI::Heat);
}
else
{
delete m_mri_difference;
m_mri_difference = NULL;
}
}
else
{
delete m_mri_difference;
m_mri_difference = NULL;
}
if (m_fcd->mris_lh)
{
LayerSurface* surf = m_surf_lh;
if (m_layerSource)
{
surf->SetRefVolume(m_layerSource);
}
surf->SetName(GetName() + "_lh");
if (!surf->CreateFromMRIS((void*)m_fcd->mris_lh))
{
delete m_surf_lh;
m_surf_lh = NULL;
}
}
else
{
delete m_surf_lh;
m_surf_lh = NULL;
}
if (m_fcd->mris_lh_pial)
{
LayerSurface* surf = m_surf_lh_pial;
if (m_layerSource)
{
surf->SetRefVolume(m_layerSource);
}
surf->SetName(GetName() + "_lh.pial");
if (!surf->CreateFromMRIS((void*)m_fcd->mris_lh_pial))
{
delete m_surf_lh_pial;
m_surf_lh_pial = NULL;
}
else
{
surf->GetProperty()->SetEdgeColor(Qt::green);
}
}
else
{
delete m_surf_lh_pial;