Class PyMOLMolecularRenderer
java.lang.Object
org.episteme.natural.ui.viewers.chemistry.backends.PyMOLMolecularRenderer
- All Implemented Interfaces:
MolecularRenderer
PyMOL-based molecular renderer backend.
Generates PyMOL scripts (.pml) and controls an external PyMOL process. PyMOL must be installed and accessible in the system PATH.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the current view.voidDraw a single atom.voidDraw a bond between two atoms.Returns the backend type of this renderer.Retrieves the native component (e.g.voidGenerates and launches PyMOL with the current scene.voidsetBackgroundColor(javafx.scene.paint.Color color) Set background color of the viewer.voidsetStyle(RenderStyle style) Set global rendering style.
-
Constructor Details
-
PyMOLMolecularRenderer
public PyMOLMolecularRenderer()
-
-
Method Details
-
clear
public void clear()Description copied from interface:MolecularRendererClears the current view.- Specified by:
clearin interfaceMolecularRenderer
-
setStyle
Description copied from interface:MolecularRendererSet global rendering style.- Specified by:
setStylein interfaceMolecularRenderer- Parameters:
style- The style to apply.
-
drawAtom
Description copied from interface:MolecularRendererDraw a single atom.- Specified by:
drawAtomin interfaceMolecularRenderer- Parameters:
atom- The atom data model.
-
drawBond
Description copied from interface:MolecularRendererDraw a bond between two atoms.- Specified by:
drawBondin interfaceMolecularRenderer- Parameters:
bond- The bond data model.
-
setBackgroundColor
public void setBackgroundColor(javafx.scene.paint.Color color) Description copied from interface:MolecularRendererSet background color of the viewer.- Specified by:
setBackgroundColorin interfaceMolecularRenderer- Parameters:
color- JavaFX Color (Implementations may convert this).
-
getViewComponent
Description copied from interface:MolecularRendererRetrieves the native component (e.g. SubScene for JavaFX, JPanel for Swing/Jmol).- Specified by:
getViewComponentin interfaceMolecularRenderer- Returns:
- The UI component.
-
getBackend
Description copied from interface:MolecularRendererReturns the backend type of this renderer.- Specified by:
getBackendin interfaceMolecularRenderer- Returns:
- The backend enum.
-
launchPyMOL
public void launchPyMOL()Generates and launches PyMOL with the current scene.
-