Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:35

0001 // Created on: 2000-08-11
0002 // Created by: Andrey BETENEV
0003 // Copyright (c) 2000-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _XCAFPrs_Texture_HeaderFile
0017 #define _XCAFPrs_Texture_HeaderFile
0018 
0019 #include <Graphic3d_Texture2Dmanual.hxx>
0020 #include <Graphic3d_TextureUnit.hxx>
0021 #include <Image_Texture.hxx>
0022 
0023 //! Texture holder.
0024 class XCAFPrs_Texture : public Graphic3d_Texture2D
0025 {
0026   DEFINE_STANDARD_RTTIEXT(XCAFPrs_Texture, Graphic3d_Texture2D)
0027 public:
0028 
0029   //! Constructor.
0030   Standard_EXPORT XCAFPrs_Texture (const Handle(Image_Texture)& theImageSource,
0031                                    const Graphic3d_TextureUnit theUnit);
0032 
0033   //! Image reader.
0034   Standard_EXPORT virtual Handle(Image_CompressedPixMap) GetCompressedImage (const Handle(Image_SupportedFormats)& theSupported) Standard_OVERRIDE;
0035 
0036   //! Image reader.
0037   Standard_EXPORT virtual Handle(Image_PixMap) GetImage (const Handle(Image_SupportedFormats)& theSupported) Standard_OVERRIDE;
0038 
0039   //! Return image source.
0040   const Handle(Image_Texture)& GetImageSource() const { return myImageSource; }
0041 
0042 protected:
0043 
0044   Handle(Image_Texture) myImageSource;
0045 };
0046 
0047 #endif // _XCAFPrs_Texture_HeaderFile