Open CASCADE Technology
6.5.4
|
This is the texture root class enable the dialog with the GraphicDriver
allows the loading of texture too supported formats:
X, SunRaster, Aida, Euclid, SGI rgb
#include <Graphic3d_TextureRoot.hxx>
Public Member Functions | |
void | Destroy () const |
~Graphic3d_TextureRoot () | |
Standard_Boolean | IsDone () const |
Checks if a texture class is valide or not returns true if the construction of the class is correct | |
const OSD_Path & | Path () const |
Returns the full path of the defined texture. | |
Graphic3d_TypeOfTexture | Type () const |
Returns the texture type. | |
void | LoadTexture (const Handle< AlienImage_AlienImage > &anImage) |
Updates the current texture from a requested alien image. | |
Standard_Integer | TextureId () const |
returns the Texture ID which references the texture to use for drawing. Used by the graphic driver. | |
Handle_AlienImage_AlienImage | Image () const |
Returns the created image texture. | |
Handle_TColStd_HArray1OfReal | GetTexUpperBounds () const |
Protected Member Functions | |
Graphic3d_TextureRoot (const Handle< Graphic3d_StructureManager > &SM, const Standard_CString Path, const Standard_CString FileName, const Graphic3d_TypeOfTexture Type) | |
Creates a texture from a file Warning: Note that if <FileName> is NULL the texture must be realized using LoadTexture(image) method. | |
void | Update () const |
Protected Attributes | |
Graphic3d_CInitTexture | MyCInitTexture |
Graphic3d_TextureRoot::~Graphic3d_TextureRoot | ( | ) | [inline] |
Graphic3d_TextureRoot::Graphic3d_TextureRoot | ( | const Handle< Graphic3d_StructureManager > & | SM, |
const Standard_CString | Path, | ||
const Standard_CString | FileName, | ||
const Graphic3d_TypeOfTexture | Type | ||
) | [protected] |
void Graphic3d_TextureRoot::Destroy | ( | ) | const |
Handle_TColStd_HArray1OfReal Graphic3d_TextureRoot::GetTexUpperBounds | ( | ) | const |
Handle_AlienImage_AlienImage Graphic3d_TextureRoot::Image | ( | ) | const |
void Graphic3d_TextureRoot::LoadTexture | ( | const Handle< AlienImage_AlienImage > & | anImage | ) |
const OSD_Path& Graphic3d_TextureRoot::Path | ( | ) | const |
void Graphic3d_TextureRoot::Update | ( | ) | const [protected] |