-- Copyright (c) 2013-2014 OPEN CASCADE SAS -- -- This file is part of Open CASCADE Technology software library. -- -- This library is free software; you can redistribute it and/or modify it under -- the terms of the GNU Lesser General Public License version 2.1 as published -- by the Free Software Foundation, with special exception defined in the file -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT -- distribution for complete text of the license and disclaimer of any warranty. -- -- Alternatively, this file may be used under the terms of Open CASCADE -- commercial license or contractual agreement. class TextureParams from Graphic3d inherits Transient from Standard ---Purpose: This class describes texture parameters. uses Vec2 from Graphic3d, Vec4 from Graphic3d, TypeOfTextureMode from Graphic3d, TypeOfTextureFilter from Graphic3d, LevelOfTextureAnisotropy from Graphic3d is Create returns TextureParams from Graphic3d; ---Purpose: Default constructor. Destroy (me); ---C++ : alias ~ -- -- public methods -- IsModulate (me) returns Boolean from Standard; ---Level : public ---Purpose : @return TRUE if the texture is modulate. -- Default value is FALSE. SetModulate (me : mutable; theToModulate : Boolean from Standard); ---Level : public ---Purpose : @param theToModulate turn modulation on/off. IsRepeat (me) returns Boolean from Standard; ---Level : public ---Purpose : @return TRUE if the texture repeat is enabled. -- Default value is FALSE. SetRepeat (me : mutable; theToRepeat : Boolean from Standard); ---Level : public ---Purpose : @param theToRepeat turn texture repeat mode ON or OFF (clamping). Filter (me) returns TypeOfTextureFilter from Graphic3d; ---Level : public ---Purpose : @return texture interpolation filter. -- Default value is Graphic3d_TOTF_NEAREST. SetFilter (me : mutable; theFilter : TypeOfTextureFilter from Graphic3d); ---Level : public ---Purpose : @param theFilter texture interpolation filter. AnisoFilter (me) returns LevelOfTextureAnisotropy from Graphic3d; ---Level : public ---Purpose : @return level of anisontropy texture filter. -- Default value is Graphic3d_LOTA_OFF. SetAnisoFilter (me : mutable; theLevel : LevelOfTextureAnisotropy from Graphic3d); ---Level : public ---Purpose : @param theLevel level of anisontropy texture filter. Rotation (me) returns ShortReal from Standard; ---Level : public ---Purpose : @return rotation angle in degrees -- Default value is 0. SetRotation (me : mutable; theAngleDegrees : ShortReal from Standard); ---Level : public ---Purpose : @param theAngleDegrees rotation angle. Scale (me) returns Vec2 from Graphic3d; ---Level : public ---Purpose : @return scale factor -- Default value is no scaling (1.0; 1.0). ---C++ : return const & SetScale (me : mutable; theScale : Vec2 from Graphic3d); ---Level : public ---Purpose : @param theScale scale factor. Translation (me) returns Vec2 from Graphic3d; ---Level : public ---Purpose : @return translation vector -- Default value is no translation (0.0; 0.0). ---C++ : return const & SetTranslation (me : mutable; theVec : Vec2 from Graphic3d); ---Level : public ---Purpose : @param theVec translation vector. GenMode (me) returns TypeOfTextureMode from Graphic3d; ---Level : public ---Purpose : @return texture coordinates generation mode. -- Default value is Graphic3d_TOTM_MANUAL. GenPlaneS (me) returns Vec4 from Graphic3d; ---Level : public ---Purpose : @return texture coordinates generation plane S. ---C++ : return const & GenPlaneT (me) returns Vec4 from Graphic3d; ---Level : public ---Purpose : @return texture coordinates generation plane T. ---C++ : return const & SetGenMode (me : mutable; theMode : TypeOfTextureMode from Graphic3d; thePlaneS : Vec4 from Graphic3d; thePlaneT : Vec4 from Graphic3d); ---Level : public ---Purpose : Setup texture coordinates generation mode. fields -- apply lighting on texture or not myToModulate : Boolean from Standard; -- texture wrapping mode myToRepeat : Boolean from Standard; -- texture filter myFilter : TypeOfTextureFilter from Graphic3d; -- level of anisontropy texture filter myAnisoLevel : LevelOfTextureAnisotropy from Graphic3d; -- texture mapping - rotation angle in degrees around OZ axis myRotAngle : ShortReal from Standard; -- texture coordinate scale factor myScale : Vec2 from Graphic3d; -- texture coordinate translation vector myTranslation: Vec2 from Graphic3d; -- texture coordinates generation mode myGenMode : TypeOfTextureMode from Graphic3d; -- plane definition for s(x) coordinate (for Graphic3d_TOTM_EYE and Graphic3d_TOTM_OBJECT generation modes) myGenPlaneS : Vec4 from Graphic3d; -- plane definition for t(y) coordinate (for Graphic3d_TOTM_EYE and Graphic3d_TOTM_OBJECT generation modes) myGenPlaneT : Vec4 from Graphic3d; end TextureParams;