Open CASCADE Technology 7.8.0
|
Compressed pixmap data definition. It is defined independently from Image_PixMap, which defines only uncompressed formats. More...
#include <Image_CompressedPixMap.hxx>
Public Member Functions | |
Image_Format | BaseFormat () const |
Return base (uncompressed) pixel format. | |
void | SetBaseFormat (Image_Format theFormat) |
Set base (uncompressed) pixel format. | |
Image_CompressedFormat | CompressedFormat () const |
Return compressed format. | |
void | SetCompressedFormat (Image_CompressedFormat theFormat) |
Set compressed format. | |
const Handle< NCollection_Buffer > & | FaceData () const |
Return raw (compressed) data. | |
void | SetFaceData (const Handle< NCollection_Buffer > &theBuffer) |
Set raw (compressed) data. | |
const NCollection_Array1< Standard_Integer > & | MipMaps () const |
Return Array of mipmap sizes, including base level. | |
NCollection_Array1< Standard_Integer > & | ChangeMipMaps () |
Return Array of mipmap sizes, including base level. | |
Standard_Boolean | IsCompleteMipMapSet () const |
Return TRUE if complete mip map level set (up to 1x1 resolution). | |
void | SetCompleteMipMapSet (Standard_Boolean theIsComplete) |
Set if complete mip map level set (up to 1x1 resolution). | |
Standard_Size | FaceBytes () const |
Return surface length in bytes. | |
void | SetFaceBytes (Standard_Size theSize) |
Set surface length in bytes. | |
Standard_Integer | SizeX () const |
Return surface width. | |
Standard_Integer | SizeY () const |
Return surface height. | |
void | SetSize (Standard_Integer theSizeX, Standard_Integer theSizeY) |
Set surface width x height. | |
bool | IsTopDown () const |
Return TRUE if image layout is top-down (always true). | |
Standard_Integer | NbFaces () const |
Return number of faces in the file; should be 6 for cubemap. | |
void | SetNbFaces (Standard_Integer theSize) |
Set number of faces in the file. | |
Image_CompressedPixMap () | |
Empty constructor. | |
Public Member Functions inherited from Standard_Transient | |
Standard_Transient () | |
Empty constructor. | |
Standard_Transient (const Standard_Transient &) | |
Copy constructor – does nothing. | |
Standard_Transient & | operator= (const Standard_Transient &) |
Assignment operator, needed to avoid copying reference counter. | |
virtual | ~Standard_Transient () |
Destructor must be virtual. | |
virtual const opencascade::handle< Standard_Type > & | DynamicType () const |
Returns a type descriptor about this object. | |
Standard_Boolean | IsInstance (const opencascade::handle< Standard_Type > &theType) const |
Returns a true value if this is an instance of Type. | |
Standard_Boolean | IsInstance (const Standard_CString theTypeName) const |
Returns a true value if this is an instance of TypeName. | |
Standard_Boolean | IsKind (const opencascade::handle< Standard_Type > &theType) const |
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. | |
Standard_Boolean | IsKind (const Standard_CString theTypeName) const |
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. | |
Standard_Transient * | This () const |
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero. | |
Standard_Integer | GetRefCount () const noexcept |
Get the reference counter of this object. | |
void | IncrementRefCounter () noexcept |
Increments the reference counter of this object. | |
Standard_Integer | DecrementRefCounter () noexcept |
Decrements the reference counter of this object; returns the decremented value. | |
virtual void | Delete () const |
Memory deallocator for transient classes. | |
Protected Attributes | |
NCollection_Array1< Standard_Integer > | myMipMaps |
Array of mipmap sizes, including base level. | |
Handle< NCollection_Buffer > | myFaceData |
raw compressed data | |
Standard_Size | myFaceBytes |
surface length in bytes | |
Standard_Integer | myNbFaces |
number of faces in the file | |
Standard_Integer | mySizeX |
surface width | |
Standard_Integer | mySizeY |
surface height | |
Image_Format | myBaseFormat |
base (uncompressed) pixel format | |
Image_CompressedFormat | myFormat |
compressed format | |
Standard_Boolean | myIsCompleteMips |
flag indicating complete mip map level set (up to 1x1 resolution) | |
Additional Inherited Members | |
Public Types inherited from Standard_Transient | |
typedef void | base_type |
Returns a type descriptor about this object. | |
Static Public Member Functions inherited from Standard_Transient | |
static constexpr const char * | get_type_name () |
Returns a type descriptor about this object. | |
static const opencascade::handle< Standard_Type > & | get_type_descriptor () |
Returns type descriptor of Standard_Transient class. | |
Compressed pixmap data definition. It is defined independently from Image_PixMap, which defines only uncompressed formats.
|
inline |
Empty constructor.
|
inline |
Return base (uncompressed) pixel format.
|
inline |
Return Array of mipmap sizes, including base level.
|
inline |
Return compressed format.
|
inline |
Return surface length in bytes.
|
inline |
Return raw (compressed) data.
|
inline |
Return TRUE if complete mip map level set (up to 1x1 resolution).
|
inline |
Return TRUE if image layout is top-down (always true).
|
inline |
Return Array of mipmap sizes, including base level.
|
inline |
Return number of faces in the file; should be 6 for cubemap.
|
inline |
Set base (uncompressed) pixel format.
|
inline |
Set if complete mip map level set (up to 1x1 resolution).
|
inline |
Set compressed format.
|
inline |
Set surface length in bytes.
|
inline |
Set raw (compressed) data.
|
inline |
Set number of faces in the file.
|
inline |
Set surface width x height.
|
inline |
Return surface width.
|
inline |
Return surface height.
|
protected |
base (uncompressed) pixel format
|
protected |
surface length in bytes
|
protected |
raw compressed data
|
protected |
compressed format
|
protected |
flag indicating complete mip map level set (up to 1x1 resolution)
|
protected |
Array of mipmap sizes, including base level.
|
protected |
number of faces in the file
|
protected |
surface width
|
protected |
surface height