// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _Xw_PixMap_HeaderFile #define _Xw_PixMap_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_Xw_PixMap_HeaderFile #include #endif #ifndef _Aspect_Handle_HeaderFile #include #endif #ifndef _Handle_Xw_Window_HeaderFile #include #endif #ifndef _Aspect_PixMap_HeaderFile #include #endif #ifndef _Handle_Aspect_Window_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Standard_CString_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif class Xw_Window; class Aspect_PixmapDefinitionError; class Aspect_PixmapError; class Aspect_Window; class Quantity_Color; //! This class defines a X11 pixmap
class Xw_PixMap : public Aspect_PixMap { public: //! Warning! When is NULL , the pixmap is created
//! with the SAME depth than the window
Standard_EXPORT Xw_PixMap(const Handle(Aspect_Window)& aWindow,const Standard_Integer aWidth,const Standard_Integer anHeight,const Standard_Integer aDepth = 0); //! Destroies the Pixmap
//! Trigger: Raises if Pixmap is not defined properly
Standard_EXPORT virtual void Destroy() ; //! Dumps the Bitmap to an image file with
//! an optional gamma correction value
//! and returns TRUE if the dump occurs normaly.
Standard_EXPORT virtual Standard_Boolean Dump(const Standard_CString aFilename,const Standard_Real aGammaValue = 1.0) const; //! Returns the pixel color.
Standard_EXPORT virtual Quantity_Color PixelColor(const Standard_Integer theX,const Standard_Integer theY) const; //! Returns the ID of the just created pixmap
Standard_EXPORT virtual Aspect_Handle PixmapID() const; DEFINE_STANDARD_RTTI(Xw_PixMap) protected: Aspect_Handle myPixmap; private: Standard_EXPORT Standard_Integer PreferedDepth(const Handle(Aspect_Window)& aWindow,const Standard_Integer aDepth) const; Handle_Xw_Window myWindow; }; // other Inline functions and methods (like "C++: function call" methods) #endif