Package org.freehep.j3d.plot
Class SurfacePlot2
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Canvas
-
- javax.media.j3d.Canvas3D
-
- org.freehep.j3d.plot.Plot3D
-
- org.freehep.j3d.plot.ExtendedPlot3D
-
- org.freehep.j3d.plot.SurfacePlot2
-
- All Implemented Interfaces:
ImageObserver,MenuContainer,Serializable,Accessible,PickAndClickProcessable
public class SurfacePlot2 extends ExtendedPlot3D
Description : A 3D surface plot extending freehep's abstract plot builder, alternative to freehep's SurfacePlot. Characteristics : 2D section plane can be shown as a transparent square parallel to the XY basis and default value zone plane can be added, as a empty square with dashed lines, parallel to the Y axis. It can switch between two geometries, one with the surface, the other just with points to accelerate rendering when parameters are continuously changed, ex with sliders. Based on SurfacePlot class from freehep j3DPlot library- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.awt.Canvas
Canvas.AccessibleAWTCanvas
-
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
-
Field Summary
Fields Modifier and Type Field Description floatinitial_defaultzonevaluebooleanwriteimg_-
Fields inherited from class org.freehep.j3d.plot.ExtendedPlot3D
plot, scene
-
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
-
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
-
Constructor Summary
Constructors Constructor Description SurfacePlot2()SurfacePlot2(String[] Axislabels)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDefaultValueIndicator(double min_value)protected javax.media.j3d.NodecreatePlot()protected voidenableExtraLights(boolean enable)javax.vecmath.Point3fgetPickIntersectionPoint(com.sun.j3d.utils.picking.PickResult result)StringgetXAxisLabel()StringgetYAxisLabel()StringgetZAxisLabel()booleanisSectionVisible()voidprocessCenterClick(com.sun.j3d.utils.picking.PickResult result)voidprocessIntersection(com.sun.j3d.utils.picking.PickResult result)voidprocessLeftClick(com.sun.j3d.utils.picking.PickResult result)voidprocessLeftDoubleClick(com.sun.j3d.utils.picking.PickResult result)voidprocessNoIntersection()voidprocessRightClick(com.sun.j3d.utils.picking.PickResult result)voidsetAxes(String[] Axislabels)voidsetData(OutputInferBinned2DData data, String[] Axislabels, boolean donotCalculateAxis)voidsetDefaultzoneCoordinates(float defautZoneLevel)voidsetDrawSurface(boolean b)voidsetMousePosition(int x, int y)voidsetPickCapability()voidsetSectionCoordinates(float sectionLevel, int whichXorYaxis)voidsetSectionVisible(boolean setVisible)protected voidsetupLights(javax.media.j3d.BranchGroup root)voidsetXAxisLabel(String s)voidsetYAxisLabel(String s)voidsetZAxisLabel(String s)-
Methods inherited from class org.freehep.j3d.plot.ExtendedPlot3D
applyShape3DColor, defineMouseBehaviour, getMinimumSize, getMousePosX, getMousePosY, getPreferredSize, getToolTip, init, paint, postRender, postSwap, print, record, resetView
-
Methods inherited from class org.freehep.j3d.plot.Plot3D
addNotify, createDefaultOrientation, getDefaultBounds, getParallelProjection, setParallelProjection, setProjectionPolicy
-
Methods inherited from class javax.media.j3d.Canvas3D
getBounds, getBounds, getCenterEyeInImagePlate, getDoubleBufferAvailable, getDoubleBufferEnable, getGraphics2D, getGraphicsContext3D, getHeight, getImagePlateToVworld, getInverseVworldProjection, getLeftEyeInImagePlate, getLeftManualEyeInImagePlate, getLocation, getLocation, getLocationOnScreen, getMonoscopicViewPolicy, getOffScreenBuffer, getOffScreenLocation, getOffScreenLocation, getPhysicalHeight, getPhysicalWidth, getPixelLocationFromImagePlate, getPixelLocationInImagePlate, getPixelLocationInImagePlate, getRightEyeInImagePlate, getRightManualEyeInImagePlate, getSceneAntialiasingAvailable, getScreen3D, getSize, getSize, getStereoAvailable, getStereoEnable, getView, getVworldProjection, getVworldToImagePlate, getWidth, getX, getY, isOffScreen, isRendererRunning, isShadingLanguageSupported, preRender, queryProperties, removeNotify, renderField, renderOffScreenBuffer, setDoubleBufferEnable, setLeftManualEyeInImagePlate, setMonoscopicViewPolicy, setOffScreenBuffer, setOffScreenLocation, setOffScreenLocation, setRightManualEyeInImagePlate, setStereoEnable, startRenderer, stopRenderer, swap, waitForOffScreenRendering
-
Methods inherited from class java.awt.Canvas
createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, update
-
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getMaximumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setMixingCutoutShape, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
-
-
-
-
Constructor Detail
-
SurfacePlot2
public SurfacePlot2()
-
SurfacePlot2
public SurfacePlot2(String[] Axislabels)
-
-
Method Detail
-
setAxes
public void setAxes(String[] Axislabels)
-
setupLights
protected void setupLights(javax.media.j3d.BranchGroup root)
- Overrides:
setupLightsin classExtendedPlot3D
-
enableExtraLights
protected void enableExtraLights(boolean enable)
-
addDefaultValueIndicator
public void addDefaultValueIndicator(double min_value)
-
setData
public void setData(OutputInferBinned2DData data, String[] Axislabels, boolean donotCalculateAxis)
-
getXAxisLabel
public String getXAxisLabel()
-
setXAxisLabel
public void setXAxisLabel(String s)
-
getYAxisLabel
public String getYAxisLabel()
-
setYAxisLabel
public void setYAxisLabel(String s)
-
getZAxisLabel
public String getZAxisLabel()
-
setZAxisLabel
public void setZAxisLabel(String s)
-
createPlot
protected javax.media.j3d.Node createPlot()
- Specified by:
createPlotin classorg.freehep.j3d.plot.Plot3D
-
setDrawSurface
public void setDrawSurface(boolean b)
-
setDefaultzoneCoordinates
public void setDefaultzoneCoordinates(float defautZoneLevel)
-
setSectionCoordinates
public void setSectionCoordinates(float sectionLevel, int whichXorYaxis)
-
setSectionVisible
public void setSectionVisible(boolean setVisible)
-
isSectionVisible
public boolean isSectionVisible()
-
setPickCapability
public void setPickCapability()
-
setMousePosition
public void setMousePosition(int x, int y)- Specified by:
setMousePositionin interfacePickAndClickProcessable- Overrides:
setMousePositionin classExtendedPlot3D
-
processIntersection
public void processIntersection(com.sun.j3d.utils.picking.PickResult result)
-
processNoIntersection
public void processNoIntersection()
-
processLeftClick
public void processLeftClick(com.sun.j3d.utils.picking.PickResult result)
-
processRightClick
public void processRightClick(com.sun.j3d.utils.picking.PickResult result)
-
processCenterClick
public void processCenterClick(com.sun.j3d.utils.picking.PickResult result)
-
processLeftDoubleClick
public void processLeftDoubleClick(com.sun.j3d.utils.picking.PickResult result)
-
getPickIntersectionPoint
public javax.vecmath.Point3f getPickIntersectionPoint(com.sun.j3d.utils.picking.PickResult result)
-
-