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

This class defines a X11 pixmap

#include <Xw_PixMap.hxx>

Inheritance diagram for Xw_PixMap:
Inheritance graph
[legend]

Public Member Functions

 Xw_PixMap (const Handle< Aspect_Window > &aWindow, const Standard_Integer aWidth, const Standard_Integer anHeight, const Standard_Integer aDepth=0)
 Warning! When <aDepth> is NULL , the pixmap is created
with the SAME depth than the window <aWindow>

virtual void Destroy ()
 Destroies the Pixmap
Trigger: Raises if Pixmap is not defined properly

virtual Standard_Boolean Dump (const Standard_CString aFilename, const Standard_Real aGammaValue=1.0) const
 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
 Returns the pixel color.

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

Protected Attributes

Aspect_Handle myPixmap

Constructor & Destructor Documentation

Xw_PixMap::Xw_PixMap ( const Handle< Aspect_Window > &  aWindow,
const Standard_Integer  aWidth,
const Standard_Integer  anHeight,
const Standard_Integer  aDepth = 0 
)

Member Function Documentation

virtual void Xw_PixMap::Destroy ( ) [virtual]

Implements Aspect_PixMap.

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

Implements Aspect_PixMap.

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

Implements Aspect_PixMap.

virtual Aspect_Handle Xw_PixMap::PixmapID ( ) const [virtual]

Implements Aspect_PixMap.


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