Interface LabelSet3D.LabelCull

Enclosing class:
LabelSet3D
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface LabelSet3D.LabelCull
Functional interface for optional per-label visibility tests.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(com.jogamp.opengl.GL2 gl, float[] modelView, float x, float y, float z, float winX, float winY, float winZ)
    Decide whether to render a label for a point.
  • Method Details

    • accept

      boolean accept(com.jogamp.opengl.GL2 gl, float[] modelView, float x, float y, float z, float winX, float winY, float winZ)
      Decide whether to render a label for a point.
      Parameters:
      gl - current GL2
      modelView - a snapshot of GL_MODELVIEW_MATRIX for the 3D scene (length 16)
      x - point world x
      y - point world y
      z - point world z
      winX - projected window x (pixels, origin at left)
      winY - projected window y (pixels, origin at bottom)
      winZ - projected window depth in [0,1] (gluProject convention)
      Returns:
      true to draw the label, false to skip it