public class ClickWheelCameraZoomTool extends AbstractTool
It has two input slots which are included in the standard configuration file with the names "PrimaryUp" and "PrimaryDown". By default they are attached to the mouse wheel.
Each up click of the wheel results in zooming in on the camera; each down click results in zooming out.
There is a settable speed control (#setSpeed(double))
which controls how large each
zoom step is.
Constructor and Description |
---|
ClickWheelCameraZoomTool() |
Modifier and Type | Method and Description |
---|---|
void |
activate(ToolContext tc)
This method is called when the tool gets activated.
|
double |
getSpeed() |
void |
setSpeed(double speed) |
addCurrentSlot, deactivate, equals, fullDescription, getActivationSlots, getCurrentSlots, getDescription, getDescription, hashCode, perform, removeCurrentSlot, setDescription
public void activate(ToolContext tc)
Tool
activate
in interface Tool
activate
in class AbstractTool
tc
- The current tool contextpublic double getSpeed()
public void setSpeed(double speed)