|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbuoy.event.EventSource
buoy.widget.Widget
buoy.widget.WidgetContainer
buoy.widget.WindowWidget
buoy.widget.BFrame
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. |
buoy.widget.BMenu |
getAnimationMenu()
Get the Animation menu. |
DockingContainer |
getDockingContainer(buoy.widget.BTabbedPane.TabPosition position)
Get the DockingContainer which holds DockableWidgets on one side of the window. |
buoy.widget.BMenu |
getEditMenu()
Get the Edit menu. |
buoy.widget.BMenu |
getFileMenu()
Get the File menu. |
buoy.widget.BFrame |
getFrame()
Get the Frame corresponding to this window. |
java.awt.Dimension |
getMinimumSize()
|
buoy.widget.BMenu |
getObjectMenu()
Get the Object menu. |
buoy.widget.BPopupMenu |
getPopupMenu()
Get the popup menu. |
Scene |
getScene()
Get the Scene associated with this window. |
buoy.widget.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. |
ToolPalette |
getToolPalette()
Get the ToolPalette for this window. |
buoy.widget.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 |
materialsCommand()
|
void |
objectLayoutCommand()
|
void |
pasteCommand()
|
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 |
setMaterialCommand()
|
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(buoy.widget.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 buoy.widget.BFrame |
|---|
getChildCount, getChildren, getComponent, getFrames, getIcon, getMenuBar, getTitle, isIconified, isMaximized, isResizable, remove, removeAll, setIcon, setIconified, setMaximized, setMenuBar, setResizable, setTitle |
| Methods inherited from class buoy.widget.WindowWidget |
|---|
dispose, getContent, getDefaultButton, isVisible, layoutChildren, pack, setBounds, setContent, setDefaultButton, setVisible, toBack, toFront |
| Methods inherited from class buoy.widget.WidgetContainer |
|---|
isOpaque, setOpaque |
| Methods inherited from class buoy.widget.Widget |
|---|
addEventLink, dispatchEvent, getBackground, getBounds, getCursor, getFont, getMaximumSize, getName, getParent, getPreferredSize, hasFocus, isEnabled, isFocusable, repaint, requestFocus, setBackground, setCursor, setEnabled, setFocusable, setFont, setName |
| Methods inherited from class buoy.event.EventSource |
|---|
addEventLink, addEventLink, removeEventLink |
| 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(buoy.widget.Widget w,
int x,
int y)
showPopupMenu in interface PopupMenuManagerpublic buoy.widget.BMenu getFileMenu()
public buoy.widget.BMenu getEditMenu()
public buoy.widget.BMenu getSceneMenu()
public buoy.widget.BMenu getObjectMenu()
public buoy.widget.BMenu getAnimationMenu()
public buoy.widget.BMenu getToolsMenu()
public buoy.widget.BPopupMenu getPopupMenu()
public DockingContainer getDockingContainer(buoy.widget.BTabbedPane.TabPosition position)
public void setWaitCursor()
public void clearWaitCursor()
public java.awt.Dimension getMinimumSize()
getMinimumSize in class buoy.widget.Widgetpublic boolean confirmClose()
confirmClose in interface EditingWindowpublic void setTool(EditingTool tool)
setTool in interface EditingWindowpublic void setHelpText(java.lang.String text)
setHelpText in interface EditingWindowpublic buoy.widget.BFrame getFrame()
getFrame in interface EditingWindowpublic void updateImage()
updateImage in interface EditingWindowpublic void updateMenus()
updateMenus in interface EditingWindowpublic void setUndoRecord(UndoRecord command)
setUndoRecord in interface EditingWindowpublic void setModified()
setModified in interface EditingWindowpublic 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 EditingWindowpublic ViewerCanvas getView()
getView in interface EditingWindowpublic ViewerCanvas[] getAllViews()
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 EditingWindowpublic void setObjectListVisible(boolean visible)
public void setScoreVisible(boolean visible)
public void setSplitView(boolean split)
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 duplicateCommand()
public void severCommand()
public void editObjectCommand()
public void objectLayoutCommand()
public void transformObjectCommand()
public void alignObjectsCommand()
public void setTextureCommand()
public void setMaterialCommand()
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 materialsCommand()
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 | |||||||||