File indexing completed on 2025-01-18 10:04:05
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
0031 Image_Format BaseFormat() const { return myBaseFormat; }
0032
0033
0034 void SetBaseFormat (Image_Format theFormat) { myBaseFormat = theFormat; }
0035
0036
0037 Image_CompressedFormat CompressedFormat() const { return myFormat; }
0038
0039
0040 void SetCompressedFormat (Image_CompressedFormat theFormat) { myFormat = theFormat; }
0041
0042
0043 const Handle(NCollection_Buffer)& FaceData() const { return myFaceData; }
0044
0045
0046 void SetFaceData (const Handle(NCollection_Buffer)& theBuffer) { myFaceData = theBuffer; }
0047
0048
0049 const NCollection_Array1<Standard_Integer>& MipMaps() const { return myMipMaps; }
0050
0051
0052 NCollection_Array1<Standard_Integer>& ChangeMipMaps() { return myMipMaps; }
0053
0054
0055 Standard_Boolean IsCompleteMipMapSet() const { return myIsCompleteMips; }
0056
0057
0058 void SetCompleteMipMapSet (Standard_Boolean theIsComplete) { myIsCompleteMips = theIsComplete; }
0059
0060
0061 Standard_Size FaceBytes() const { return myFaceBytes; }
0062
0063
0064 void SetFaceBytes (Standard_Size theSize) { myFaceBytes = theSize; }
0065
0066
0067 Standard_Integer SizeX() const { return mySizeX; }
0068
0069
0070 Standard_Integer SizeY() const { return mySizeY; }
0071
0072
0073 void SetSize (Standard_Integer theSizeX, Standard_Integer theSizeY)
0074 {
0075 mySizeX = theSizeX;
0076 mySizeY = theSizeY;
0077 }
0078
0079
0080 bool IsTopDown() const { return true; }
0081
0082
0083 Standard_Integer NbFaces() const { return myNbFaces; }
0084
0085
0086 void SetNbFaces (Standard_Integer theSize) { myNbFaces = theSize; }
0087
0088 public:
0089
0090
0091 Image_CompressedPixMap()
0092 : myFaceBytes (0), myNbFaces (0), mySizeX (0), mySizeY (0), myBaseFormat (Image_Format_UNKNOWN), myFormat (Image_CompressedFormat_UNKNOWN), myIsCompleteMips (false) {}
0093
0094 protected:
0095
0096 NCollection_Array1<Standard_Integer> myMipMaps;
0097 Handle(NCollection_Buffer) myFaceData;
0098 Standard_Size myFaceBytes;
0099 Standard_Integer myNbFaces;
0100 Standard_Integer mySizeX;
0101 Standard_Integer mySizeY;
0102 Image_Format myBaseFormat;
0103 Image_CompressedFormat myFormat;
0104 Standard_Boolean myIsCompleteMips;
0105
0106 };
0107
0108 #endif