File indexing completed on 2026-09-18 09:22:26
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _XCAFPrs_Texture_HeaderFile
0017 #define _XCAFPrs_Texture_HeaderFile
0018
0019 #include <Graphic3d_Texture2D.hxx>
0020 #include <Graphic3d_TextureUnit.hxx>
0021 #include <Image_Texture.hxx>
0022
0023
0024 class XCAFPrs_Texture : public Graphic3d_Texture2D
0025 {
0026 DEFINE_STANDARD_RTTIEXT(XCAFPrs_Texture, Graphic3d_Texture2D)
0027 public:
0028
0029 Standard_EXPORT XCAFPrs_Texture(const occ::handle<Image_Texture>& theImageSource,
0030 const Graphic3d_TextureUnit theUnit);
0031
0032
0033 Standard_EXPORT occ::handle<Image_CompressedPixMap> GetCompressedImage(
0034 const occ::handle<Image_SupportedFormats>& theSupported) override;
0035
0036
0037 Standard_EXPORT occ::handle<Image_PixMap> GetImage(
0038 const occ::handle<Image_SupportedFormats>& theSupported) override;
0039
0040
0041 const occ::handle<Image_Texture>& GetImageSource() const { return myImageSource; }
0042
0043 protected:
0044 occ::handle<Image_Texture> myImageSource;
0045 };
0046
0047 #endif