Exemplo n.º 1
0
//-------------------------------------------------------------------------
//  Save
//-------------------------------------------------------------------------
bool CPeak::Save   ( CSerializer & oSerialBuf ) const
{
  bool bSuccess;
  bSuccess = oSerialBuf.InsertCompactObj( dMaxIntensity );
  bSuccess = bSuccess && oSerialBuf.InsertCompactObj( dMinIntensity );
  bSuccess = bSuccess && oSerialBuf.InsertCompactObj( PixelsSorted );
  bSuccess = bSuccess && oSerialBuf.InsertCompactVector( vPixelList );
  DEBUG_ASSERT( bSuccess, "CPeak::Save failed\n");
  return bSuccess;
}
Exemplo n.º 2
0
//--------------------------------------------------
//  Save 
//--------------------------------------------------
bool CDetectorPeak::Save   ( CSerializer & oSerialBuf ) const
{
  bool bSuccess;
  bSuccess = CPeak::Save( oSerialBuf );
  bSuccess = bSuccess && oSerialBuf.InsertCompactObj( bInitialized );
  bSuccess = bSuccess && oSerialBuf.InsertCompactObj( oBBox );

  DEBUG_ASSERT( bSuccess, "CDetectorPeak::Save failed\n");
  return bSuccess;
}
Exemplo n.º 3
0
 //------------------------------------------------------------------------
 //
 //  Save
 //
 //------------------------------------------------------------------------
 Bool ReconstructionSetup::Save  ( CSerializer   & oSerialBuf ) const
 {
   Bool bSuccess;
   bSuccess = oSerialBuf.InsertCompactObj                 ( FPeakFilter );
   bSuccess = bSuccess && oSerialBuf.InsertCompactObj     ( FPeakIntensityAccept );
   bSuccess = bSuccess && oSerialBuf.InsertCompactVector  ( oFZOrientationList );
   
   bSuccess = bSuccess && oExpSetup.Save                  ( oSerialBuf );
   bSuccess = bSuccess && oReconstructionLayer.Save       ( oSerialBuf );
   return bSuccess;
 }