public class RMScene3D extends RMShape
Modifier and Type | Class and Description |
---|---|
static class |
RMScene3D.RMShape3D
RMPolygon subclass that encapsulates a Path3D.
|
Modifier and Type | Field and Description |
---|---|
int |
CONSTRAIN_NONE |
int |
CONSTRAIN_PITCH |
int |
CONSTRAIN_YAW |
WRAP_TYPE_BOTH, WRAP_TYPE_NONE
Constructor and Description |
---|
RMScene3D()
Creates a new Scene3d.
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsMouse()
Viewer method.
|
protected RMScene3D.RMShape3D |
addChild3D(RMShape aShape,
float z1,
float z2)
Adds a given shape in 3D.
|
protected RMScene3D.RMShape3D |
addChild3D(RMShape aShape,
float z1,
float z2,
boolean fixupEdges,
boolean axisAlign)
Adds a given shape in 3D.
|
void |
addShape(RMShape aShape)
Adds a shape to the end of the shape list.
|
void |
addShape(RMShape aShape,
int anIndex)
Adds a shape to the shape list at the given index.
|
boolean |
canBeUngrouped()
Editor method - declares that this shape can't be ungrouped.
|
void |
copy(java.lang.Object anObj)
Copies the attributes from the given object.
|
boolean |
equals(java.lang.Object anObj)
Standard equals implementation.
|
java.lang.Object |
fromXML(RXArchiver anArchiver,
RXElement anElement)
XML unarchival.
|
RMRect |
getBoundsMarked()
Overrides shape implementation to reflect that transformed children may extend outside bounds.
|
RMRect |
getBoundsSuperSelected()
Returns the bounds of the shape in parect coords when super selected (same as getBoundsMarked by default).
|
RMVector3D |
getCamera()
Returns the camera as a vector.
|
java.util.List |
getChildrenWhoHitTest()
Editor method - declares that no child of this shape can be selected.
|
float |
getDepth()
Returns the depth of the scene.
|
float |
getFieldOfView()
Returns the field of view of the camera (derived from focalLength).
|
float |
getFocalLength()
Returns the focal length of the camera (derived from the field of view and with view size).
|
RMVector3D |
getLight()
Returns the scene light as a vector.
|
float |
getOffsetZ()
Returns the Z offset of the scene (for zooming).
|
RMPoint3D |
getOrigin()
Returns the scene's origin.
|
float |
getPitch()
Returns the rotation about the X axis in degrees.
|
float |
getPseudoSkewX()
Returns the skew angle for X by Z.
|
float |
getPseudoSkewY()
Returns the skew angle for Y by Z.
|
RMShape |
getShape(int anIndex)
Returns the specific shape at the given index from the shape list.
|
int |
getShapeCount()
Returns the number of shapes in the shape list.
|
RMTransform3D |
getTransform3D()
Returns the transform 3d for the scene's camera.
|
float |
getYaw()
Returns the rotation about the Y axis in degrees.
|
float |
getZRoll()
Returns the rotation about the Z axis in degrees.
|
boolean |
isPseudo3D()
Returns whether scene is rendered in pseudo 3d.
|
void |
mouseDragged(RMViewer aViewer,
java.awt.event.MouseEvent anEvent)
Viewer method.
|
void |
mousePressed(RMViewer aViewer,
java.awt.event.MouseEvent anEvent)
Viewer method.
|
void |
mouseReleased(RMViewer aViewer,
java.awt.event.MouseEvent anEvent)
Viewer method.
|
void |
rebuild()
Rebuilds 3D representation of shapes from shapes list.
|
void |
removeShape(int anIndex)
Removes the shape at the given index from the shape list.
|
void |
resort()
Resorts child shapes from back to front.
|
void |
setColor(RMScene3D.RMShape3D aShape3D,
RMColor aColor)
Sets the color for a 3d shape from a base color.
|
void |
setDepth(float aDepth)
Sets the depth of the scene.
|
void |
setFieldOfView(float aValue)
Sets the field of view of the camera.
|
void |
setFillAndStroke(RMScene3D.RMShape3D aShape3D,
RMShape aShape)
Sets the fill and stroke of a 3D shape from a 2D shape.
|
void |
setFocalLength(float aValue)
Sets the focal length of the camera.
|
void |
setOffsetZ(float aValue)
Sets the Z offset of the scene (for zooming).
|
void |
setPitch(float aValue)
Sets the rotation about the X axis in degrees.
|
void |
setPseudo3D(boolean aFlag)
Sets whether scene is rendered in pseudo 3d.
|
void |
setPseudoSkewX(float anAngle)
Sets the skew angle for X by Z.
|
void |
setPseudoSkewY(float anAngle)
Sets the skew angle for Y by Z.
|
void |
setYaw(float aValue)
Sets the rotation about the Y axis in degrees.
|
void |
setZRoll(float aValue)
Sets the rotation about the Z axis in degrees.
|
boolean |
superSelectable()
Editor method - indicates that scene 3d is super selectable.
|
RXElement |
toXML(RXArchiver anArchiver)
XML archival.
|
acceptsChildren, acceptsDragKeys, acceptsFormat, addChild, addChild, addChildBelowLastChild, bounds, boundsChanged, boundsChanged, bringShapesToFront, childrenSuperSelectImmediately, clone, cloneDeep, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedSizeFromShape, convertedSizeToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertSizeFromShape, convertSizeToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, delete, didChange, divideShapeFromEdge, divideShapeFromTop, dragExit, dragKeyAtPoint, dropKeyAtPoint, fromXMLDeep, get, getActionScript, getAnim, getAnim, getAnimator, getAnimator, getAutosizeHeight, getAutosizing, getBounds, getBoundsInside, getBoundsOfChildren, getBoundsOfChildren, getCausesWrap, getCausesWrapType, getChild, getChildAnimator, getChildAnimator, getChildContaining, getChildCount, getChildLast, getChildren, getChildrenIntersecting, getChildrenWhoCauseWrap, getChildrenWhoDraw, getChildSortedByX, getChildWithClass, getChildWithName, getColor, getCommonAncestor, getDocument, getFill, getFill, getFill, getFillCount, getFills, getFont, getFormat, getFrame, getFrame, getFrameMaxX, getFrameMaxY, getFrameX, getFrameXY, getFrameY, getGroupShape, getHeight, getHeightToFit, getImageFill, getLineWidth, getListKey, getListKeyDeep, getListKeyShape, getMaxX, getMaxY, getName, getOpacity, getOpacityDeep, getOutline, getPageCount, getPageShape, getParent, getParentCount, getParents, getPath, getPathInBounds, getPropertyKey, getPropertyKeyCount, getPropertyKeyName, getRoll, getRootShape, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSizeP, getSkewX, getSkewY, getStroke, getStrokeColor, getTextColor, getToolClassName, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getUrl, getWidth, getWidthToFit, getX, getXY, getXYP, getY, groupShapes, hasPageBreaks, height, indexOf, indexOf, initWithArchiver, intersects, isAncestor, isDescendant, isLocked, isRoot, isUnderlined, mouseEntered, mouseExited, mouseMoved, notRSS, offsetChildrenXY, offsetXY, page, pageBreakMax, pageBreakPageMax, pageMax, put, putPropertyKey, reclaimChildren, removeChild, removeChild, removeChildren, removeChildren, removeFromParent, resolvePageReferences, rpgClone, rpgCloneBase, rpgCloneChildren, rpgCloneConclude, rpgCloneNotification, rpgClonePrepare, rpgClonePreprocess, rpgCloneUrl, sendShapesToBack, setActionScript, setAnim, setAutosizeHeight, setAutosizing, setBounds, setBounds, setCausesWrapType, setChildren, setColor, setFill, setFont, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHeight, setHeightDeep, setHeightDeep, setHeightToFit, setLineWidth, setListKey, setLocked, setName, setNeedsRepaint, setNeedsRepaint, setOpacity, setOutline, setParent, setRoll, setScaleX, setScaleXY, setScaleY, setSize, setSize, setSizeDeep, setSizeP, setSizeToFit, setSizeToFit, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setTextColor, setTime, setUnderlined, setUrl, setWidth, setWidthDeep, setWidthDeep, setWidthToFit, setX, setXY, setXY, setXYP, setY, sizesToFitChildren, toString, undoClone, undoCopy, undoEquals, undoerAddDirtyObject, undoerDisable, undoerEnable, undoerSetUndoTitle, width, willChange, willChange, x, y
didUndo, getAnimAttribute, getClassNameShort
public final int CONSTRAIN_NONE
public final int CONSTRAIN_PITCH
public final int CONSTRAIN_YAW
public float getDepth()
public void setDepth(float aDepth)
public RMPoint3D getOrigin()
public float getYaw()
public void setYaw(float aValue)
public float getPitch()
public void setPitch(float aValue)
public float getZRoll()
public void setZRoll(float aValue)
public float getFocalLength()
public void setFocalLength(float aValue)
public float getOffsetZ()
public void setOffsetZ(float aValue)
public boolean isPseudo3D()
public void setPseudo3D(boolean aFlag)
public float getPseudoSkewX()
public void setPseudoSkewX(float anAngle)
public float getPseudoSkewY()
public void setPseudoSkewY(float anAngle)
public float getFieldOfView()
public void setFieldOfView(float aValue)
public RMVector3D getCamera()
public RMVector3D getLight()
public RMShape getShape(int anIndex)
public int getShapeCount()
public void addShape(RMShape aShape)
public void addShape(RMShape aShape, int anIndex)
public void removeShape(int anIndex)
public RMTransform3D getTransform3D()
public void rebuild()
protected RMScene3D.RMShape3D addChild3D(RMShape aShape, float z1, float z2)
protected RMScene3D.RMShape3D addChild3D(RMShape aShape, float z1, float z2, boolean fixupEdges, boolean axisAlign)
public void setFillAndStroke(RMScene3D.RMShape3D aShape3D, RMShape aShape)
public void setColor(RMScene3D.RMShape3D aShape3D, RMColor aColor)
public void resort()
public RMRect getBoundsSuperSelected()
getBoundsSuperSelected
in class RMShape
public RMRect getBoundsMarked()
getBoundsMarked
in class RMShape
public boolean canBeUngrouped()
canBeUngrouped
in class RMShape
public boolean superSelectable()
superSelectable
in class RMShape
public boolean acceptsMouse()
acceptsMouse
in class RMShape
public void mousePressed(RMViewer aViewer, java.awt.event.MouseEvent anEvent)
mousePressed
in class RMShape
public void mouseDragged(RMViewer aViewer, java.awt.event.MouseEvent anEvent)
mouseDragged
in class RMShape
public void mouseReleased(RMViewer aViewer, java.awt.event.MouseEvent anEvent)
mouseReleased
in class RMShape
public java.util.List getChildrenWhoHitTest()
getChildrenWhoHitTest
in class RMShape
public boolean equals(java.lang.Object anObj)
public void copy(java.lang.Object anObj)
public RXElement toXML(RXArchiver anArchiver)
public java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement)