com.aspose.threed

Interfaces

Classes

Enums

Exceptions

com.aspose.threed

Class TextureBase

  • Direct Known Subclasses:
    Texture


    public class TextureBase
    extends A3DObject
    Base class for all concrete textures. Texture defines the look and feel of a geometry surface.
    • Constructor Detail

      • TextureBase

        public TextureBase(String name)
        Initializes a new instance of the TextureBase class.
        Parameters:
        name - Name.
    • Method Detail

      • getAlpha

        public double getAlpha()
        Gets the default alpha value of the texture This is valid when the getAlphaSource() is AlphaSource.PIXEL_ALPHA Default value is 1.0, valid value range is between 0 and 1
      • setAlpha

        public void setAlpha(double value)
        Sets the default alpha value of the texture This is valid when the getAlphaSource() is AlphaSource.PIXEL_ALPHA Default value is 1.0, valid value range is between 0 and 1
        Parameters:
        value - New value
      • getAlphaSource

        public AlphaSource getAlphaSource()
        Gets whether the texture defines the alpha channel. Default value is AlphaSource.NONE
      • setAlphaSource

        public void setAlphaSource(AlphaSource value)
        Sets whether the texture defines the alpha channel. Default value is AlphaSource.NONE
        Parameters:
        value - New value
      • getWrapModeU

        public WrapMode getWrapModeU()
        Gets the texture wrap modes in U.
      • setWrapModeU

        public void setWrapModeU(WrapMode value)
        Sets the texture wrap modes in U.
        Parameters:
        value - New value
      • getWrapModeV

        public WrapMode getWrapModeV()
        Gets the texture wrap modes in V.
      • setWrapModeV

        public void setWrapModeV(WrapMode value)
        Sets the texture wrap modes in V.
        Parameters:
        value - New value
      • getWrapModeW

        public WrapMode getWrapModeW()
        Gets the texture wrap modes in W.
      • setWrapModeW

        public void setWrapModeW(WrapMode value)
        Sets the texture wrap modes in W.
        Parameters:
        value - New value
      • getMinFilter

        public TextureFilter getMinFilter()
        Gets the filter for minification.
      • setMinFilter

        public void setMinFilter(TextureFilter value)
        Sets the filter for minification.
        Parameters:
        value - New value
      • getMagFilter

        public TextureFilter getMagFilter()
        Gets the filter for magnification.
      • setMagFilter

        public void setMagFilter(TextureFilter value)
        Sets the filter for magnification.
        Parameters:
        value - New value
      • getMipFilter

        public TextureFilter getMipFilter()
        Gets the filter for mip-level sampling.
      • setMipFilter

        public void setMipFilter(TextureFilter value)
        Sets the filter for mip-level sampling.
        Parameters:
        value - New value
      • getUVRotation

        public Vector3 getUVRotation()
        Gets the rotation of the texture
      • setUVRotation

        public void setUVRotation(Vector3 value)
        Sets the rotation of the texture
        Parameters:
        value - New value
      • getUVScale

        public Vector2 getUVScale()
        Gets the UV scale.
      • setUVScale

        public void setUVScale(Vector2 value)
        Sets the UV scale.
        Parameters:
        value - New value
      • getUVTranslation

        public Vector2 getUVTranslation()
        Gets the UV translation.
      • setUVTranslation

        public void setUVTranslation(Vector2 value)
        Sets the UV translation.
        Parameters:
        value - New value
      • setTranslation

        public void setTranslation(double u,
                                   double v)
        Sets the UV translation.
        Parameters:
        u - U.
        v - V.
      • setScale

        public void setScale(double u,
                             double v)
        Sets the UV scale.
        Parameters:
        u - U.
        v - V.
      • setRotation

        public void setRotation(double u,
                                double v)
        Sets the UV rotation.
        Parameters:
        u - U.
        v - V.