Class GeometrySliceModel

java.lang.Object
edu.cnu.mdi.view.demo.geoslice.GeometrySliceModel

public final class GeometrySliceModel extends Object
Synthetic three-dimensional model used by the geometry slice demo views.

This class owns the demo model, not the rendered MDI or MDI-3D items. It creates a small detector-like geometry consisting of three region shells and many wire-like 3D line segments. A 2D view can slice this model and render the intersections as ordinary MDI items; a 3D view can render the same source model directly as lines, wireframes, and a slice plane.

The model is intentionally simple and pedagogical. It is inspired by detector displays, but it is not intended to represent any particular detector exactly.

  • Field Details

    • NUM_CHAMBERS

      public static final int NUM_CHAMBERS
      Number of synthetic detector regions.
      See Also:
    • NUM_LAYERS

      public static final int NUM_LAYERS
      Number of wire layers in each region.
      See Also:
    • WIRES_PER_LAYER

      public static final int WIRES_PER_LAYER
      Number of wires in each layer.
      See Also:
  • Method Details

    • createDefault

      public static GeometrySliceModel createDefault()
      Create the standard synthetic model used by the demo views.
      Returns:
      populated default model
    • getWires

      public List<Wire3D> getWires()
      Return the synthetic wires.
      Returns:
      immutable view of the model wires
    • getShells

      public List<Shell3D> getShells()
      Return the synthetic region shells.
      Returns:
      immutable view of the model shells