JMSLTM Numerical Library 5.0.1

com.imsl.chart3d
Class AxisXYZ

java.lang.Object
  extended by com.imsl.chart.AbstractChartNode
      extended by com.imsl.chart3d.ChartNode3D
          extended by com.imsl.chart3d.AxisXYZ
All Implemented Interfaces:
Serializable, Cloneable

public class AxisXYZ
extends ChartNode3D
implements Serializable

The axes for an x-y-z chart.

This node is used when the mapping to and from user and device space can be decomposed into an x, a y and a z mapping.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Fields inherited from class com.imsl.chart3d.ChartNode3D
AXIS_TITLE_AT_END, AXIS_TITLE_PARALLEL, DATA_TYPE_LINE, DATA_TYPE_MARKER, DATA_TYPE_PICTURE, DATA_TYPE_TUBE, MARKER_TYPE_CUBE, MARKER_TYPE_CUSTOM, MARKER_TYPE_PLUS, MARKER_TYPE_SIMPLE_CUBE, MARKER_TYPE_SIMPLE_PLUS, MARKER_TYPE_SIMPLE_TETRAHEDRON, MARKER_TYPE_SPHERE, MARKER_TYPE_TETRAHEDRON
 
Fields inherited from class com.imsl.chart.AbstractChartNode
AUTOSCALE_DATA, AUTOSCALE_DENSITY, AUTOSCALE_NUMBER, AUTOSCALE_OFF, AUTOSCALE_WINDOW, AXIS_X, AXIS_Y, AXIS_Z, LABEL_TYPE_NONE, LABEL_TYPE_TITLE, LABEL_TYPE_X, LABEL_TYPE_Y, LABEL_TYPE_Z, TRANSFORM_CUSTOM, TRANSFORM_LINEAR, TRANSFORM_LOG
 
Constructor Summary
AxisXYZ(Chart3D chart)
          Create an AxisXYZ.
 
Method Summary
protected  void addToSceneGraph(Group parent)
          Called to add this object to the scene graph.
 AxisBox getAxisBox()
          Return the axis box node.
 Axis3D getAxisX()
          Return the x-axis node.
 Axis3D getAxisY()
          Return the y-axis node.
 Axis3D getAxisZ()
          Return the z-axis node.
 void mapCubeToUser(double cubeX, double cubeY, double cubeZ, double[] userXYZ)
          Map the cube coordinates to user coordinates.
 void mapUserToCube(double userX, double userY, double userZ, double[] cubeXYZ)
          Map the user coordinates (userX,userY) to the cube coordinates cubeXYZ.
 
Methods inherited from class com.imsl.chart3d.ChartNode3D
getAxisTitlePosition, getBoundingSphere, getChildren, getColorFunction, getConcatenatedViewport, getDataType, getLightingEnabled, getMarkerPulsingCycle, getMarkerPulsingCycleOffset, getMarkerPulsingMaximumScale, getMarkerPulsingMinimumScale, getMarkerRotatingAxis, getMarkerRotatingCycle, getMarkerRotatingCycleOffset, getMarkerType, getMaterial, getParent, getTitle, getViewport, getVirtualUniverse, getZ, setAxisTitlePosition, setBoundingSphere, setColorFunction, setDataType, setLightingEnabled, setMarkerPulsingCycle, setMarkerPulsingCycleOffset, setMarkerPulsingMaximumScale, setMarkerPulsingMinimumScale, setMarkerRotatingAxis, setMarkerRotatingCycle, setMarkerRotatingCycleOffset, setMarkerType, setMaterial, setTitle, setViewport, setViewport, setZ
 
Methods inherited from class com.imsl.chart.AbstractChartNode
clone, clone, clone, clone, getAbstractParent, getAttribute, getAutoscaleInput, getAutoscaleMinimumTimeInterval, getAutoscaleOutput, getBooleanAttribute, getChildList, getColorAttribute, getCustomTransform, getDensity, getDoubleAttribute, getFillColor, getFont, getFontName, getFontSize, getFontStyle, getImage, getIntegerAttribute, getLabelType, getLightColor, getLineColor, getLineWidth, getLocale, getMarkerColor, getMarkerSize, getName, getNumber, getPaint, getStringAttribute, getTextColor, getTextFormat, getTickLength, getTransform, getX, getY, isAncestorOf, isAttributeSet, isAttributeSetAtThisNode, isBitSet, parseColor, remove, setAttribute, setAutoscaleInput, setAutoscaleMinimumTimeInterval, setAutoscaleOutput, setCustomTransform, setDensity, setFillColor, setFillColor, setFont, setFontName, setFontSize, setFontStyle, setImage, setLabelType, setLightColor, setLightColor, setLineColor, setLineColor, setLineWidth, setLocale, setMarkerColor, setMarkerColor, setMarkerSize, setName, setNumber, setPaint, setTextColor, setTextColor, setTextFormat, setTextFormat, setTickLength, setTransform, setX, setY, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

AxisXYZ

public AxisXYZ(Chart3D chart)
Create an AxisXYZ. This also creates three Axis3D nodes as children of this node. They hold the decomposed mapping.

Parameters:
chart - the Chart3D parent of this node
Method Detail

addToSceneGraph

protected void addToSceneGraph(Group parent)
Description copied from class: ChartNode3D
Called to add this object to the scene graph.

Specified by:
addToSceneGraph in class ChartNode3D
Parameters:
parent - is the node in the scene graph at which this object is to be added.

getAxisBox

public AxisBox getAxisBox()
Return the axis box node.

Returns:
the AxisBox node

getAxisX

public Axis3D getAxisX()
Return the x-axis node.

Returns:
the Axis3D x-axis node

getAxisY

public Axis3D getAxisY()
Return the y-axis node.

Returns:
the Axis3D y-axis node

getAxisZ

public Axis3D getAxisZ()
Return the z-axis node.

Returns:
the Axis3D z-axis node

mapCubeToUser

public void mapCubeToUser(double cubeX,
                          double cubeY,
                          double cubeZ,
                          double[] userXYZ)
Map the cube coordinates to user coordinates.

Parameters:
cubeX - an int, the cube x-coordinate
cubeY - an int, the cube y-coordinate
cubeZ - an int, the cube z-coordinate
userXYZ - a double[3] array on input. On output, the user coordinates.

mapUserToCube

public void mapUserToCube(double userX,
                          double userY,
                          double userZ,
                          double[] cubeXYZ)
Map the user coordinates (userX,userY) to the cube coordinates cubeXYZ.

Parameters:
userX - a double, the user x-coordinate
userY - a double, the user y-coordinate
userZ - a double, the user y-coordinate
cubeXYZ - an int[3] array on input. On output, the cube coordinates.

JMSLTM Numerical Library 5.0.1

Copyright © 1970-2008 Visual Numerics, Inc.
Built July 8 2008.