Beispiel #1
0
bool LayerSurface::LoadSurfaceFromFile()
{
  if ( m_surfaceSource )
  {
    delete m_surfaceSource;
  }

  m_surfaceSource = new FSSurface( m_volumeRef ? m_volumeRef->GetSourceVolume() : NULL );
  if ( !m_surfaceSource->MRISRead( m_sFilename,
                                   m_sVectorFilename,
                                   m_sPatchFilename,
                                   m_sTargetFilename,
                                   m_bLoadAll )
     )
  {
    return false;
  }

  InitializeSurface();
  InitializeActors();

  GetProperty()->SetSurfaceSource( m_surfaceSource );

  return true;
}
Beispiel #2
0
 void VulkanWindow::Initialize()
 {
     InitializeSurface();
     InitializeSwapchain();
     InitializeImageViews();
     InitializeDepthStencil();
     InitializeFrameBuffers();
 }