Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes
Graphic3d_TextureRoot Class Reference

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>

Inheritance diagram for Graphic3d_TextureRoot:
Inheritance graph
[legend]

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_PathPath () 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

Constructor & Destructor Documentation


Member Function Documentation

Handle_TColStd_HArray1OfReal Graphic3d_TextureRoot::GetTexUpperBounds ( ) const
Handle_AlienImage_AlienImage Graphic3d_TextureRoot::Image ( ) const
void Graphic3d_TextureRoot::Update ( ) const [protected]

Field Documentation


The documentation for this class was generated from the following file: