0022627: Change OCCT memory management defaults
[occt.git] / src / AlienImage / AlienImage_AidaAlienImage.cxx
CommitLineData
7fd59977 1
2#include <stdio.h>
3
4#include <AlienImage_XAlienImage.hxx>
5#include <OSD_Protection.hxx>
6#include <OSD_File.hxx>
7#include <AlienImage_AidaAlienImage.ixx>
8
9AlienImage_AidaAlienImage::AlienImage_AidaAlienImage()
10
11{ // il faut faire un new si mydata est du type HANDLE
12 myData = new AlienImage_AidaAlienData() ;
13}
14
15void AlienImage_AidaAlienImage::Clear()
16
17{ myData->Clear() ; }
18
19Standard_Boolean AlienImage_AidaAlienImage::Write( OSD_File& file ) const
20
21{ return( myData->Write( file ) ) ; }
22
23Standard_Boolean AlienImage_AidaAlienImage::Read( OSD_File& file )
24
25{ return( myData->Read( file ) ) ; }
26
27Handle(Image_Image) AlienImage_AidaAlienImage::ToImage() const
28
29{ return( myData->ToImage() ) ; }
30
31void AlienImage_AidaAlienImage::FromImage( const Handle(Image_Image)& anImage )
32
33{ myData->FromImage( anImage ) ; }
34
35
36void AlienImage_AidaAlienImage::SetColorImageDitheringMethod(
37 const Image_DitheringMethod aMethod ,
38 const Handle(Aspect_ColorMap)& aColorMap )
39
40{ myData->SetColorImageDitheringMethod( aMethod, aColorMap ) ; }
41