Open CASCADE Technology 7.8.0
Public Member Functions | Protected Attributes
Image_CompressedPixMap Class Reference

Compressed pixmap data definition. It is defined independently from Image_PixMap, which defines only uncompressed formats. More...

#include <Image_CompressedPixMap.hxx>

Inheritance diagram for Image_CompressedPixMap:
Inheritance graph
[legend]

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_Transientoperator= (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_TransientThis () 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_IntegermyMipMaps
 Array of mipmap sizes, including base level.
 
Handle< NCollection_BuffermyFaceData
 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 charget_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.
 

Detailed Description

Compressed pixmap data definition. It is defined independently from Image_PixMap, which defines only uncompressed formats.

Constructor & Destructor Documentation

◆ Image_CompressedPixMap()

Image_CompressedPixMap::Image_CompressedPixMap ( )
inline

Empty constructor.

Member Function Documentation

◆ BaseFormat()

Image_Format Image_CompressedPixMap::BaseFormat ( ) const
inline

Return base (uncompressed) pixel format.

◆ ChangeMipMaps()

NCollection_Array1< Standard_Integer > & Image_CompressedPixMap::ChangeMipMaps ( )
inline

Return Array of mipmap sizes, including base level.

◆ CompressedFormat()

Image_CompressedFormat Image_CompressedPixMap::CompressedFormat ( ) const
inline

Return compressed format.

◆ FaceBytes()

Standard_Size Image_CompressedPixMap::FaceBytes ( ) const
inline

Return surface length in bytes.

◆ FaceData()

const Handle< NCollection_Buffer > & Image_CompressedPixMap::FaceData ( ) const
inline

Return raw (compressed) data.

◆ IsCompleteMipMapSet()

Standard_Boolean Image_CompressedPixMap::IsCompleteMipMapSet ( ) const
inline

Return TRUE if complete mip map level set (up to 1x1 resolution).

◆ IsTopDown()

bool Image_CompressedPixMap::IsTopDown ( ) const
inline

Return TRUE if image layout is top-down (always true).

◆ MipMaps()

const NCollection_Array1< Standard_Integer > & Image_CompressedPixMap::MipMaps ( ) const
inline

Return Array of mipmap sizes, including base level.

◆ NbFaces()

Standard_Integer Image_CompressedPixMap::NbFaces ( ) const
inline

Return number of faces in the file; should be 6 for cubemap.

◆ SetBaseFormat()

void Image_CompressedPixMap::SetBaseFormat ( Image_Format  theFormat)
inline

Set base (uncompressed) pixel format.

◆ SetCompleteMipMapSet()

void Image_CompressedPixMap::SetCompleteMipMapSet ( Standard_Boolean  theIsComplete)
inline

Set if complete mip map level set (up to 1x1 resolution).

◆ SetCompressedFormat()

void Image_CompressedPixMap::SetCompressedFormat ( Image_CompressedFormat  theFormat)
inline

Set compressed format.

◆ SetFaceBytes()

void Image_CompressedPixMap::SetFaceBytes ( Standard_Size  theSize)
inline

Set surface length in bytes.

◆ SetFaceData()

void Image_CompressedPixMap::SetFaceData ( const Handle< NCollection_Buffer > &  theBuffer)
inline

Set raw (compressed) data.

◆ SetNbFaces()

void Image_CompressedPixMap::SetNbFaces ( Standard_Integer  theSize)
inline

Set number of faces in the file.

◆ SetSize()

void Image_CompressedPixMap::SetSize ( Standard_Integer  theSizeX,
Standard_Integer  theSizeY 
)
inline

Set surface width x height.

◆ SizeX()

Standard_Integer Image_CompressedPixMap::SizeX ( ) const
inline

Return surface width.

◆ SizeY()

Standard_Integer Image_CompressedPixMap::SizeY ( ) const
inline

Return surface height.

Field Documentation

◆ myBaseFormat

Image_Format Image_CompressedPixMap::myBaseFormat
protected

base (uncompressed) pixel format

◆ myFaceBytes

Standard_Size Image_CompressedPixMap::myFaceBytes
protected

surface length in bytes

◆ myFaceData

Handle< NCollection_Buffer > Image_CompressedPixMap::myFaceData
protected

raw compressed data

◆ myFormat

Image_CompressedFormat Image_CompressedPixMap::myFormat
protected

compressed format

◆ myIsCompleteMips

Standard_Boolean Image_CompressedPixMap::myIsCompleteMips
protected

flag indicating complete mip map level set (up to 1x1 resolution)

◆ myMipMaps

NCollection_Array1<Standard_Integer> Image_CompressedPixMap::myMipMaps
protected

Array of mipmap sizes, including base level.

◆ myNbFaces

Standard_Integer Image_CompressedPixMap::myNbFaces
protected

number of faces in the file

◆ mySizeX

Standard_Integer Image_CompressedPixMap::mySizeX
protected

surface width

◆ mySizeY

Standard_Integer Image_CompressedPixMap::mySizeY
protected

surface height


The documentation for this class was generated from the following file: