public class PipeController extends AbstractPlantController
Pipe
and an
associated PipeView
. Any updates to the view should be coordinated
through this class.component
Constructor and Description |
---|
PipeController(Pipe model,
PipeView view,
IRenderQueue renderQueue)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
com.jme3.bounding.BoundingBox |
getBounds()
Gets a
BoundingBox oriented along the default axes that contains
all vertices used to render the pipe. |
com.jme3.bounding.BoundingBox |
getInletBounds()
Gets a
BoundingBox oriented along the default axes that contains
all vertices used to render the incoming (bottom) end of the pipe. |
com.jme3.bounding.BoundingBox |
getInletBounds(boolean primary)
Gets a
BoundingBox oriented along the default axes that contains
all vertices used to render the incoming (bottom) end of the pipe. |
com.jme3.bounding.BoundingBox |
getOutletBounds()
Gets a
BoundingBox oriented along the default axes that contains
all vertices used to render the outgoing (top) end of the pipe. |
com.jme3.bounding.BoundingBox |
getOutletBounds(boolean primary)
Gets a
BoundingBox oriented along the default axes that contains
all vertices used to render the outgoing (top) end of the pipe. |
com.jme3.bounding.BoundingBox |
setSecondaryInletPosition(com.jme3.math.Vector3f center) |
com.jme3.bounding.BoundingBox |
setSecondaryOutletPosition(com.jme3.math.Vector3f center) |
void |
update(IUpdateable component)
|
setBaseColor, setWireFrame
dispose, getModel, setParentNode
public PipeController(Pipe model, PipeView view, IRenderQueue renderQueue)
public com.jme3.bounding.BoundingBox getInletBounds()
BoundingBox
oriented along the default axes that contains
all vertices used to render the incoming (bottom) end of the pipe. This
is for the primary inlet, and is the same as calling
getInletBounds(true)
.public com.jme3.bounding.BoundingBox getInletBounds(boolean primary)
BoundingBox
oriented along the default axes that contains
all vertices used to render the incoming (bottom) end of the pipe.primary
- If true, gets the bounds of the pipe's primary inlet.
If false, gets the bounds of the pipe's secondary
inlet.public com.jme3.bounding.BoundingBox getOutletBounds()
BoundingBox
oriented along the default axes that contains
all vertices used to render the outgoing (top) end of the pipe. This is
for the primary outlet, and is the same as calling
getOutletBounds(true)
.public com.jme3.bounding.BoundingBox getOutletBounds(boolean primary)
BoundingBox
oriented along the default axes that contains
all vertices used to render the outgoing (top) end of the pipe.primary
- If true, gets the bounds of the pipe's primary outlet.
If false, gets the bounds of the pipe's secondary
outlet.public com.jme3.bounding.BoundingBox getBounds()
BoundingBox
oriented along the default axes that contains
all vertices used to render the pipe.public void update(IUpdateable component)
update
in interface IUpdateableListener
update
in class AbstractController
component
- The component that was updated in some way.public com.jme3.bounding.BoundingBox setSecondaryInletPosition(com.jme3.math.Vector3f center)
public com.jme3.bounding.BoundingBox setSecondaryOutletPosition(com.jme3.math.Vector3f center)