public class RMScene3D extends RMParentShape
Modifier and Type | Class and Description |
---|---|
static class |
RMScene3D.RMShape3D
RMPolygon subclass that encapsulates a Path3D.
|
RMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
Modifier and Type | Field and Description |
---|---|
int |
CONSTRAIN_NONE |
int |
CONSTRAIN_PITCH |
int |
CONSTRAIN_YAW |
Constructor and Description |
---|
RMScene3D() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsMouse()
Viewer method.
|
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.
|
void |
copy3D(RMScene3D aScene3D)
Copy 3D attributes only.
|
RMVector3D |
getCamera()
Returns the camera as a vector.
|
double |
getDepth()
Returns the depth of the scene.
|
double |
getFieldOfView()
Returns the field of view of the camera (derived from focalLength).
|
double |
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.
|
double |
getOffsetZ()
Returns the Z offset of the scene (for zooming).
|
RMPoint3D |
getOrigin()
Returns the scene's origin.
|
double |
getPitch()
Returns the rotation about the X axis in degrees.
|
double |
getPseudoSkewX()
Returns the skew angle for X by Z.
|
double |
getPseudoSkewY()
Returns the skew angle for Y by Z.
|
double |
getRoll3D()
Returns the rotation about the Z axis in degrees.
|
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.
|
boolean |
getValueIsAdjusting()
Returns whether scene3d is being re-oriented.
|
double |
getYaw()
Returns the rotation about the Y axis in degrees.
|
boolean |
isHittable(RMShape aChild)
Override to indicate that scene children are unhittable.
|
boolean |
isPseudo3D()
Returns whether scene is rendered in pseudo 3d.
|
void |
mouseDragged(RMShapeMouseEvent anEvent)
Viewer method.
|
void |
mousePressed(RMShapeMouseEvent anEvent)
Viewer method.
|
void |
mouseReleased(RMShapeMouseEvent anEvent)
Viewer method.
|
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 |
setDefaultViewSettings()
Sets some reasonable default view settings.
|
void |
setDepth(double aValue)
Sets the depth of the scene.
|
void |
setFieldOfView(double aValue)
Sets the field of view of the camera.
|
void |
setFillAndStroke(RMScene3D.RMShape3D aShape3D,
RMFill aFill,
RMStroke aStroke,
RMEffect anEffect)
Sets the fill and stroke of a 3D shape from a 2D shape.
|
void |
setFocalLength(double aValue)
Sets the focal length of the camera.
|
void |
setOffsetZ(double aValue)
Sets the Z offset of the scene (for zooming).
|
void |
setPitch(double aValue)
Sets the rotation about the X axis in degrees.
|
void |
setPseudo3D(boolean aFlag)
Sets whether scene is rendered in pseudo 3d.
|
void |
setPseudoSkewX(double anAngle)
Sets the skew angle for X by Z.
|
void |
setPseudoSkewY(double anAngle)
Sets the skew angle for Y by Z.
|
void |
setRoll3D(double aValue)
Sets the rotation about the Z axis in degrees.
|
void |
setYaw(double aValue)
Sets the rotation about the Y axis in degrees.
|
addChild, addChild, addChild, addChild, bringShapesToFront, clone, cloneDeep, divideShapeFromTop, fromXML, getBoundsOfChildren, getChild, getChildArray, getChildContaining, getChildCount, getChildLast, getChildren, getChildrenIntersecting, getChildrenWithClass, getChildrenWithClass, getChildWithClass, getChildWithName, getLayout, getNeedsLayout, getSourceURL, indexOfChild, isSourceURLSet, layout, relayout, removeChild, removeChild, removeChildren, rpgAll, sendShapesToBack, setHeight, setLayout, setNeedsLayout, setSourceURL, setWidth, toXML
acceptsChildren, addBinding, addBinding, addDeepChangeListener, addMouseListener, animUpdate, bounds, childrenSuperSelectImmediately, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, deepChange, divideShapeFromEdge, get, get, getAlignment, getAlignmentX, getAlignmentY, getAncestor, getAncestorCount, getAncestorInCommon, getAnimator, getAnimator, getAutosizing, getAutosizingDefault, getBestHeight, getBestHeight, getBestWidth, getBestWidth, getBinding, getBinding, getBindingCount, getBounds, getBoundsInside, getBoundsMarked, getBoundsMarkedDeep, getChildAnimator, getChildAnimator, getClipShape, getColor, getDatasetEntity, getDatasetKey, getDocument, getEffect, getEventAdapter, getFill, getFont, getFormat, getFrame, getFrameHeight, getFrameMaxX, getFrameMaxY, getFrameWidth, getFrameX, getFrameXY, getFrameY, getHeight, getHover, getLayoutInfo, getMaskPath, getMaxX, getMaxY, getMinHeight, getMinHeight, getMinWidth, getMinWidth, getName, getOpacity, getOpacityDeep, getOutline, getPageBreak, getPageBreakMax, getPageBreakPage, getPageBreakPageMax, getPageShape, getParent, getParent, getPath, getPathInBounds, getPrefHeight, getPrefHeight, getPrefWidth, getPrefWidth, getPropertyNameMapped, getPropertyNames, getRoll, getRootShape, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSkewX, getSkewY, getStroke, getStrokeColor, getStrokeOnTop, getStrokeWidth, getTextColor, getTimeline, getTimeline, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getURL, getWidth, getX, getXY, getXYP, getY, height, indexOf, intersects, isAncestor, isAnimProperty, isDescendant, isEditing, isEnabled, isFontSet, isHittable, isLocked, isMinHeightSet, isMinWidthSet, isPrefHeightSet, isPrefWidthSet, isRoot, isRSS, isUnderlined, isViewing, isVisible, mouseClicked, mouseEntered, mouseExited, mouseMoved, offsetXY, page, pageMax, paint, paintShape, paintShapeAll, paintShapeChildren, paintShapeOver, propertyChange, put, removeBinding, removeBinding, removeDeepChangeListener, removeFromParent, removeMouseListener, repaint, rpgBindings, setAlignment, setAlignmentX, setAlignmentY, setAutosizing, setBestHeight, setBestSize, setBounds, setBounds, setColor, setEffect, setEnabled, setFill, setFont, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHover, setLayoutInfo, setLocked, setMinHeight, setMinSize, setMinWidth, setName, setOpacity, setOutline, setParent, setPrefHeight, setPrefWidth, setRoll, setScaleX, setScaleXY, setScaleY, setSize, setSize, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setStrokeWidth, setTextColor, setTime, setUnderlined, setURL, setVisible, setX, setXY, setXY, setXYP, setY, superSelectable, toString, undoerDisable, undoerEnable, undoerSetUndoTitle, width, x, y
public final int CONSTRAIN_NONE
public final int CONSTRAIN_PITCH
public final int CONSTRAIN_YAW
public double getDepth()
public void setDepth(double aValue)
public RMPoint3D getOrigin()
public double getYaw()
public void setYaw(double aValue)
public double getPitch()
public void setPitch(double aValue)
public double getRoll3D()
public void setRoll3D(double aValue)
public double getFocalLength()
public void setFocalLength(double aValue)
public double getOffsetZ()
public void setOffsetZ(double aValue)
public boolean isPseudo3D()
public void setPseudo3D(boolean aFlag)
public double getPseudoSkewX()
public void setPseudoSkewX(double anAngle)
public double getPseudoSkewY()
public void setPseudoSkewY(double anAngle)
public double getFieldOfView()
public void setFieldOfView(double aValue)
public void setDefaultViewSettings()
public RMVector3D getCamera()
public RMVector3D getLight()
public int getShapeCount()
public RMShape getShape(int anIndex)
public void addShape(RMShape aShape)
public void addShape(RMShape aShape, int anIndex)
public void removeShape(int anIndex)
public RMTransform3D getTransform3D()
public void setFillAndStroke(RMScene3D.RMShape3D aShape3D, RMFill aFill, RMStroke aStroke, RMEffect anEffect)
public void setColor(RMScene3D.RMShape3D aShape3D, RMColor aColor)
public void resort()
public boolean isHittable(RMShape aChild)
public boolean acceptsMouse()
acceptsMouse
in class RMShape
public void mousePressed(RMShapeMouseEvent anEvent)
mousePressed
in class RMShape
public void mouseDragged(RMShapeMouseEvent anEvent)
mouseDragged
in class RMShape
public void mouseReleased(RMShapeMouseEvent anEvent)
mouseReleased
in class RMShape
public boolean getValueIsAdjusting()
public void copy3D(RMScene3D aScene3D)