Open CASCADE Technology
7.0.0
|
This class provides the implementation of a manual 1D texture. you MUST provides texture coordinates on your facets if you want to see your texture. More...
#include <Graphic3d_Texture1Dmanual.hxx>
Public Member Functions | |
Graphic3d_Texture1Dmanual (const TCollection_AsciiString &theFileName) | |
Creates a texture from the file FileName. More... | |
Graphic3d_Texture1Dmanual (const Graphic3d_NameOfTexture1D theNOT) | |
Create a texture from a predefined texture name set. More... | |
Graphic3d_Texture1Dmanual (const Image_PixMap_Handle &thePixMap) | |
Creates a texture from the pixmap. More... | |
![]() | |
Graphic3d_NameOfTexture1D | Name () const |
Returns the name of the predefined textures or NOT_1D_UNKNOWN when the name is given as a filename. More... | |
![]() | |
void | EnableSmooth () |
enable texture smoothing More... | |
Standard_Boolean | IsSmoothed () const |
Returns TRUE if the texture is smoothed. More... | |
void | DisableSmooth () |
disable texture smoothing More... | |
void | EnableModulate () |
enable texture modulate mode. the image is modulate with the shading of the surface. More... | |
void | DisableModulate () |
disable texture modulate mode. the image is directly decal on the surface. More... | |
Standard_Boolean | IsModulate () const |
Returns TRUE if the texture is modulate. More... | |
void | EnableRepeat () |
use this methods if you want to enable texture repetition on your objects. More... | |
void | DisableRepeat () |
use this methods if you want to disable texture repetition on your objects. More... | |
Standard_Boolean | IsRepeat () const |
Returns TRUE if the texture repeat is enable. More... | |
Graphic3d_LevelOfTextureAnisotropy | AnisoFilter () const |
void | SetAnisoFilter (const Graphic3d_LevelOfTextureAnisotropy theLevel) |
![]() | |
void | Destroy () const |
~Graphic3d_TextureRoot () | |
virtual Standard_Boolean | IsDone () const |
Checks if a texture class is valid or not. More... | |
const OSD_Path & | Path () const |
Returns the full path of the defined texture. It could be empty path if GetImage() is overridden to load image not from file. More... | |
Graphic3d_TypeOfTexture | Type () const |
const TCollection_AsciiString & | GetId () const |
This ID will be used to manage resource in graphic driver. More... | |
virtual Image_PixMap_Handle | GetImage () const |
This method will be called by graphic driver each time when texture resource should be created. Default constructors allow defining the texture source as path to texture image or directly as pixmap. If the source is defined as path, then the image will be dynamically loaded when this method is called (and no copy will be preserved in this class instance). Inheritors may dynamically generate the image. Notice, image data should be in Bottom-Up order (see Image_PixMap::IsTopDown())! More... | |
const Handle< Graphic3d_TextureParams > & | GetParams () const |
![]() | |
virtual void | Delete () const override |
Memory deallocator for transient classes. More... | |
![]() | |
Standard_Transient () | |
Empty constructor. More... | |
Standard_Transient (const Standard_Transient &) | |
Copy constructor – does nothing. More... | |
Standard_Transient & | operator= (const Standard_Transient &) |
Assignment operator, needed to avoid copying reference counter. More... | |
virtual | ~Standard_Transient () |
Destructor must be virtual. More... | |
virtual const opencascade::handle< Standard_Type > & | DynamicType () const |
Returns a type descriptor about this object. More... | |
Standard_Boolean | IsInstance (const opencascade::handle< Standard_Type > &theType) const |
Returns a true value if this is an instance of Type. More... | |
Standard_Boolean | IsInstance (const Standard_CString theTypeName) const |
Returns a true value if this is an instance of TypeName. More... | |
Standard_Boolean | IsKind (const opencascade::handle< Standard_Type > &theType) const |
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More... | |
Standard_Boolean | IsKind (const Standard_CString theTypeName) const |
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More... | |
Standard_Transient * | This () const |
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero. More... | |
Standard_Integer | GetRefCount () const |
Get the reference counter of this object. More... | |
void | IncrementRefCounter () const |
Increments the reference counter of this object. More... | |
Standard_Integer | DecrementRefCounter () const |
Decrements the reference counter of this object; returns the decremented value. More... | |
Additional Inherited Members | |
![]() | |
typedef void | base_type |
Returns a type descriptor about this object. More... | |
![]() | |
static Standard_Integer | NumberOfTextures () |
Returns the number of predefined textures. More... | |
static TCollection_AsciiString | TextureName (const Standard_Integer aRank) |
Returns the name of the predefined texture of rank <aRank> More... | |
![]() | |
static TCollection_AsciiString | TexturesFolder () |
The path to textures determined from CSF_MDTVTexturesDirectory or CASROOT environment variables. More... | |
![]() | |
static const char * | get_type_name () |
Returns a type descriptor about this object. More... | |
static const opencascade::handle< Standard_Type > & | get_type_descriptor () |
Returns type descriptor of Standard_Transient class. More... | |
![]() | |
Graphic3d_Texture1D (const TCollection_AsciiString &theFileName, const Graphic3d_TypeOfTexture theType) | |
Graphic3d_Texture1D (const Graphic3d_NameOfTexture1D theName, const Graphic3d_TypeOfTexture theType) | |
Graphic3d_Texture1D (const Image_PixMap_Handle &thePixMap, const Graphic3d_TypeOfTexture theType) | |
![]() | |
Graphic3d_TextureMap (const TCollection_AsciiString &theFileName, const Graphic3d_TypeOfTexture theType) | |
Graphic3d_TextureMap (const Image_PixMap_Handle &thePixMap, const Graphic3d_TypeOfTexture theType) | |
![]() | |
Graphic3d_TextureRoot (const TCollection_AsciiString &theFileName, const Graphic3d_TypeOfTexture theType) | |
Creates a texture from a file Warning: Note that if <FileName> is NULL the texture must be realized using LoadTexture(image) method. More... | |
Graphic3d_TextureRoot (const Image_PixMap_Handle &thePixmap, const Graphic3d_TypeOfTexture theType) | |
Creates a texture from pixmap. Please note that the implementation expects the image data to be in Bottom-Up order (see Image_PixMap::IsTopDown()). More... | |
![]() | |
Handle< Graphic3d_TextureParams > | myParams |
TCollection_AsciiString | myTexId |
Image_PixMap_Handle | myPixMap |
OSD_Path | myPath |
This class provides the implementation of a manual 1D texture. you MUST provides texture coordinates on your facets if you want to see your texture.
Graphic3d_Texture1Dmanual::Graphic3d_Texture1Dmanual | ( | const TCollection_AsciiString & | theFileName | ) |
Creates a texture from the file FileName.
Graphic3d_Texture1Dmanual::Graphic3d_Texture1Dmanual | ( | const Graphic3d_NameOfTexture1D | theNOT | ) |
Create a texture from a predefined texture name set.
Graphic3d_Texture1Dmanual::Graphic3d_Texture1Dmanual | ( | const Image_PixMap_Handle & | thePixMap | ) |
Creates a texture from the pixmap.