Package edu.cnu.mdi.view.demo.geoslice
Class GeometrySliceModel
java.lang.Object
edu.cnu.mdi.view.demo.geoslice.GeometrySliceModel
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intNumber of synthetic detector regions.static final intNumber of wire layers in each region.static final intNumber of wires in each layer. -
Method Summary
Modifier and TypeMethodDescriptionstatic GeometrySliceModelCreate the standard synthetic model used by the demo views.Return the synthetic region shells.getWires()Return the synthetic wires.
-
Field Details
-
NUM_CHAMBERS
public static final int NUM_CHAMBERSNumber of synthetic detector regions.- See Also:
-
NUM_LAYERS
public static final int NUM_LAYERSNumber of wire layers in each region.- See Also:
-
WIRES_PER_LAYER
public static final int WIRES_PER_LAYERNumber of wires in each layer.- See Also:
-
-
Method Details
-
createDefault
Create the standard synthetic model used by the demo views.- Returns:
- populated default model
-
getWires
Return the synthetic wires.- Returns:
- immutable view of the model wires
-
getShells
Return the synthetic region shells.- Returns:
- immutable view of the model shells
-