Open CASCADE Technology 6.5.2
Public Member Functions | Protected Member Functions | Protected Attributes
Aspect_PixMap Class Reference

This class allows the definition of a pixmap(bitmap)

#include <Aspect_PixMap.hxx>

Inheritance diagram for Aspect_PixMap:
Inheritance graph
[legend]

Public Member Functions

virtual void Destroy ()=0
 Destroy the pixmap

virtual Standard_Boolean Dump (const Standard_CString aFilename, const Standard_Real aGammaValue=1.0) const =0
 Dumps the Bitmap to an image file with
an optional gamma correction value
and returns TRUE if the dump occurs normaly.

virtual Quantity_Color PixelColor (const Standard_Integer theX, const Standard_Integer theY) const =0
 Returns the pixel color.

virtual Aspect_Handle PixmapID () const =0
 Returns the ID of the just created pixmap

void Size (Standard_Integer &aWidth, Standard_Integer &anHeight) const
 Returns the allocated pixmap's size in PIXEL

Standard_Integer Depth () const
 Returns the allocated pixmap's depth (planes number)

Protected Member Functions

 Aspect_PixMap (const Standard_Integer aWidth, const Standard_Integer anHeight, const Standard_Integer aDepth)
 Initializes the datas of a pixmap with a pixel size
<aWidth>,<anHeight> and depth.

Protected Attributes

Standard_Integer myWidth
Standard_Integer myHeight
Standard_Integer myDepth

Constructor & Destructor Documentation

Aspect_PixMap::Aspect_PixMap ( const Standard_Integer  aWidth,
const Standard_Integer  anHeight,
const Standard_Integer  aDepth 
) [protected]

Member Function Documentation

Standard_Integer Aspect_PixMap::Depth ( ) const
virtual void Aspect_PixMap::Destroy ( ) [pure virtual]

Implemented in Xw_PixMap, Image_PixMap, and WNT_PixMap.

virtual Standard_Boolean Aspect_PixMap::Dump ( const Standard_CString  aFilename,
const Standard_Real  aGammaValue = 1.0 
) const [pure virtual]

Implemented in Xw_PixMap, Image_PixMap, and WNT_PixMap.

virtual Quantity_Color Aspect_PixMap::PixelColor ( const Standard_Integer  theX,
const Standard_Integer  theY 
) const [pure virtual]

Implemented in Xw_PixMap, Image_PixMap, and WNT_PixMap.

virtual Aspect_Handle Aspect_PixMap::PixmapID ( ) const [pure virtual]

Implemented in Xw_PixMap, Image_PixMap, and WNT_PixMap.

void Aspect_PixMap::Size ( Standard_Integer aWidth,
Standard_Integer anHeight 
) const

Field Documentation


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines