public class Membrane3D
extends javax.swing.JPanel
Modifier and Type | Field and Description |
---|---|
boolean |
axisVisible |
javax.media.j3d.Background |
background |
MyGradientBufferedImage |
BIbright |
MyGradientBufferedImage |
BIbrightUni |
MyGradientBufferedImage |
BIdark |
MyGradientBufferedImage |
BIdarkUni |
MicroDomain_3D |
defaultArea |
static int |
EXTRA |
static int |
FREE |
static boolean |
graphics2DDeactivator |
Hud |
hud |
IntersectManager |
intersector |
static int |
INTRA |
static javax.media.j3d.Canvas3D |
membraneUniverseCanvas |
static javax.media.j3d.Canvas3D |
membraneUniverseCanvasRight |
javax.media.j3d.BranchGroup |
publicBranchGroup |
boolean |
rasterVisible |
int |
stereoViewAutoFocusMode |
int |
stereoViewMode |
int |
stereoViewScalingMode |
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
Membrane3D()
Initializes the 3d classes
|
Modifier and Type | Method and Description |
---|---|
boolean |
addANewProteinAtRandomPosition(java.lang.String code,
java.lang.String file,
int modelnumber,
int domainID)
Tries to add the passed Protein to the Membrane.
|
void |
addMembraneViewListener(MembraneViewListener listener)
Establishes access to major functionalities for the 3d classes
|
void |
addMolecule(Molecule_3D mol,
boolean rebuildAxis)
adds a Molecule to the 3d view if the boolean is set, the axis of the 3D
modell will be repainted.
|
boolean |
areAxisVisible()
Returns if the axis are visible currently
|
void |
clearAll(boolean clearProteins,
boolean clearLipidsInMembrane,
boolean clearSampleLipids,
int layerID)
clears all Vectors.
|
void |
clearLipids(int domainID,
int layerID)
clears the lipid Vector.
|
void |
clearSelection()
clears the selection.
|
void |
DnDEventOccured(java.awt.Point loc)
Called, when a drag event is recognized in the database table.
|
void |
DnDFinished(boolean cancelled)
Finishes the DND.
|
void |
dockScreen(boolean b) |
javax.media.j3d.BranchGroup |
getBasementBranchGroup() |
CameraMode |
getCamera()
Returns the camera
|
javax.media.j3d.Canvas3D |
getCanvas()
Returns the canvas
|
Hud |
getHud() |
IntersectManager |
getIntersectManager() |
javax.media.j3d.BranchGroup |
getMainBranchGroup() |
MicroDomainManager |
getMicroDomainManager() |
PickNDragManager |
getPickNDragManager()
Returns the PND manager
|
java.util.Vector<Molecule_3D> |
getSelectedMolecules()
Returns the selected Proteins from the PNDmanager
|
int |
getStereoViewAutoFocusMode()
Get the actual Stereo View Auto Focus Mode.
|
int |
getStereoViewMode()
Get the actual Stereo View Mode.
|
int |
getStereoViewScalingMode()
Get the actual Stereo View Scaling Mode.
|
com.sun.j3d.utils.universe.SimpleUniverse |
getUniverse()
returns the 3D universe
|
boolean |
isRasterVisible()
Returns if the raster is visible currently
|
static boolean |
isStereoViewActive() |
void |
removeMoleculesFrom3D(Molecule_3D[] mols)
removes given proteins from the 3D model
|
void |
repaintByMembraneModel(MembraneModel model)
repaints the 3D model by using the informations from the model.
|
void |
selectByCode(java.lang.String code,
int domainID)
Selects all protein instances that have the passed pdb code
|
void |
setAmbientBrightness(float f)
Sets the ambient colors brightness
|
void |
setBrightEditorAppearance(boolean bright_App)
Sets the appearance of the editor.
|
void |
setEnabled(boolean b)
En- or disables the 3d display
|
void |
setEnableLight1(boolean b)
En-or disables light1
|
void |
setEnableLight2(boolean b)
En-or disables light2 (containing of 2 light sources that can only be
activated together)
|
void |
setPreferredSize(java.awt.Dimension d)
Sets the preferred size for the 3d display
|
void |
setShowAxis(boolean b)
En-or disables the axis bars in the view.
|
void |
setShowRaster(boolean b)
En-or disables the Raster painted on the Plane in the view.
|
void |
setStereoView(boolean showStereo) |
void |
setStereoViewAutoFocusMode(int stereoViewAutoFocusMode)
Set the actual Stereo View Auto Focus Mode.
|
void |
setStereoViewMode(int stereoViewMode)
Set the actual Stereo View Mode.
|
void |
setStereoViewScalingMode(int stereoViewScalingMode)
Set the actual Stereo View Scaling Mode.
|
void |
setUniformBackground(boolean uniform) |
void |
setViewByMode(int mode,
javax.vecmath.Point3f center)
Switches the camera to the requested view.
|
void |
updateAfterLayerChange() |
void |
validateStereoMode(boolean isSelected) |
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, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, 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 static javax.media.j3d.Canvas3D membraneUniverseCanvas
public static javax.media.j3d.Canvas3D membraneUniverseCanvasRight
public static boolean graphics2DDeactivator
public final IntersectManager intersector
public Hud hud
public static final int EXTRA
public static final int INTRA
public static final int FREE
public final javax.media.j3d.BranchGroup publicBranchGroup
public boolean axisVisible
public boolean rasterVisible
public final javax.media.j3d.Background background
public int stereoViewMode
public int stereoViewScalingMode
public int stereoViewAutoFocusMode
public final MyGradientBufferedImage BIdark
public final MyGradientBufferedImage BIbright
public final MyGradientBufferedImage BIdarkUni
public final MyGradientBufferedImage BIbrightUni
public MicroDomain_3D defaultArea
public void addMembraneViewListener(MembraneViewListener listener)
listener
- public com.sun.j3d.utils.universe.SimpleUniverse getUniverse()
public void setStereoView(boolean showStereo)
public void validateStereoMode(boolean isSelected)
public static boolean isStereoViewActive()
public int getStereoViewMode()
public void setStereoViewMode(int stereoViewMode)
int
- the actual Stereo View Mode.public int getStereoViewScalingMode()
public void setStereoViewScalingMode(int stereoViewScalingMode)
int
- the actual Stereo View Mode.public int getStereoViewAutoFocusMode()
public void setStereoViewAutoFocusMode(int stereoViewAutoFocusMode)
int
- the actual Stereo View Auto Focus Mode.public void addMolecule(Molecule_3D mol, boolean rebuildAxis)
prot
- rebuildAxis
- public boolean addANewProteinAtRandomPosition(java.lang.String code, java.lang.String file, int modelnumber, int domainID)
newProt
- or null if newone should be createdcode
- - can be null if passed protein !=nullfile
- - can be null if passed protein !=nulldomainID
- public void clearSelection()
public void clearLipids(int domainID, int layerID)
domainID
- layerID
- public void clearAll(boolean clearProteins, boolean clearLipidsInMembrane, boolean clearSampleLipids, int layerID)
clearSampleLipidsToo
- clearSampleLipidsToo
- b
- public java.util.Vector<Molecule_3D> getSelectedMolecules()
public void removeMoleculesFrom3D(Molecule_3D[] mols)
protVec
- public void repaintByMembraneModel(MembraneModel model)
model
- public void setEnabled(boolean b)
setEnabled
in class javax.swing.JComponent
public void setPreferredSize(java.awt.Dimension d)
setPreferredSize
in class javax.swing.JComponent
public void setShowAxis(boolean b)
b
- public void setShowRaster(boolean b)
b
- public boolean areAxisVisible()
public boolean isRasterVisible()
public void setAmbientBrightness(float f)
f
- values between 0f and 1fpublic void setEnableLight1(boolean b)
b
- public void setEnableLight2(boolean b)
b
- public void setBrightEditorAppearance(boolean bright_App)
bright_App
- public void setUniformBackground(boolean uniform)
public CameraMode getCamera()
public void selectByCode(java.lang.String code, int domainID)
code
- domainID
- public void DnDEventOccured(java.awt.Point loc)
public void DnDFinished(boolean cancelled)
cancelled
- public javax.media.j3d.Canvas3D getCanvas()
public PickNDragManager getPickNDragManager()
public Hud getHud()
public void setViewByMode(int mode, javax.vecmath.Point3f center)
mode
- public MicroDomainManager getMicroDomainManager()
public void dockScreen(boolean b)
public IntersectManager getIntersectManager()
public void updateAfterLayerChange()
public javax.media.j3d.BranchGroup getMainBranchGroup()
public javax.media.j3d.BranchGroup getBasementBranchGroup()