File indexing completed on 2026-09-18 09:20:53
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef _Image_CompressedPixMap_HeaderFile
0015 #define _Image_CompressedPixMap_HeaderFile
0016
0017 #include <Image_Format.hxx>
0018 #include <Image_CompressedFormat.hxx>
0019 #include <NCollection_Array1.hxx>
0020 #include <NCollection_Buffer.hxx>
0021 #include <Standard_Type.hxx>
0022
0023
0024
0025 class Image_CompressedPixMap : public Standard_Transient
0026 {
0027 DEFINE_STANDARD_RTTIEXT(Image_CompressedPixMap, Standard_Transient)
0028 public:
0029
0030 Image_Format BaseFormat() const { return myBaseFormat; }
0031
0032
0033 void SetBaseFormat(Image_Format theFormat) { myBaseFormat = theFormat; }
0034
0035
0036 Image_CompressedFormat CompressedFormat() const { return myFormat; }
0037
0038
0039 void SetCompressedFormat(Image_CompressedFormat theFormat) { myFormat = theFormat; }
0040
0041
0042 const occ::handle<NCollection_Buffer>& FaceData() const { return myFaceData; }
0043
0044
0045 void SetFaceData(const occ::handle<NCollection_Buffer>& theBuffer) { myFaceData = theBuffer; }
0046
0047
0048 const NCollection_Array1<int>& MipMaps() const { return myMipMaps; }
0049
0050
0051 NCollection_Array1<int>& ChangeMipMaps() { return myMipMaps; }
0052
0053
0054 bool IsCompleteMipMapSet() const { return myIsCompleteMips; }
0055
0056
0057 void SetCompleteMipMapSet(bool theIsComplete) { myIsCompleteMips = theIsComplete; }
0058
0059
0060 size_t FaceBytes() const { return myFaceBytes; }
0061
0062
0063 void SetFaceBytes(size_t theSize) { myFaceBytes = theSize; }
0064
0065
0066 int SizeX() const { return mySizeX; }
0067
0068
0069 int SizeY() const { return mySizeY; }
0070
0071
0072 void SetSize(int theSizeX, int theSizeY)
0073 {
0074 mySizeX = theSizeX;
0075 mySizeY = theSizeY;
0076 }
0077
0078
0079 bool IsTopDown() const { return true; }
0080
0081
0082 int NbFaces() const { return myNbFaces; }
0083
0084
0085 void SetNbFaces(int theSize) { myNbFaces = theSize; }
0086
0087 public:
0088
0089 Image_CompressedPixMap()
0090 : myFaceBytes(0),
0091 myNbFaces(0),
0092 mySizeX(0),
0093 mySizeY(0),
0094 myBaseFormat(Image_Format_UNKNOWN),
0095 myFormat(Image_CompressedFormat_UNKNOWN),
0096 myIsCompleteMips(false)
0097 {
0098 }
0099
0100 protected:
0101 NCollection_Array1<int> myMipMaps;
0102 occ::handle<NCollection_Buffer> myFaceData;
0103 size_t myFaceBytes;
0104 int myNbFaces;
0105 int mySizeX;
0106 int mySizeY;
0107 Image_Format myBaseFormat;
0108 Image_CompressedFormat myFormat;
0109
0110 bool myIsCompleteMips;
0111
0112 };
0113
0114 #endif