public class Canvas
extends vtk.vtkCanvas
cam, InteractionMode, lastX, lastY, lgt, LightFollowCamera, lightingset, ren, rendering, rw, windowset
Constructor and Description |
---|
Canvas()
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getCtrlPressed() |
int |
getLastX() |
int |
getLastY() |
int |
getShiftPressed() |
void |
lock() |
void |
paint(java.awt.Graphics g) |
void |
Render() |
void |
RenderSecured()
Override to correct the bug of the UpdateLight (the light position is not updated if the
camera is moved by programming
|
void |
Report()
must be performed on awt event thread
|
void |
setCtrlPressed(int ctrlPressed) |
void |
setImmediateRenderingMode(boolean mode)
Set the immediateRenderingMode on the current view
|
void |
setLastX(int lastX) |
void |
setLastY(int lastY) |
void |
setShiftPressed(int shiftPressed) |
void |
unlock() |
void |
UpdateLight()
Corrects a bug : update the reference of camera
Changing the original camera the light stops following the camera
|
addToBoxWidget, addToPlaneWidget, BeginBoxInteraction, BeginPlaneInteraction, Delete, DestroyTimer, getIren, getRenderWindowInteractor, Initialize, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, setInteractorStyle, setSize, StartTimer
addNotify, GetRenderer, GetRenderWindow, HardCopy, InteractionModeRotate, InteractionModeTranslate, InteractionModeZoom, isWindowSet, LightFollowCameraOff, LightFollowCameraOn, Lock, pickActor, removeNotify, RenderCreate, resetCamera, resetCameraClippingRange, UnLock, update
createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy
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, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, 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, print, 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, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
public void RenderSecured()
public void Render()
Render
in class vtk.vtkPanel
public void lock()
lock
in class vtk.vtkPanel
public void unlock()
unlock
in class vtk.vtkPanel
public void setImmediateRenderingMode(boolean mode)
mode
- public void UpdateLight()
UpdateLight
in class vtk.vtkPanel
public void Report()
Report
in class vtk.vtkPanel
public void paint(java.awt.Graphics g)
paint
in class vtk.vtkPanel
public int getCtrlPressed()
public void setCtrlPressed(int ctrlPressed)
public int getShiftPressed()
public void setShiftPressed(int shiftPressed)
public int getLastX()
public void setLastX(int lastX)
public int getLastY()
public void setLastY(int lastY)
Copyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.