public class RMScene3D extends RMShape
Modifier and Type | Class and Description |
---|---|
static class |
RMScene3D.RMShape3D
RMPolygon subclass that encapsulates a Path3D.
|
RMTypes.AlignX, RMTypes.AlignY
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.
|
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.
|
RMShapeLayout |
createLayout()
Create custom layout.
|
boolean |
equals(java.lang.Object anObj)
Standard equals implementation.
|
boolean |
equals3D(RMScene3D aScene3D)
Standard equals implementation.
|
java.lang.Object |
fromXMLShape(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement,
java.lang.Object anOwner)
XML unarchival.
|
RMVector3D |
getCamera()
Returns the camera as a vector.
|
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.
|
float |
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.
|
float |
getYaw()
Returns the rotation about the Y axis in degrees.
|
boolean |
isHittableChild(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(float aValue)
Sets the depth of the scene.
|
void |
setFieldOfView(float 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(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 |
setRoll3D(float aValue)
Sets the rotation about the Z axis in degrees.
|
void |
setYaw(float aValue)
Sets the rotation about the Y axis in degrees.
|
com.reportmill.archiver.RXElement |
toXMLShape(com.reportmill.archiver.RXArchiver anArchiver,
java.lang.Object anOwner)
XML archival.
|
void |
toXMLShapeChildren(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement,
java.lang.Object anOwner)
XML archival of children - overrides shape implementation to suppress archival of generated 3D shapes.
|
acceptsChildren, addAction, addActions, addBinding, addChild, addChild, addChild, addChild, addDeepChangeListener, addListener, addMouseListener, animUpdate, bounds, 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, createDivideShapeRemainder, createPartClone, deepChange, divideShapeFromEdge, divideShapeFromTop, doLayout, fromXML, fromXMLShapeChildren, fromXMLShapeLayout, get, get, getAction, getAlignmentX, getAlignmentY, getAncestor, getAncestorCount, getAncestorInCommon, getAnimator, getAnimator, getAutosizing, getAutosizingDefault, getBestHeight, getBestSize, getBestSize, getBestWidth, getBinding, getBinding, getBindingCount, getBounds, getBoundsInside, getBoundsMarked, getBoundsMarkedDeep, getBoundsOfChildren, getCausesWrap, getCausesWrapType, getChild, getChildAnimator, getChildAnimator, getChildArray, getChildClipShape, getChildContaining, getChildCount, getChildLast, getChildren, getChildrenIntersecting, getChildrenWhoCauseWrap, getChildrenWithClass, getChildrenWithClass, getChildWithClass, getChildWithName, getClipShape, getColor, getDatasetEntity, getDatasetKey, getDocument, getEffect, getEventAdapter, getFill, getFont, getFormat, getFrame, getFrame, getFrameMaxX, getFrameMaxY, getFrameX, getFrameXY, getFrameY, getHeight, getHover, getImageFill, getLayout, getLayout, getLayoutInfo, getLineWidth, getMaskPath, getMaximumSize, getMaximumSizeProperty, getMaxX, getMaxY, getMinimumSize, getMinimumSizeProperty, getName, getOpacity, getOpacityDeep, getOriginal, getOutline, getPageBreak, getPageBreakMax, getPageBreakPage, getPageBreakPageMax, getPageShape, getParent, getParentWithClass, getPart, getPartCount, getPartDeep, getPartDeepCount, getPath, getPathInBounds, getPreferredSize, getPreferredSize, getPreferredSizeProperty, getPropertyNameMapped, getPropertyNames, getReportMill, getRoll, getRootShape, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSizeP, getSkewX, getSkewY, getStroke, getStrokeColor, getStrokeWidth, getTextColor, getTimeline, getTimeline, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getURL, getVisbileBounds, getVisibleBounds, getVisibleBounds, getVisibleBounds, getWidth, getX, getXY, getXYP, getY, height, indexOf, indexOfChild, intersects, isAncestor, isAnimProperty, isDescendant, isEditing, isEnabled, isHittable, isLocked, isMaximumSizeSet, isMinimumSizeSet, isRoot, isRSS, isShowing, isUnderlined, isViewing, isVisible, isVisibleChild, layoutReset, mouseClicked, mouseEntered, mouseExited, mouseMoved, notRSS, offsetChildrenXY, offsetXY, page, pageMax, paint, paintShape, paintShapeAll, paintShapeChildren, paintShapeOver, propertyChange, put, removeAction, removeBinding, removeBinding, removeChild, removeChild, removeChildren, removeDeepChangeListener, removeFromParent, removeMouseListener, repaint, repaint, resolvePageReferences, revalidate, sendShapesToBack, setAction, setAlignmentX, setAlignmentY, setAutosizing, setBestHeight, setBestSize, setBestSize, setBounds, setBounds, setCausesWrap, setCausesWrapType, setColor, setEffect, setEnabled, setFill, setFont, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHeight, setHover, setLayout, setLayoutInfo, setLineWidth, setLocked, setMaximumSize, setMinimumSize, setName, setOpacity, setOutline, setParent, setPreferredSize, setReportMill, setReportMillBindings, setReportMillDeep, setRoll, setScaleX, setScaleXY, setScaleY, setShowing, setSize, setSize, setSizeP, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setStrokeWidth, setTextColor, setTime, setUnderlined, setURL, setVisible, setWidth, setX, setXY, setXY, setXYP, setY, superSelectable, toString, toXML, toXMLShapeLayout, undoerDisable, undoerEnable, undoerSetUndoTitle, validate, width, x, y
addPropertyChangeListener, removePropertyChangeListener
getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
public final int CONSTRAIN_NONE
public final int CONSTRAIN_PITCH
public final int CONSTRAIN_YAW
public float getDepth()
public void setDepth(float aValue)
public RMPoint3D getOrigin()
public float getYaw()
public void setYaw(float aValue)
public float getPitch()
public void setPitch(float aValue)
public float getRoll3D()
public void setRoll3D(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 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 RMShapeLayout createLayout()
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 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 boolean isHittableChild(RMShape aChild)
isHittableChild
in class RMShape
public boolean equals(java.lang.Object anObj)
public boolean equals3D(RMScene3D aScene3D)
public void copy3D(RMScene3D aScene3D)
public com.reportmill.archiver.RXElement toXMLShape(com.reportmill.archiver.RXArchiver anArchiver, java.lang.Object anOwner)
toXMLShape
in class RMShape
public void toXMLShapeChildren(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement, java.lang.Object anOwner)
toXMLShapeChildren
in class RMShape
public java.lang.Object fromXMLShape(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement, java.lang.Object anOwner)
fromXMLShape
in class RMShape