public class ReactorView extends AbstractPlantView
Reactor
. A reactor is rendered as a
capsule-like belt shape around a set of control channel pipes. A basic box
contains all of the pipes, while hemispheres are drawn on the top and bottom.Constructor and Description |
---|
ReactorView(java.lang.String name,
com.jme3.material.Material material)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
putPipes(java.util.List<java.lang.Integer> ids,
java.util.List<com.jme3.bounding.BoundingBox> boxes)
Adds or updates the view with BoundingBoxes defined by the specified
pipes.
|
void |
removePipes(java.util.List<java.lang.Integer> ids)
Detaches all BoundingBoxes defined by the specified pipes.
|
setBaseColor, setWireFrame
dispose, setLocation, setParentNode, setRotation
public ReactorView(java.lang.String name, com.jme3.material.Material material)
AbstractPlantView.geometry
.name
- The name of the view's root node.material
- The jME3 Material that should be used for the view's geometry.
Must not be null.public void removePipes(java.util.List<java.lang.Integer> ids)
ids
- The IDs of the pipes that have been detached from the
Junction.public void putPipes(java.util.List<java.lang.Integer> ids, java.util.List<com.jme3.bounding.BoundingBox> boxes)
ids
- A List of affected Pipe IDs.boxes
- The BoundingBoxes for the changing Pipes' outlets or inlets.