Class Drawable

java.lang.Object
cz.fidentis.analyst.drawables.Drawable
Direct Known Subclasses:
DrawableFeaturePoints, DrawableFpSkeleton, DrawableInteractiveMask, DrawableLine, DrawableMesh, DrawablePlane, DrawablePointCloud

public abstract class Drawable extends Object
A drawable object, i.e., an object with drawing state and capable to render itself into an OpenGL context.
  • Field Details

    • GLU_CONTEXT

      protected static final com.jogamp.opengl.glu.GLU GLU_CONTEXT
  • Constructor Details

    • Drawable

      public Drawable()
      Default constructor.
    • Drawable

      public Drawable(Drawable drawable)
      Copy constructor.
      Parameters:
      drawable - Original drawable object
      Throws:
      NullPointerException - if the input argument is null
  • Method Details

    • render

      public void render(com.jogamp.opengl.GL2 gl)
      Renders the scene.
      Parameters:
      gl - OpenGL context
    • initRendering

      protected void initRendering(com.jogamp.opengl.GL2 gl)
    • renderObject

      protected abstract void renderObject(com.jogamp.opengl.GL2 gl)
    • finishRendering

      protected void finishRendering(com.jogamp.opengl.GL2 gl)
    • show

      public void show(boolean show)
      Shows or hides the drawable.
      Parameters:
      show - If true, then the drawable is shown.
    • isShown

      public boolean isShown()
      Returns:
      true if the object is included (rendered) in the scene.
    • setColor

      public void setColor(Color color)
      Sets color
      Parameters:
      color - Color
    • getColor

      public Color getColor()
      Returns:
      Color
    • getTransparency

      public float getTransparency()
      Returns:
      Current value of transparency
    • setTransparency

      public void setTransparency(float transparency)
      Sets transparency
      Parameters:
      transparency - Transparency
    • getHighlights

      public Color getHighlights()
      Returns:
      Color of highlights
    • setHighlights

      public void setHighlights(Color highlights)
      Sets Color of highlights
      Parameters:
      highlights -
    • getRenderMode

      public RenderingMode getRenderMode()
      Returns:
      Value of renderMode
    • setRenderMode

      public void setRenderMode(RenderingMode renderMode)
      Sets rendering mode
      Parameters:
      renderMode - Rendering mode
    • setPolygonMode

      protected void setPolygonMode(com.jogamp.opengl.GL2 gl)