// 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 _WNT_ImageManager_HeaderFile #define _WNT_ImageManager_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_WNT_ImageManager_HeaderFile #include #endif #ifndef _Standard_Address_HeaderFile #include #endif #ifndef _WNT_SequenceOfImage_HeaderFile #include #endif #ifndef _WNT_TypeOfImage_HeaderFile #include #endif #ifndef _Handle_WNT_Image_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _MMgt_TShared_HeaderFile #include #endif #ifndef _WNT_WindowPtr_HeaderFile #include #endif #ifndef _Standard_CString_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif #ifndef _Aspect_Handle_HeaderFile #include #endif class WNT_Image; class WNT_WDriver; class WNT_Window; //! This class defines image management
class WNT_ImageManager : public MMgt_TShared { public: //! Creates a class instance
Standard_EXPORT WNT_ImageManager(const WNT_WindowPtr& aWindow); //! Deletes all resources associated with the class instance.
Standard_EXPORT virtual void Destroy() ; ~WNT_ImageManager() { Destroy(); } //! Sets image format for output.
Standard_EXPORT void SetFormat(const WNT_TypeOfImage aFormat = WNT_TOI_XWD) ; //! Adds to manager.
Standard_EXPORT void Add(const Handle(WNT_Image)& anImage) ; //! returns Image stored at .
Standard_EXPORT Handle_WNT_Image Image(const Standard_Integer anIndex) ; //! Loads image from file and returns its index in the
//! sequence.
//! Warning: Returns 0 if loading was failed.
Standard_EXPORT Standard_Integer Load(const Standard_CString aFileName) ; //! Stories image to the file according to
//! class field. Returns True on success, otherwise
//! returns False.
Standard_EXPORT Standard_Boolean Save(const Standard_CString aFileName,const Standard_Integer aX,const Standard_Integer aY,const Standard_Integer aWidth,const Standard_Integer aHeight) const; //! Stories contents of the double buffer window pixmap.
//! See "Save" method.
Standard_EXPORT Standard_Boolean SaveBuffer(const Standard_CString aFileName,const Standard_Integer aX,const Standard_Integer aY,const Standard_Integer aWidth,const Standard_Integer aHeight) const; //! Displays the image according to the DoubleBuffer state
//! of the associated window.
Standard_EXPORT void Draw(const Standard_Integer anIndex,const Standard_Integer Xc,const Standard_Integer Yc,const Standard_Integer aWidth,const Standard_Integer aHeight,const Standard_Real anAngle = 0.0) ; //! Deletes an image at index .
Standard_EXPORT void Delete(const Standard_Integer anIndex) ; //! Places an image to the trash
Standard_EXPORT void Discard(const Standard_Integer anIndex) ; //! Scales the specified image.
Standard_EXPORT Aspect_Handle Scale(const Standard_Integer anIndex,const Standard_Real aScaleX,const Standard_Real aScaleY,const Standard_Boolean aReplace = Standard_False) ; //! Returns number of loaded images.
Standard_EXPORT Standard_Integer Size() const; //! Returns image handle.
Standard_EXPORT Aspect_Handle ImageHandle(const Standard_Integer anIndex) ; //! Returns image dimensions.
Standard_EXPORT void Dim(const Standard_Integer anIndex,Standard_Integer& aWidth,Standard_Integer& aHeight) ; //! Returns image's hash code.
Standard_EXPORT Standard_Integer HashCode(const Standard_Integer anIndex) ; //! Returns image's index.
Standard_EXPORT Standard_Integer Index(const Standard_Integer aHashCode) ; //! Returns hash code of the string.
Standard_EXPORT Standard_Integer StringHashCode(const Standard_CString aString) ; //! Creates new empty image and returns its index
Standard_EXPORT Standard_Integer Open(const Aspect_Handle aDC,const Standard_Integer aWidth,const Standard_Integer aHeight,const Standard_Integer aHashCode) ; friend class WNT_WDriver; friend class WNT_Window; DEFINE_STANDARD_RTTI(WNT_ImageManager) protected: Standard_Address myWindow; WNT_SequenceOfImage myImages; WNT_SequenceOfImage myTrash; WNT_TypeOfImage myFormat; Handle_WNT_Image myLastImage; Standard_Integer myLastIndex; private: }; // other Inline functions and methods (like "C++: function call" methods) #endif