|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jreality.scene.tool.AbstractTool
de.jreality.tools.FlyToPickTool
public class FlyToPickTool
Tool to fly to a picked target without "fixedYAxis" the avatar will Fly to the picked destination, while rotating around the target. The animation stops at a fixed Ratio of the way from start to picked destination. with "fixedYAxis" enabled, the avatar will only rotate around the vertical Axis by the target, changing hight and distance. The Avatar and Camera stay in the same allign except turning around the Y Axis. By simulating a Scene with no specified up/Down-direktion one should use "fixedYAxis=false" Otherwise "fixedYAxis=true" is strongly recommend
Constructor Summary | |
---|---|
FlyToPickTool()
|
Method Summary | |
---|---|
void |
activate(ToolContext tc)
This method is called when the tool gets activated. |
void |
deactivate(ToolContext tc)
this method is called when the tool was activate and the AxisState of the activation slot changes to AxisState.RELEASED - to zero. |
String |
getDescription()
Gives an overall description of this Tool. |
double |
getFlightTime()
|
double |
getGoFactor()
|
boolean |
isHoldYAxis()
|
void |
perform(ToolContext tc)
This method is called when the tool is activated and any AxisState or TransformationMatrix of the current slots changes. |
void |
setFlightTime(double flightTime)
|
void |
setGoFactor(double goFactor)
|
void |
setHoldYAxis(boolean holdYAxis)
|
Methods inherited from class de.jreality.scene.tool.AbstractTool |
---|
addCurrentSlot, equals, fullDescription, getActivationSlots, getCurrentSlots, getDescription, hashCode, removeCurrentSlot, setDescription |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FlyToPickTool()
Method Detail |
---|
public void activate(ToolContext tc)
Tool
activate
in interface Tool
activate
in class AbstractTool
tc
- The current tool contextpublic void deactivate(ToolContext tc)
Tool
deactivate
in interface Tool
deactivate
in class AbstractTool
tc
- The current tool contextpublic void perform(ToolContext tc)
Tool
perform
in interface Tool
perform
in class AbstractTool
tc
- The current tool contextpublic String getDescription()
Tool
getDescription
in interface Tool
getDescription
in class AbstractTool
public double getFlightTime()
public void setFlightTime(double flightTime)
public double getGoFactor()
public void setGoFactor(double goFactor)
public boolean isHoldYAxis()
public void setHoldYAxis(boolean holdYAxis)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |