|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBFrame
artofillusion.LayoutWindow
public class LayoutWindow
The LayoutWindow class represents the main window for creating and laying out scenes.
Constructor Summary | |
---|---|
LayoutWindow(Scene s)
Create a new LayoutWindow for editing a Scene. |
Method Summary | |
---|---|
void |
addObject(Object3D obj,
CoordinateSystem coords,
java.lang.String name,
UndoRecord undo)
Add a new object to the scene. |
void |
addObject(ObjectInfo info,
int index,
UndoRecord undo)
Add a new object to the scene. |
void |
addObject(ObjectInfo info,
UndoRecord undo)
Add a new object to the scene. |
void |
addToSelection(int which)
Set an object to be selected. |
void |
alignObjectsCommand()
|
void |
bindToParentCommand()
|
void |
clearCommand()
|
void |
clearSelection()
Deselect all objects. |
void |
clearWaitCursor()
Remove the wait cursor from everything in this window. |
boolean |
confirmClose()
This method is called to close the window. |
void |
convertToActorCommand()
|
void |
convertToTriangleCommand()
|
void |
copyCommand()
|
void |
createScriptObjectCommand()
|
void |
cutCommand()
|
void |
duplicateCommand()
|
void |
editObjectCommand()
|
void |
environmentCommand()
|
void |
executeScript(java.io.File f)
Execute the tool script contained in a file, passing a reference to this window in its "window" variable. |
void |
frameWithCameraCommand(boolean selectionOnly)
|
ViewerCanvas[] |
getAllViews()
Get all ViewerCanvases contained in this window. |
BMenu |
getAnimationMenu()
Get the Animation menu. |
DockingContainer |
getDockingContainer(BTabbedPane.TabPosition position)
Get the DockingContainer which holds DockableWidgets on one side of the window. |
BMenu |
getEditMenu()
Get the Edit menu. |
BMenu |
getFileMenu()
Get the File menu. |
BFrame |
getFrame()
Get the Frame corresponding to this window. |
java.awt.Dimension |
getMinimumSize()
|
BMenu |
getObjectMenu()
Get the Object menu. |
BPopupMenu |
getPopupMenu()
Get the popup menu. |
Scene |
getScene()
Get the Scene associated with this window. |
BMenu |
getSceneMenu()
Get the Scene menu. |
Score |
getScore()
Get the Score for this window. |
int[] |
getSelectedIndices()
Get a list of the indices of all selected objects. |
java.util.Collection<ObjectInfo> |
getSelectedObjects()
Get a collection of all selected objects. |
int[] |
getSelectionWithChildren()
Get the indices of all objects which are either selected, or are children of selected objects. |
boolean |
getSplitView()
Get whether the window is split into four views. |
ToolPalette |
getToolPalette()
Get the ToolPalette for this window. |
BMenu |
getToolsMenu()
Get the Tools menu. |
ViewerCanvas |
getView()
Get the ViewerCanvas which currently has focus. |
boolean |
isModified()
Determine whether the scene has been modified since it was last saved. |
boolean |
isObjectSelected(int index)
Determine whether an object is selected. |
boolean |
isObjectSelected(ObjectInfo info)
Determine whether an object is selected. |
void |
jumpToTimeCommand()
|
void |
linkExternalCommand()
|
void |
objectLayoutCommand()
|
void |
pasteCommand()
|
void |
preferencesCommand()
|
void |
rebuildItemList()
Rebuild the TreeList of objects, attempting as much as possible to preserve its current state. |
void |
rebuildScriptsMenu()
Rebuild the list of tool scripts in the Tools menu. |
void |
redoCommand()
|
void |
removeFromSelection(int which)
Deselect a single object. |
void |
removeObject(int which,
UndoRecord undo)
Remove an object from the scene. |
void |
renameObjectCommand()
|
void |
renderCommand()
|
void |
saveAsCommand()
|
void |
saveCommand()
|
void |
selectAllCommand()
|
void |
setCurrentView(ViewerCanvas view)
Set which ViewerCanvas has focus. |
void |
setGridCommand()
|
void |
setHelpText(java.lang.String text)
Set the help text displayed at the bottom of the window. |
void |
setModified()
Set whether the scene has been modified since it was last saved. |
void |
setObjectListVisible(boolean visible)
Set whether the object list should be displayed. |
void |
setObjectName(int which,
java.lang.String name)
Set the name of an object in the scene. |
void |
setScoreVisible(boolean visible)
Set whether the score should be displayed. |
void |
setSelection(int which)
Set a single object in the scene to be selected. |
void |
setSelection(int[] which)
Set the list of objects in the scene which should be selected. |
void |
setSplitView(boolean split)
Set whether the window is split into four views. |
void |
setTemplateCommand()
|
void |
setTextureCommand()
|
void |
setTime(double time)
Set the time which is currently being displayed. |
void |
setTool(EditingTool tool)
Set the selected EditingTool for this window. |
void |
setUndoRecord(UndoRecord command)
Set the UndoRecord which will be executed if the user chooses Undo from the Edit menu. |
void |
setWaitCursor()
Set the wait cursor on everything in this window. |
void |
severCommand()
|
void |
showPopupMenu(Widget w,
int x,
int y)
Display the popup menu. |
void |
texturesCommand()
|
void |
toggleViewsCommand()
|
void |
transformObjectCommand()
|
void |
undoCommand()
|
void |
updateImage()
Update the images displayed in all of the viewport. |
void |
updateMenus()
Update the state of all menu items. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LayoutWindow(Scene s)
Method Detail |
---|
public void rebuildItemList()
public void rebuildScriptsMenu()
public void showPopupMenu(Widget w, int x, int y)
showPopupMenu
in interface PopupMenuManager
public BMenu getFileMenu()
public BMenu getEditMenu()
public BMenu getSceneMenu()
public BMenu getObjectMenu()
public BMenu getAnimationMenu()
public BMenu getToolsMenu()
public BPopupMenu getPopupMenu()
public DockingContainer getDockingContainer(BTabbedPane.TabPosition position)
public void setWaitCursor()
public void clearWaitCursor()
public java.awt.Dimension getMinimumSize()
public boolean confirmClose()
confirmClose
in interface EditingWindow
public void setTool(EditingTool tool)
setTool
in interface EditingWindow
public void setHelpText(java.lang.String text)
setHelpText
in interface EditingWindow
public BFrame getFrame()
getFrame
in interface EditingWindow
public void updateImage()
updateImage
in interface EditingWindow
public void updateMenus()
updateMenus
in interface EditingWindow
public void setUndoRecord(UndoRecord command)
setUndoRecord
in interface EditingWindow
public void setModified()
setModified
in interface EditingWindow
public boolean isModified()
public void addObject(Object3D obj, CoordinateSystem coords, java.lang.String name, UndoRecord undo)
public void addObject(ObjectInfo info, UndoRecord undo)
public void addObject(ObjectInfo info, int index, UndoRecord undo)
public void removeObject(int which, UndoRecord undo)
public void setObjectName(int which, java.lang.String name)
public void setTime(double time)
public Scene getScene()
getScene
in interface EditingWindow
public ViewerCanvas getView()
getView
in interface EditingWindow
public ViewerCanvas[] getAllViews()
getAllViews
in interface EditingWindow
public void setCurrentView(ViewerCanvas view)
view
- the ViewerCanvas which should become the currently focused view. If this
is not one of the views belonging to this window, this method does nothing.public Score getScore()
public ToolPalette getToolPalette()
getToolPalette
in interface EditingWindow
public void setObjectListVisible(boolean visible)
public void setScoreVisible(boolean visible)
public void setSplitView(boolean split)
public boolean getSplitView()
public int[] getSelectedIndices()
public java.util.Collection<ObjectInfo> getSelectedObjects()
public boolean isObjectSelected(ObjectInfo info)
public boolean isObjectSelected(int index)
public int[] getSelectionWithChildren()
public void setSelection(int which)
public void setSelection(int[] which)
public void addToSelection(int which)
public void clearSelection()
public void removeFromSelection(int which)
public void linkExternalCommand()
public void saveCommand()
public void saveAsCommand()
public void undoCommand()
public void redoCommand()
public void cutCommand()
public void copyCommand()
public void pasteCommand()
public void clearCommand()
public void selectAllCommand()
public void preferencesCommand()
public void duplicateCommand()
public void severCommand()
public void editObjectCommand()
public void objectLayoutCommand()
public void transformObjectCommand()
public void alignObjectsCommand()
public void setTextureCommand()
public void renameObjectCommand()
public void convertToTriangleCommand()
public void convertToActorCommand()
public void createScriptObjectCommand()
public void jumpToTimeCommand()
public void bindToParentCommand()
public void renderCommand()
public void toggleViewsCommand()
public void setTemplateCommand()
public void setGridCommand()
public void frameWithCameraCommand(boolean selectionOnly)
public void texturesCommand()
public void environmentCommand()
public void executeScript(java.io.File f)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |