|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.threerings.tudey.tools.EditorTool
com.threerings.tudey.tools.BaseMover
public abstract class BaseMover
The base class of Mover and Palette.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.threerings.tudey.tools.EditorTool |
|---|
EditorTool.DirectionalConstraint, EditorTool.Filter |
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected float |
_angle
The angle about the z axis. |
protected Vector2f |
_center
The center of the entries. |
protected SelectionCursor |
_cursor
The cursor representing the selection that we're moving. |
protected boolean |
_cursorVisible
Whether or not the cursor is in the window. |
protected int |
_elevation
The entries' elevation. |
protected TudeySceneModel.Entry[] |
_entries
The (untransformed) entries that we're moving. |
protected Vector3f |
_isect
Holds the result of an intersection test. |
protected TudeySceneModel.Entry[] |
_tentries
The transformed entries. |
protected boolean |
_tiles
Whether or not any of the entries are tiles (in which case we must stay aligned). |
protected Transform3D |
_transform
The selection transform. |
protected ArrayList<TudeySceneModel.Entry> |
_underneath
Holds the entries intersecting the cursor. |
| Fields inherited from class com.threerings.tudey.tools.EditorTool |
|---|
_button, _editor, _msgs, _pick, _scene, FINE_ROTATION_INCREMENT |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
BaseMover(SceneEditor editor)
Creates the base mover tool. |
|
| Method Summary | |
|---|---|
void |
calculateElevation(int minElevation,
int maxElevation)
Calculates the elevation. |
void |
clear()
Clears out anything being moved. |
void |
composite()
Adds this object's Dependencys and Enqueueables to the compositor in
preparation for rendering. |
void |
init()
Initializes the tool after the renderer has been initialized. |
void |
mousePressed(MouseEvent event)
|
void |
mouseWheelMoved(MouseWheelEvent event)
|
void |
move(TudeySceneModel.Entry... entries)
Requests to start moving the specified entries. |
protected TudeySceneModel.Entry[] |
placeEntries()
Places the transformed entries in the scene. |
void |
tick(float elapsed)
Updates the state of this object based on the elapsed time in seconds. |
protected TudeySceneModel.Entry[] |
transform(TudeySceneModel.Entry[] entries,
Transform3D transform)
Transforms the supplied entries, returning a new entry array containing the results. |
protected void |
updateCursor()
Updates the entry transform and cursor visibility based on the location of the mouse cursor. |
| Methods inherited from class com.threerings.tudey.tools.EditorTool |
|---|
activate, allowsMouseCamera, deactivate, entryAdded, entryRemoved, entryUpdated, getMousePlaneIntersection, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseReleased, sceneChanged, setButton |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected SelectionCursor _cursor
protected TudeySceneModel.Entry[] _entries
protected TudeySceneModel.Entry[] _tentries
protected boolean _tiles
protected Vector2f _center
protected int _elevation
protected Transform3D _transform
protected boolean _cursorVisible
protected float _angle
protected Vector3f _isect
protected ArrayList<TudeySceneModel.Entry> _underneath
| Constructor Detail |
|---|
public BaseMover(SceneEditor editor)
| Method Detail |
|---|
public void clear()
public void move(TudeySceneModel.Entry... entries)
public void init()
EditorTool
init in class EditorToolpublic void tick(float elapsed)
Tickable
tick in interface Tickabletick in class EditorToolpublic void composite()
CompositableDependencys and Enqueueables to the compositor in
preparation for rendering.
composite in interface Compositablecomposite in class EditorToolpublic void mousePressed(MouseEvent event)
mousePressed in interface MouseListenermousePressed in class EditorToolpublic void mouseWheelMoved(MouseWheelEvent event)
mouseWheelMoved in interface MouseWheelListenermouseWheelMoved in class EditorToolprotected void updateCursor()
protected TudeySceneModel.Entry[] placeEntries()
protected TudeySceneModel.Entry[] transform(TudeySceneModel.Entry[] entries,
Transform3D transform)
public void calculateElevation(int minElevation,
int maxElevation)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||