| 
    Open CASCADE Technology 7.8.2.dev
    
   | 
 
This class describes texture parameters. More...
#include <Graphic3d_TextureParams.hxx>

Public Member Functions | |
| Graphic3d_TextureParams () | |
| Default constructor.   | |
| virtual | ~Graphic3d_TextureParams () | 
| Destructor.   | |
| Graphic3d_TextureUnit | TextureUnit () const | 
| Default texture unit to be used, default is Graphic3d_TextureUnit_BaseColor.   | |
| void | SetTextureUnit (Graphic3d_TextureUnit theUnit) | 
| Setup default texture unit.   | |
| Standard_Boolean | IsModulate () const | 
| void | SetModulate (const Standard_Boolean theToModulate) | 
| Standard_Boolean | IsRepeat () const | 
| void | SetRepeat (const Standard_Boolean theToRepeat) | 
| Graphic3d_TypeOfTextureFilter | Filter () const | 
| void | SetFilter (const Graphic3d_TypeOfTextureFilter theFilter) | 
| Graphic3d_LevelOfTextureAnisotropy | AnisoFilter () const | 
| void | SetAnisoFilter (const Graphic3d_LevelOfTextureAnisotropy theLevel) | 
| Standard_ShortReal | Rotation () const | 
| Return rotation angle in degrees; 0 by default. Complete transformation matrix: Rotation -> Translation -> Scale.   | |
| void | SetRotation (const Standard_ShortReal theAngleDegrees) | 
| const Graphic3d_Vec2 & | Scale () const | 
| Return scale factor; (1.0; 1.0) by default, which means no scaling. Complete transformation matrix: Rotation -> Translation -> Scale.   | |
| void | SetScale (const Graphic3d_Vec2 theScale) | 
| const Graphic3d_Vec2 & | Translation () const | 
| Return translation vector; (0.0; 0.0), which means no translation. Complete transformation matrix: Rotation -> Translation -> Scale.   | |
| void | SetTranslation (const Graphic3d_Vec2 theVec) | 
| Graphic3d_TypeOfTextureMode | GenMode () const | 
| const Graphic3d_Vec4 & | GenPlaneS () const | 
| const Graphic3d_Vec4 & | GenPlaneT () const | 
| void | SetGenMode (const Graphic3d_TypeOfTextureMode theMode, const Graphic3d_Vec4 thePlaneS, const Graphic3d_Vec4 thePlaneT) | 
| Setup texture coordinates generation mode.   | |
| Standard_Integer | BaseLevel () const | 
| Standard_Integer | MaxLevel () const | 
| Return maximum texture mipmap array level; 1000 by default. Real rendering limit will take into account mipmap generation flags and presence of mipmaps in loaded image.   | |
| void | SetLevelsRange (Standard_Integer theFirstLevel, Standard_Integer theSecondLevel=0) | 
| Setups texture mipmap array levels range. The lowest value will be the base level. The remaining one will be the maximum level.   | |
| unsigned int | SamplerRevision () const | 
| Return modification counter of parameters related to sampler state.   | |
  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.   | |
Additional Inherited Members | |
  Public Types inherited from Standard_Transient | |
| typedef void | base_type | 
| Returns a type descriptor about this object.   | |
  Static Public Member Functions inherited from Standard_Transient | |
| static constexpr const char * | get_type_name () | 
| Returns a type descriptor about this object.   | |
| static const opencascade::handle< Standard_Type > & | get_type_descriptor () | 
| Returns type descriptor of Standard_Transient class.   | |
This class describes texture parameters.
| Graphic3d_TextureParams::Graphic3d_TextureParams | ( | ) | 
Default constructor.
      
  | 
  virtual | 
Destructor.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
Return maximum texture mipmap array level; 1000 by default. Real rendering limit will take into account mipmap generation flags and presence of mipmaps in loaded image.
      
  | 
  inline | 
Return rotation angle in degrees; 0 by default. Complete transformation matrix: Rotation -> Translation -> Scale.
Return modification counter of parameters related to sampler state.
      
  | 
  inline | 
| void Graphic3d_TextureParams::SetAnisoFilter | ( | const Graphic3d_LevelOfTextureAnisotropy | theLevel | ) | 
| theLevel | level of anisontropy texture filter. | 
| void Graphic3d_TextureParams::SetFilter | ( | const Graphic3d_TypeOfTextureFilter | theFilter | ) | 
| theFilter | texture interpolation filter. | 
| void Graphic3d_TextureParams::SetGenMode | ( | const Graphic3d_TypeOfTextureMode | theMode, | 
| const Graphic3d_Vec4 | thePlaneS, | ||
| const Graphic3d_Vec4 | thePlaneT | ||
| ) | 
Setup texture coordinates generation mode.
      
  | 
  inline | 
Setups texture mipmap array levels range. The lowest value will be the base level. The remaining one will be the maximum level.
| void Graphic3d_TextureParams::SetModulate | ( | const Standard_Boolean | theToModulate | ) | 
| theToModulate | turn modulation on/off. | 
| void Graphic3d_TextureParams::SetRepeat | ( | const Standard_Boolean | theToRepeat | ) | 
| theToRepeat | turn texture repeat mode ON or OFF (clamping). | 
| void Graphic3d_TextureParams::SetRotation | ( | const Standard_ShortReal | theAngleDegrees | ) | 
| theAngleDegrees | rotation angle. | 
| void Graphic3d_TextureParams::SetScale | ( | const Graphic3d_Vec2 | theScale | ) | 
| theScale | scale factor. | 
      
  | 
  inline | 
Setup default texture unit.
| void Graphic3d_TextureParams::SetTranslation | ( | const Graphic3d_Vec2 | theVec | ) | 
| theVec | translation vector. | 
      
  | 
  inline | 
Default texture unit to be used, default is Graphic3d_TextureUnit_BaseColor.
      
  | 
  inline |