/usr/include/oce/Graphic3d_TextureRoot.hxx is in liboce-visualization-dev 0.15-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | // This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#ifndef _Graphic3d_TextureRoot_HeaderFile
#define _Graphic3d_TextureRoot_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_Graphic3d_TextureRoot_HeaderFile
#include <Handle_Graphic3d_TextureRoot.hxx>
#endif
#ifndef _Handle_Graphic3d_TextureParams_HeaderFile
#include <Handle_Graphic3d_TextureParams.hxx>
#endif
#ifndef _TCollection_AsciiString_HeaderFile
#include <TCollection_AsciiString.hxx>
#endif
#ifndef _OSD_Path_HeaderFile
#include <OSD_Path.hxx>
#endif
#ifndef _Graphic3d_TypeOfTexture_HeaderFile
#include <Graphic3d_TypeOfTexture.hxx>
#endif
#ifndef _MMgt_TShared_HeaderFile
#include <MMgt_TShared.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Image_PixMap_Handle_HeaderFile
#include <Image_PixMap_Handle.hxx>
#endif
class Graphic3d_TextureParams;
class TCollection_AsciiString;
class OSD_Path;
//! This is the texture root class enable the dialog with the GraphicDriver allows the loading of texture. <br>
class Graphic3d_TextureRoot : public MMgt_TShared {
public:
Standard_EXPORT void Destroy() const;
~Graphic3d_TextureRoot()
{
Destroy();
}
//! Checks if a texture class is valid or not. <br>
//! @return true if the construction of the class is correct <br>
Standard_EXPORT virtual Standard_Boolean IsDone() const;
//! Returns the full path of the defined texture. <br>
//! It could be empty path if GetImage() is overridden to load image not from file. <br>
Standard_EXPORT const OSD_Path& Path() const;
//! @return the texture type. <br>
Standard_EXPORT Graphic3d_TypeOfTexture Type() const;
//! This ID will be used to manage resource in graphic driver. <br>
//! . <br>
//! Default implementation generates unique ID although inheritors may re-initialize it. <br>
//! . <br>
//! Multiple Graphic3d_TextureRoot instancies with same ID <br>
//! will be treated as single texture with different parameters <br>
//! to optimize memory usage though this will be more natural <br>
//! to use same instance of Graphic3d_TextureRoot when possible. <br>
//! . <br>
//! Notice that inheritor may set this ID to empty string. <br>
//! In this case independent graphical resource will be created <br>
//! for each instance of Graphic3d_AspectFillArea3d where texture will be used. <br>
//! . <br>
//! @return texture identifier. <br>
Standard_EXPORT const TCollection_AsciiString& GetId() const;
//! This method will be called by graphic driver each time when texture resource should be created. <br>
//! Default implementation will dynamically load image from specified path within this method <br>
//! (and no copy will be preserved in this class instance). <br>
//! Inheritors may dynamically generate the image or return cached instance. <br>
//! Notice, image data should be in Bottom-Up order (see Image_PixMap::IsTopDown())! <br>
//! @return the image for texture. <br>
Standard_EXPORT virtual Image_PixMap_Handle GetImage() const;
//! @return low-level texture parameters <br>
Standard_EXPORT const Handle_Graphic3d_TextureParams& GetParams() const;
//! The path to textures determined from CSF_MDTVTexturesDirectory or CASROOT environment variables. <br>
//! @return the root folder with default textures. <br>
Standard_EXPORT static TCollection_AsciiString TexturesFolder() ;
DEFINE_STANDARD_RTTI(Graphic3d_TextureRoot)
protected:
//! Creates a texture from a file <br>
//! Warning: Note that if <FileName> is NULL the texture must be realized <br>
//! using LoadTexture(image) method. <br>
Standard_EXPORT Graphic3d_TextureRoot(const TCollection_AsciiString& theFileName,const Graphic3d_TypeOfTexture theType);
Handle_Graphic3d_TextureParams myParams;
TCollection_AsciiString myTexId;
OSD_Path myPath;
private:
Graphic3d_TypeOfTexture myType;
};
// other Inline functions and methods (like "C++: function call" methods)
#endif
|