Documentation of 'org.jzy3d.plot3d.primitives.textured.DrawableTexture' Java class
DrawableTexture
org.jzy3d.plot3d.primitives.textured

Class DrawableTexture

  • All Implemented Interfaces:
    IGLRenderer, ISortableDraw, ITranslucent
    Direct Known Subclasses:
    PickableTexture


    public class DrawableTexture
    extends AbstractDrawable
    implements ITranslucent
    A DrawableTexture can only mount its texture while the GL2 thread is current, so the best is to let draw() automount texture file the first time the resource is required. When a texture is loaded for the first time, it updates the current view bounds since the texture bounds where up to now unknown and fixed to origin with no width. A DrawableTexture requires a color filter (default is white), and a set of coordinates defining the polygon on which the texture should be drawn. This texture implementation impose the texture to be perpendicular to a PlaneAxis. It is thus defined with 2d Coordinates in the plane defined by the {PlaneAxis, axisValue}
    • Method Detail

      • getColorFilter

        public Color getColorFilter()
      • setColorFilter

        public void setColorFilter(Color filter)
      • getManualTextureMapping

        public static java.util.List<Coord2d> getManualTextureMapping(float width,
                                                                      float height,
                                                                      float xoffset,
                                                                      float yoffset)
        Must supply the expected size of texture in 3d coordinates.
        Returns:
      • getManualTextureMapping

        public static java.util.List<Coord2d> getManualTextureMapping(float width,
                                                                      float height)
      • debugMapping

        public void debugMapping()
      • getPlanePosition

        public Coord2d getPlanePosition()
      • setPlanePosition

        public void setPlanePosition(Coord2d planePosition)
      • getTextureScale

        public Transform getTextureScale()
      • setTextureScale

        public void setTextureScale(Transform textureScale)
      • draw

        public void draw(com.jogamp.opengl.GL gl,
                         com.jogamp.opengl.glu.GLU glu,
                         Camera cam)
        Description copied from class: AbstractDrawable
        Call OpenGL2 routines for rendering the object.
        Specified by:
        draw in interface IGLRenderer
        Specified by:
        draw in class AbstractDrawable
        Parameters:
        gl - GL2 context
        glu - GLU context
        cam - a reference to a shooting Camera.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.