Enum Class GlslProgramDef

java.lang.Object
java.lang.Enum<GlslProgramDef>
cz.fidentis.analyst.glsl.code.GlslProgramDef
All Implemented Interfaces:
Serializable, Comparable<GlslProgramDef>, Constable

public enum GlslProgramDef extends Enum<GlslProgramDef>
Defined GLSL programs, i.e., their dependencies on defined shaders and optional unified variables used inside the program code.
  • Enum Constant Details

    • SHADING_GLSL_PROGRAM

      public static final GlslProgramDef SHADING_GLSL_PROGRAM
      Needed for the view-dependent (correct) transparency, "fog", and glyphs shown in the 3D scene
    • COLOR_MIXING_GLSL_PROGRAM

      public static final GlslProgramDef COLOR_MIXING_GLSL_PROGRAM
      Needed for the view-dependent (correct) transparency and the "fog" in the 3D scene
    • CONTOURS_GLSL_PROGRAM

      public static final GlslProgramDef CONTOURS_GLSL_PROGRAM
      Visualization of intersection contours in the 3D scene
    • SHADOW_MAP_GLSL_PROGRAM

      public static final GlslProgramDef SHADOW_MAP_GLSL_PROGRAM
      Used by the visualization of glyphs (casting shadows)
    • TRIANGLE_STATS_GLSL_PROGRAM

      public static final GlslProgramDef TRIANGLE_STATS_GLSL_PROGRAM
      Used by uniform grid construction, precomputes the triangle's perimeter and triangle's bounding box.
    • GRID_PARAMETERS_GLSL_PROGRAM

      public static final GlslProgramDef GRID_PARAMETERS_GLSL_PROGRAM
      Used by uniform grid construction, calculates the grid's bounding box and estimates the proper cell size.
    • GRID_CELL_OVERLAP_COUNT_GLSL_PROGRAM

      public static final GlslProgramDef GRID_CELL_OVERLAP_COUNT_GLSL_PROGRAM
      Used by uniform grid construction, precomputes how much memory we need to allocate for which cell.
    • GRID_CELL_BOUNDS_GLSL_PROGRAM

      public static final GlslProgramDef GRID_CELL_BOUNDS_GLSL_PROGRAM
      Used by uniform grid construction, creates an array (cell bounds) which is used to index cell's triangles.
    • GRID_SORTED_TRIANGLES_GLSL_PROGRAM

      public static final GlslProgramDef GRID_SORTED_TRIANGLES_GLSL_PROGRAM
      Used by uniform grid construction, creates an array with triangles to which cell bounds point.
    • DISTANCE_RAY_CASTING_GLSL_PROGRAM

      public static final GlslProgramDef DISTANCE_RAY_CASTING_GLSL_PROGRAM
      Ray-casting distance measurement between two meshes using already created uniform grid.
  • Method Details

    • values

      public static GlslProgramDef[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static GlslProgramDef valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getShaders

      public List<GlslShaderDef> getShaders()
    • getUniformLocations

      public List<String> getUniformLocations()