public class HeatExchangerController extends PipeController
HeatExchanger
model with the HeatExchangerView
. Any updates
to the view should be coordinated through this class.component
Constructor and Description |
---|
HeatExchangerController(HeatExchanger model,
HeatExchangerView view,
IRenderQueue renderQueue)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
IUpdateable |
getModel()
Overrides the default return value because the parent classes return the
primary
Pipe instead of the HeatExchanger itself. |
com.jme3.bounding.BoundingBox |
setSecondaryInletPosition(com.jme3.math.Vector3f center) |
com.jme3.bounding.BoundingBox |
setSecondaryOutletPosition(com.jme3.math.Vector3f center) |
void |
update(IUpdateable component)
|
getBounds, getInletBounds, getInletBounds, getOutletBounds, getOutletBounds
setBaseColor, setWireFrame
dispose, setParentNode
public HeatExchangerController(HeatExchanger model, HeatExchangerView view, IRenderQueue renderQueue)
model
- The model (a Junction
) for which this controller
provides a view.view
- The view (a JunctionView
) associated with this
controller.renderQueue
- The queue responsible for tasks that need to be performed on
the jME rendering thread.public com.jme3.bounding.BoundingBox setSecondaryInletPosition(com.jme3.math.Vector3f center)
setSecondaryInletPosition
in class PipeController
public com.jme3.bounding.BoundingBox setSecondaryOutletPosition(com.jme3.math.Vector3f center)
setSecondaryOutletPosition
in class PipeController
public void update(IUpdateable component)
update
in interface IUpdateableListener
update
in class PipeController
component
- The component that was updated in some way.public IUpdateable getModel()
Pipe
instead of the HeatExchanger
itself.getModel
in class AbstractController