summaryrefslogtreecommitdiff
path: root/src/AlienImage/AlienImage_SunRFAlienImage.cdl
blob: ab9e2b6e23e19f0d3f7a88cf1b2e2b40d8e1f080 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
--
-- File:	AlienImage_SunRFAlienImage.cdl
-- Created:	23/03/93
-- Author:	BBL
-- Modified:	02-06-98 : FMN ; Suppression appel Clear (deja fait dans ALienData)
--
---Copyright:	Matravision 1993
--

class SunRFAlienImage from AlienImage inherits AlienUserImage from AlienImage

	
	---Purpose: Defines a SunRF Alien image, i.e. an image using the
-- image format for SUN workstations.

uses
	File 			from OSD,
	AsciiString 		from TCollection,
	ColorImage 		from Image,
	PseudoColorImage 	from Image,
	Image			from Image,
	SunRFAlienData 		from AlienImage,
	SUNRFFormat	 	from AlienImage

is
	Create returns mutable SunRFAlienImage from AlienImage;
---Purpose: Constructs an empty SunRF alien image.
    
	Clear( me : in out mutable) ;
	---Level: Public
	---Purpose: Frees memory allocated by SunRFAlienImage

	ToImage( me : in immutable ) 
	  returns mutable Image from Image ;
	---Level: Public
	  ---Purpose : Converts a SunRFAlienImage object to a Image object.

	FromImage( me : in out mutable ; anImage : in Image from Image ) ;
	---Level: Public
	  ---Purpose : Converts an Image object to a SunRFAlienImage object.

	Read ( me : in out mutable; afile : in out File from OSD )
	  returns Boolean from Standard ;
	---Level: Public
	  ---Purpose: Reads the content of a  SunRFAlienImage object from a file
	  --          Returns True if file is a XWD file .

	Write( me : in immutable; afile : in out File from OSD )
	  returns Boolean from Standard ;
	  ---Purpose: Writes content of a  SunRFAlienImage object to a file

	SetFormat( me : in out mutable ;
		   aFormat : SUNRFFormat from AlienImage);
	  ---Purpose: Sets the  SUN Raster File Format for Write method.

	Format( me : in  immutable )
	    returns SUNRFFormat from AlienImage ;
	  ---Purpose: Returns the SUN Raster File Format .

fields
	myData : SunRFAlienData from AlienImage ;

end ;