|
Public Member Functions |
| Standard_EXPORT | WNT_ImageManager (const WNT_WindowPtr &aWindow) |
| | Creates a class instance
.
|
| virtual Standard_EXPORT void | Destroy () |
| | Deletes all resources associated with the class instance.
.
|
| | ~WNT_ImageManager () |
| Standard_EXPORT void | SetFormat (const WNT_TypeOfImage aFormat=WNT_TOI_XWD) |
| | Sets image format for output.
.
|
| Standard_EXPORT void | Add (const Handle(WNT_Image)&anImage) |
| | Adds <animage> to manager.
.
|
| Standard_EXPORT Handle_WNT_Image | Image (const Standard_Integer anIndex) |
| | returns Image stored at <anindex>.
|
| Standard_EXPORT Standard_Integer | Load (const Standard_CString aFileName) |
| | Loads image from file and returns its index in the
sequence.
Warning: Returns 0 if loading was failed.
.
|
| 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 image to the file according to <myformat>
class field. Returns True on success, otherwise
returns False.
.
|
| 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 |
| | Stories contents of the double buffer window pixmap.
See "Save" method.
.
|
| 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) |
| | Displays the image according to the DoubleBuffer state
of the associated window.
.
|
| Standard_EXPORT void | Delete (const Standard_Integer anIndex) |
| | Deletes an image at index <anindex>.
.
|
| Standard_EXPORT void | Discard (const Standard_Integer anIndex) |
| | Places an image to the trash
.
|
| Standard_EXPORT Aspect_Handle | Scale (const Standard_Integer anIndex, const Standard_Real aScaleX, const Standard_Real aScaleY, const Standard_Boolean aReplace=Standard_False) |
| | Scales the specified image.
.
|
| Standard_EXPORT Standard_Integer | Size () const |
| | Returns number of loaded images.
.
|
| Standard_EXPORT Aspect_Handle | ImageHandle (const Standard_Integer anIndex) |
| | Returns image handle.
.
|
| Standard_EXPORT void | Dim (const Standard_Integer anIndex, Standard_Integer &aWidth, Standard_Integer &aHeight) |
| | Returns image dimensions.
.
|
| Standard_EXPORT Standard_Integer | HashCode (const Standard_Integer anIndex) |
| | Returns image's hash code.
.
|
| Standard_EXPORT Standard_Integer | Index (const Standard_Integer aHashCode) |
| | Returns image's index.
.
|
| Standard_EXPORT Standard_Integer | StringHashCode (const Standard_CString aString) |
| | Returns hash code of the string.
.
|
| Standard_EXPORT Standard_Integer | Open (const Aspect_Handle aDC, const Standard_Integer aWidth, const Standard_Integer aHeight, const Standard_Integer aHashCode) |
| | Creates new empty image and returns its index
.
|
| Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const |
Protected Attributes |
| Standard_Address | myWindow |
| WNT_SequenceOfImage | myImages |
| WNT_SequenceOfImage | myTrash |
| WNT_TypeOfImage | myFormat |
| Handle_WNT_Image | myLastImage |
| Standard_Integer | myLastIndex |