Package edu.cnu.mdi.mdi3D.item3D
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.
Functional interface for optional per-label visibility tests.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(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 GL2modelView- a snapshot of GL_MODELVIEW_MATRIX for the 3D scene (length 16)x- point world xy- point world yz- point world zwinX- 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
-