public interface IPlantView
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.widgets.Composite |
createComposite(org.eclipse.swt.widgets.Composite parent)
Creates a new SWT
Composite with this object's associated Plant
View embedded within it. |
void |
dispose()
Dispose the plant view and its resources.
|
void |
exportImage()
Exports the view to an image file.
|
void |
pitchCamera(float radians)
Changes the pitch of the camera (rotates up and down).
|
void |
raiseCamera(float distance)
Moves the camera up or down.
|
void |
resetCamera()
Resets the plant view's camera to its default position and orientation.
|
void |
rollCamera(float radians)
Rotates (rolls) the camera right or left.
|
void |
setDefaultCameraXByY()
Sets the camera to face the origin with the X axis horizontal and the Y
axis vertical.
|
void |
setDefaultCameraYByZ()
Sets the camera to face the origin with the Y axis horizontal and the Z
axis vertical.
|
void |
setDefaultCameraZByX()
Sets the camera to face the origin with the Z axis horizontal and the X
axis vertical.
|
void |
setPlant(IPlantData plant)
Set the IPlantData object from which the view will render.
|
void |
setWireframe(boolean wireframe)
Sets all rendered plant components to be viewed as wireframes or as solid
objects.
|
void |
strafeCamera(float distance)
Moves the camera right or left.
|
void |
thrustCamera(float distance)
Moves the camera forward or backward.
|
void |
yawCamera(float radians)
Changes the yaw of the camera right or left.
|
org.eclipse.swt.widgets.Composite createComposite(org.eclipse.swt.widgets.Composite parent)
Composite
with this object's associated Plant
View embedded within it.parent
- The parent Composite
.Composite
that has an embedded visualization
managed by this PlantState
. This
Composite
's layout should be set by the caller.
This Composite
should be disposed when it is no
longer required.void dispose()
void exportImage()
void resetCamera()
#setDefaultCameraPosition(Vector3f)
,
#setDefaultCameraOrientation(Vector3f, Vector3f)
void setDefaultCameraYByZ()
void setDefaultCameraXByY()
void setDefaultCameraZByX()
void setPlant(IPlantData plant)
plant
- The new data source for the view.void setWireframe(boolean wireframe)
wireframe
- If true, plant components will be rendered with wireframes. If
false, they will be rendered solid.void thrustCamera(float distance)
distance
- If positive, the camera moves forward. If negative, the camera
moves backward.void strafeCamera(float distance)
distance
- If positive, the camera moves right. If negative, the camera
moves left.void raiseCamera(float distance)
distance
- If positive, the camera moves up. If negative, the camera
moves down.void rollCamera(float radians)
radians
- If positive, the camera rolls right. If negative, the camera
rolls left.void pitchCamera(float radians)
radians
- If positive, the camera pitches up. If negative, the camera
pitches down.void yawCamera(float radians)
radians
- If positive, the camera rotates right. If negative, the camera
rotates left.