public abstract class IcyCanvas3D extends IcyCanvas
PROPERTY_LAYERS_VISIBLE
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
IcyCanvas3D(Viewer viewer) |
Modifier and Type | Method and Description |
---|---|
Point3D.Double |
canvasToImage(int x,
int y)
Convert specified canvas point to image point
|
Point3D.Double |
canvasToImage(java.awt.Point point)
Convert specified canvas point to image point
|
void |
centerOn(Rectangle3D.Integer region)
Adjust view position and possibly scaling factor to ensure the specified region become visible.
|
Point3D.Double |
getMouseImagePos()
Return mouse image position
|
double |
getMouseImagePosX()
mouse X image position
|
double |
getMouseImagePosY()
mouse Y image position
|
double |
getMouseImagePosZ()
mouse Z image position
|
java.awt.Point |
imageToCanvas(double x,
double y,
double z)
Convert specified image point to canvas point.
|
java.awt.Point |
imageToCanvas(Point3D.Double point)
Convert specified image point to canvas point
|
void |
setMouseImagePos(double x,
double y,
double z) |
void |
setMouseImagePos(Point3D.Double point)
Set mouse image position
|
boolean |
setMousePos(int x,
int y)
Set mouse position (in canvas coordinate space).
|
void |
setPositionT(int t)
Set T position
|
addCanvasListener, addLayer, addLayer, addLayerListener, addLayersListener, addViewerToolbarComponents, addVisibleLayerToList, beginUpdate, canvasToImageC, canvasToImageDeltaC, canvasToImageDeltaT, canvasToImageDeltaX, canvasToImageDeltaY, canvasToImageDeltaZ, canvasToImageLogDeltaX, canvasToImageLogDeltaX, canvasToImageLogDeltaY, canvasToImageLogDeltaY, canvasToImageLogDeltaZ, canvasToImageLogDeltaZ, canvasToImageT, canvasToImageX, canvasToImageY, canvasToImageZ, changed, create, customizeToolbar, endUpdate, getC, getCanvasClassName, getCanvasClassName, getCanvasOffsetC, getCanvasOffsetT, getCanvasOffsetX, getCanvasOffsetY, getCanvasOffsetZ, getCanvasPluginNames, getCanvasPlugins, getCanvasSize, getCanvasSizeC, getCanvasSizeT, getCanvasSizeX, getCanvasSizeY, getCanvasSizeZ, getCurrentImage, getDrawLayers, getFrameRate, getImage, getImage, getImageCanvasSize, getImageCanvasSizeC, getImageCanvasSizeT, getImageCanvasSizeX, getImageCanvasSizeY, getImageCanvasSizeZ, getImageLayer, getImageOffsetC, getImageOffsetT, getImageOffsetX, getImageOffsetY, getImageOffsetZ, getImageOverlay, getImageSize, getImageSizeC, getImageSizeT, getImageSizeX, getImageSizeY, getImageSizeZ, getLayer, getLayer, getLayer, getLayerListeners, getLayers, getLayers, getLayersPainter, getListeners, getLut, getMax, getMaxC, getMaxPosition, getMaxPosition5D, getMaxPositionC, getMaxPositionT, getMaxPositionX, getMaxPositionY, getMaxPositionZ, getMaxT, getMaxX, getMaxY, getMaxZ, getMouseImageInfosPanel, getMouseImagePos, getMouseImagePos5D, getMouseImagePosC, getMouseImagePosT, getMousePos, getNumSelectedSamples, getOffset, getOffset5D, getOffsetC, getOffsetT, getOffsetX, getOffsetY, getOffsetZ, getOrderedLayersForEvent, getOverlays, getPanel, getPluginClassName, getPosition, getPosition5D, getPositionC, getPositionT, getPositionX, getPositionY, getPositionZ, getRenderedImage, getRenderedImage, getRenderedImage, getRenderedSequence, getRenderedSequence, getRenderedSequence, getRenderedSequence, getRotation, getRotationC, getRotationT, getRotationX, getRotationY, getRotationZ, getScale, getScaleC, getScaleFactorC, getScaleFactorT, getScaleFactorX, getScaleFactorY, getScaleFactorZ, getScaleT, getScaleX, getScaleY, getScaleZ, getSequence, getSyncId, getT, getTNavigationPanel, getViewComponent, getViewer, getVisibleLayers, getVisibleLayers, getVisibleOrderedLayersForEvent, getZ, getZNavigationPanel, hasLayer, hasLayer, hasLayer, imageToCanvasC, imageToCanvasDeltaC, imageToCanvasDeltaT, imageToCanvasDeltaX, imageToCanvasDeltaY, imageToCanvasDeltaZ, imageToCanvasT, imageToCanvasX, imageToCanvasY, imageToCanvasZ, isLayersVisible, isSynchHeader, isSynchMaster, isSynchOnCursor, isSynchOnSlice, isSynchOnView, isSynchronizationSupported, isSynchronized, isSynchSlave, isUpdating, isVisible, keyPressed, keyReleased, keyTyped, layerChanged, lutChanged, mouseClick, mouseClick, mouseDrag, mouseDrag, mouseEntered, mouseEntered, mouseExited, mouseExited, mouseImagePositionChanged, mouseMove, mouseMove, mousePressed, mousePressed, mouseReleased, mouseReleased, mouseWheelMoved, mouseWheelMoved, offsetChanged, onChanged, refresh, removeCanvasListener, removeLayer, removeLayer, removeLayer, removeLayerListener, removeLayersListener, rotationChanged, scaleChanged, sequenceChanged, sequenceClosed, setC, setDrawLayers, setFrameRate, setLayersVisible, setMouseImagePos, setMouseImagePosC, setMouseImagePosT, setMouseImagePosX, setMouseImagePosY, setMouseImagePosZ, setMousePos, setOffset, setOffsetC, setOffsetT, setOffsetX, setOffsetY, setOffsetZ, setPosition, setPositionC, setPositionX, setPositionY, setPositionZ, setRotation, setRotationC, setRotationT, setRotationX, setRotationY, setRotationZ, setScale, setScaleC, setScaleT, setScaleX, setScaleY, setScaleZ, setSyncId, setT, setZ, shutDown, viewerChanged, viewerClosed
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public IcyCanvas3D(Viewer viewer)
public void setPositionT(int t)
IcyCanvas
setPositionT
in class IcyCanvas
public double getMouseImagePosX()
IcyCanvas
getMouseImagePosX
in class IcyCanvas
public double getMouseImagePosY()
IcyCanvas
getMouseImagePosY
in class IcyCanvas
public double getMouseImagePosZ()
IcyCanvas
getMouseImagePosZ
in class IcyCanvas
public Point3D.Double getMouseImagePos()
public void setMouseImagePos(double x, double y, double z)
public void setMouseImagePos(Point3D.Double point)
public boolean setMousePos(int x, int y)
IcyCanvas
true
if the mouse position actually changed.setMousePos
in class IcyCanvas
public java.awt.Point imageToCanvas(double x, double y, double z)
public java.awt.Point imageToCanvas(Point3D.Double point)
public Point3D.Double canvasToImage(int x, int y)
public Point3D.Double canvasToImage(java.awt.Point point)
public void centerOn(Rectangle3D.Integer region)
region
- the region we want to see