entities.molecule.annotations
entities.molecule.annotations
Classes
Name | Description |
---|---|
Label2D | Common Label2D Annotation for all entities |
Label3D | Common Label3D Annotation for all entities |
MoleculeAnnotation | Base class for a Molecule Annotation |
MoleculeAnnotationManager | Annotation Manager for Molecule Entity |
MoleculeInfo | Molecule Info Annotation |
Label2D
entities.molecule.annotations.Label2D()
Common Label2D Annotation for all entities
Label3D
entities.molecule.annotations.Label3D()
Common Label3D Annotation for all entities
MoleculeAnnotation
self, molecule) entities.molecule.annotations.MoleculeAnnotation(
Base class for a Molecule Annotation
All molecule annotations should derive from this base class and implement the ‘draw’ method. All derived classes will have access to the molecule instance (self.molecule) and all the annotation inputs and common params via self.interface.
An optional ‘defaults’ method can be provided to set default values to the annotation.
MoleculeAnnotationManager
self, entity) entities.molecule.annotations.MoleculeAnnotationManager(
Annotation Manager for Molecule Entity
MoleculeInfo
self, molecule) entities.molecule.annotations.MoleculeInfo(
Molecule Info Annotation
Attributes
Name | Type | Description |
---|---|---|
location | tuple[float, float] | Normalized coordinates (0.0 - 1.0) of the postion in viewport / render |
show_models | bool | Whether or not to show the number of models in the molecule |
show_atoms | bool | Whether or not to show the number of atoms in the molecule |
custom_text | str | Any custom text to add at the end of the annotation |