本文整理汇总了C++中LayerMRI::SetFileName方法的典型用法代码示例。如果您正苦于以下问题:C++ LayerMRI::SetFileName方法的具体用法?C++ LayerMRI::SetFileName怎么用?C++ LayerMRI::SetFileName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LayerMRI
的用法示例。
在下文中一共展示了LayerMRI::SetFileName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: MakeAllLayers
void LayerFCD::MakeAllLayers()
{
if (true)
{
LayerMRI* mri = m_mri_norm;
if (m_layerSource)
{
mri->SetRefVolume(m_layerSource->GetSourceVolume());
}
mri->SetName(GetName() + "_norm");
mri->SetFileName(m_fcd->mri_norm->fname);
if ( mri->CreateFromMRIData((void*)m_fcd->mri_norm) )
{
if (!m_layerSource)
{
m_layerSource = mri;
InitializeData();
}
}
else
{
cerr << "Failed to create norm layer" << endl;
delete mri;
m_mri_norm = NULL;
}
}
if (m_fcd->mri_flair)
{
LayerMRI* mri = m_mri_flair;
if (m_layerSource)
{
mri->SetRefVolume(m_layerSource->GetSourceVolume());
}
mri->SetName(GetName() + "_flair");
mri->SetFileName(m_fcd->mri_flair->fname);
if ( !mri->CreateFromMRIData((void*)m_fcd->mri_flair) )
{
delete m_mri_flair;
m_mri_flair = NULL;
}
}
else
{
delete m_mri_flair;
m_mri_flair = NULL;
}
if (m_fcd->mri_t2)
{
LayerMRI* mri = m_mri_t2;
if (m_layerSource)
{
mri->SetRefVolume(m_layerSource->GetSourceVolume());
}
mri->SetName(GetName() + "_t2");
mri->SetFileName(m_fcd->mri_t2->fname);
if ( !mri->CreateFromMRIData((void*)m_fcd->mri_t2) )
{
delete m_mri_t2;
m_mri_t2 = NULL;
}
}
else
{
delete m_mri_t2;
m_mri_t2 = NULL;
}
if (m_fcd->mri_aseg)
{
LayerMRI* mri = m_mri_aseg;
if (m_layerSource)
{
mri->SetRefVolume(m_layerSource->GetSourceVolume());
}
mri->SetName(GetName() + "_aseg");
mri->SetFileName(m_fcd->mri_aseg->fname);
if ( mri->CreateFromMRIData((void*)m_fcd->mri_aseg) )
{
mri->GetProperty()->SetColorMap(LayerPropertyMRI::LUT);
mri->SetVisible(false);
}
else
{
delete m_mri_aseg;
m_mri_aseg = NULL;
}
}
else
{
delete m_mri_aseg;
m_mri_aseg = NULL;
}
if (m_fcd->mri_thickness_difference)
{
LayerMRI* mri = m_mri_difference;
if (m_layerSource)
{
//.........这里部分代码省略.........