mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-15 04:04:07 +08:00
82 lines
2.8 KiB
Plaintext
Executable File
82 lines
2.8 KiB
Plaintext
Executable File
-- Created on: 1993-03-23
|
|
-- Created by: BBL
|
|
-- Copyright (c) 1993-1999 Matra Datavision
|
|
-- Copyright (c) 1999-2012 OPEN CASCADE SAS
|
|
--
|
|
-- The content of this file is subject to the Open CASCADE Technology Public
|
|
-- License Version 6.5 (the "License"). You may not use the content of this file
|
|
-- except in compliance with the License. Please obtain a copy of the License
|
|
-- at http://www.opencascade.org and read it completely before using this file.
|
|
--
|
|
-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
|
|
-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
|
|
--
|
|
-- The Original Code and all software distributed under the License is
|
|
-- distributed on an "AS IS" basis, without warranty of any kind, and the
|
|
-- Initial Developer hereby disclaims all such warranties, including without
|
|
-- limitation, any warranties of merchantability, fitness for a particular
|
|
-- purpose or non-infringement. Please see the License for the specific terms
|
|
-- and conditions governing the rights and limitations under the License.
|
|
|
|
-- Modified: 02-06-98 : FMN ; Suppression appel Clear (deja fait dans ALienData)
|
|
|
|
class AidaAlienImage from AlienImage inherits AlienUserImage from AlienImage
|
|
|
|
---Version: 0.0
|
|
|
|
---Purpose: This class defines an Aida Alien image ( BYTEMAPS ).
|
|
---Keywords:
|
|
---Warning:
|
|
---References:
|
|
|
|
uses
|
|
File from OSD,
|
|
ColorMap from Aspect,
|
|
Image from Image,
|
|
DitheringMethod from Image,
|
|
AidaAlienData from AlienImage
|
|
|
|
is
|
|
Create returns mutable AidaAlienImage from AlienImage;
|
|
|
|
Clear( me : in out mutable) ;
|
|
---Level: Public
|
|
---Purpose: Frees memory allocated by AidaAlienImage
|
|
|
|
ToImage( me : in immutable )
|
|
returns mutable Image from Image ;
|
|
---Level: Public
|
|
---Purpose : convert a AidaAlienImage object to a Image object.
|
|
|
|
FromImage( me : in out mutable ; anImage : in Image from Image ) ;
|
|
---Level: Public
|
|
---Purpose : convert a Image object to a AidaAlienImage object.
|
|
|
|
Read ( me : in out mutable; afile : in out File from OSD )
|
|
returns Boolean from Standard ;
|
|
---Level: Public
|
|
---Purpose: Read content of a AidaAlienImage object from a file .
|
|
-- Returns True if file is a Aida file .
|
|
|
|
Write( me : in immutable; afile : in out File from OSD )
|
|
returns Boolean from Standard ;
|
|
---Level: Public
|
|
---Purpose: Write content of a AidaAlienImage object to a file .
|
|
|
|
SetColorImageDitheringMethod( me : in out mutable ;
|
|
aMethod : DitheringMethod from Image;
|
|
aColorMap : ColorMap from Aspect ) ;
|
|
|
|
---Level: Public
|
|
---Purpose: Set the ImageDitheringMethod and the ColorMap when
|
|
-- FromImage is called with a ColorImage .
|
|
-- Aida BYTEMAPS file handle only PseudoColorImage .
|
|
-- Default value is DM_NearestColor,
|
|
-- ColorCubeColorMap( 40, 5,1, 8,6, 3,54 )
|
|
|
|
fields
|
|
myData : AidaAlienData from AlienImage;
|
|
|
|
end ;
|
|
|