|
| XCAFPrs_Texture (const Handle< Image_Texture > &theImageSource, const Graphic3d_TextureUnit theUnit) |
| Constructor.
|
|
virtual Handle< Image_CompressedPixMap > | GetCompressedImage (const Handle< Image_SupportedFormats > &theSupported) override |
| Image reader.
|
|
virtual Handle< Image_PixMap > | GetImage (const Handle< Image_SupportedFormats > &theSupported) override |
| Image reader.
|
|
const Handle< Image_Texture > & | GetImageSource () const |
| Return image source.
|
|
| Graphic3d_Texture2D (const TCollection_AsciiString &theFileName) |
| Creates a texture from a file. MipMaps levels will be automatically generated if needed.
|
|
| Graphic3d_Texture2D (const Graphic3d_NameOfTexture2D theNOT) |
| Creates a texture from a predefined texture name set. MipMaps levels will be automatically generated if needed.
|
|
| Graphic3d_Texture2D (const Handle< Image_PixMap > &thePixMap) |
| Creates a texture from the pixmap. MipMaps levels will be automatically generated if needed.
|
|
Graphic3d_NameOfTexture2D | Name () const |
| Returns the name of the predefined textures or NOT_2D_UNKNOWN when the name is given as a filename.
|
|
void | SetImage (const Handle< Image_PixMap > &thePixMap) |
| Assign new image to the texture. Note that this method does not invalidate already uploaded resources - consider calling UpdateRevision() if needed.
|
|
void | EnableSmooth () |
| enable texture smoothing
|
|
Standard_Boolean | IsSmoothed () const |
| Returns TRUE if the texture is smoothed.
|
|
void | DisableSmooth () |
| disable texture smoothing
|
|
void | EnableModulate () |
| enable texture modulate mode. the image is modulate with the shading of the surface.
|
|
void | DisableModulate () |
| disable texture modulate mode. the image is directly decal on the surface.
|
|
Standard_Boolean | IsModulate () const |
| Returns TRUE if the texture is modulate.
|
|
void | EnableRepeat () |
| use this methods if you want to enable texture repetition on your objects.
|
|
void | DisableRepeat () |
| use this methods if you want to disable texture repetition on your objects.
|
|
Standard_Boolean | IsRepeat () const |
| Returns TRUE if the texture repeat is enable.
|
|
Graphic3d_LevelOfTextureAnisotropy | AnisoFilter () const |
|
void | SetAnisoFilter (const Graphic3d_LevelOfTextureAnisotropy theLevel) |
|
| ~Graphic3d_TextureRoot () |
| Destructor.
|
|
virtual Standard_Boolean | IsDone () const |
| Checks if a texture class is valid or not.
|
|
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.
|
|
Graphic3d_TypeOfTexture | Type () const |
|
const TCollection_AsciiString & | GetId () const |
| This ID will be used to manage resource in graphic driver.
|
|
Standard_Size | Revision () const |
| Return image revision.
|
|
void | UpdateRevision () |
| Update image revision. Can be used for signaling changes in the texture source (e.g. file update, pixmap update) without re-creating texture source itself (since unique id should be never modified).
|
|
const Handle< Graphic3d_TextureParams > & | GetParams () const |
|
Standard_Boolean | IsColorMap () const |
| Return flag indicating color nature of values within the texture; TRUE by default.
|
|
void | SetColorMap (Standard_Boolean theIsColor) |
| Set flag indicating color nature of values within the texture.
|
|
Standard_Boolean | HasMipmaps () const |
| Returns whether mipmaps should be generated or not.
|
|
void | SetMipmapsGeneration (Standard_Boolean theToGenerateMipmaps) |
| Sets whether to generate mipmaps or not.
|
|
Standard_Boolean | IsTopDown () const |
| Returns whether row's memory layout is top-down.
|
|
Public Member Functions inherited from Standard_Transient |
| Standard_Transient () |
| Empty constructor.
|
|
| Standard_Transient (const Standard_Transient &) |
| Copy constructor – does nothing.
|
|
Standard_Transient & | operator= (const Standard_Transient &) |
| Assignment operator, needed to avoid copying reference counter.
|
|
virtual | ~Standard_Transient () |
| Destructor must be virtual.
|
|
virtual const opencascade::handle< Standard_Type > & | DynamicType () const |
| Returns a type descriptor about this object.
|
|
Standard_Boolean | IsInstance (const opencascade::handle< Standard_Type > &theType) const |
| Returns a true value if this is an instance of Type.
|
|
Standard_Boolean | IsInstance (const Standard_CString theTypeName) const |
| Returns a true value if this is an instance of TypeName.
|
|
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.
|
|
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.
|
|
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.
|
|
Standard_Integer | GetRefCount () const noexcept |
| Get the reference counter of this object.
|
|
void | IncrementRefCounter () noexcept |
| Increments the reference counter of this object.
|
|
Standard_Integer | DecrementRefCounter () noexcept |
| Decrements the reference counter of this object; returns the decremented value.
|
|
virtual void | Delete () const |
| Memory deallocator for transient classes.
|
|