DocumentΒΆ

This library contains classes related to SAMSON documents.

SAMSON API: The SBDDocument Library

class samson.DataModel.Document.Camera(*args, **kwargs)ΒΆ

Bases: samson.DataModel.DataGraph.Node

This class describes a camera.

SAMSON API: SBDDocumentCamera

Overloaded function.

  1. __init__(self: samson.DataModel.Document.Camera) -> None

Constructs a camera

  1. __init__(self: samson.DataModel.Document.Camera, name: str) -> None

Constructs a camera with name

class NodeType(self: samson.DataModel.DataGraph.Node.NodeType, arg0: int) → NoneΒΆ

Bases: pybind11_builtins.pybind11_object

__eq__(*args, **kwargs)ΒΆ

Overloaded function.

  1. __eq__(self: samson.DataModel.DataGraph.Node.NodeType, arg0: samson.DataModel.DataGraph.Node.NodeType) -> bool
  2. __eq__(self: samson.DataModel.DataGraph.Node.NodeType, arg0: int) -> bool
__ne__(*args, **kwargs)ΒΆ

Overloaded function.

  1. __ne__(self: samson.DataModel.DataGraph.Node.NodeType, arg0: samson.DataModel.DataGraph.Node.NodeType) -> bool
  2. __ne__(self: samson.DataModel.DataGraph.Node.NodeType, arg0: int) -> bool
ArticulatedBody = NodeType.DynamicalModelNodeArticulatedBodyΒΆ
ArticulatedBodySystem = NodeType.DynamicalModelArticulatedBodySystemΒΆ
Atom = NodeType.AtomΒΆ
Backbone = NodeType.StructuralModelNodeBackboneΒΆ
Bond = NodeType.StructuralModelNodeBondΒΆ
Camera = NodeType.DocumentCameraΒΆ
Chain = NodeType.StructuralModelNodeChainΒΆ
Conformation = NodeType.StructuralModelConformationΒΆ
Controller = NodeType.ControllerΒΆ
ControllerNode = NodeType.ControllerNodeΒΆ
DataGraphNodeGroup = NodeType.DataGraphNodeGroupΒΆ
Document = NodeType.DocumentΒΆ
DocumentCamera = NodeType.DocumentCameraΒΆ
DocumentLabel = NodeType.DocumentLabelΒΆ
DocumentLayer = NodeType.DocumentLayerΒΆ
DocumentManager = NodeType.DocumentManagerΒΆ
DynamicalGroup = NodeType.DynamicalModelNodeGroupΒΆ
DynamicalModel = NodeType.DynamicalModelΒΆ
DynamicalModelArticulatedBodySystem = NodeType.DynamicalModelArticulatedBodySystemΒΆ
DynamicalModelNode = NodeType.DynamicalModelNodeΒΆ
DynamicalModelNodeArticulatedBody = NodeType.DynamicalModelNodeArticulatedBodyΒΆ
DynamicalModelNodeGroup = NodeType.DynamicalModelNodeGroupΒΆ
DynamicalModelNodeParticle = NodeType.DynamicalModelNodeParticleΒΆ
DynamicalModelNodeRigidBody = NodeType.DynamicalModelNodeRigidBodyΒΆ
DynamicalModelNodeRoot = NodeType.DynamicalModelNodeRootΒΆ
DynamicalModelParticleSystem = NodeType.DynamicalModelParticleSystemΒΆ
DynamicalModelRigidBodySystem = NodeType.DynamicalModelRigidBodySystemΒΆ
DynamicalNode = NodeType.DynamicalModelNodeΒΆ
DynamicalParticle = NodeType.DynamicalModelNodeParticleΒΆ
DynamicalRoot = NodeType.DynamicalModelNodeRootΒΆ
InteractionModel = NodeType.InteractionModelΒΆ
InteractionModelArticulatedBodySystem = NodeType.InteractionModelArticulatedBodySystemΒΆ
InteractionModelParticleSystem = NodeType.InteractionModelParticleSystemΒΆ
InteractionModelRigidBodySystem = NodeType.InteractionModelRigidBodySystemΒΆ
Label = NodeType.DocumentLabelΒΆ
Layer = NodeType.DocumentLayerΒΆ
Molecule = NodeType.StructuralModelNodeMoleculeΒΆ
NodeGroup = NodeType.DataGraphNodeGroupΒΆ
ParticleSystem = NodeType.DynamicalModelParticleSystemΒΆ
Path = NodeType.StructuralModelPathΒΆ
PropertyModel = NodeType.PropertyModelΒΆ
PropertyModelFunction = NodeType.PropertyModelFunctionΒΆ
Protein = NodeType.StructuralModelNodeProteinΒΆ
PseudoAtom = NodeType.StructuralModelNodePseudoAtomΒΆ
Residue = NodeType.StructuralModelNodeResidueΒΆ
RigidBody = NodeType.DynamicalModelNodeRigidBodyΒΆ
RigidBodySystem = NodeType.DynamicalModelRigidBodySystemΒΆ
Root = NodeType.StructuralModelNodeRootΒΆ
Segment = NodeType.StructuralModelNodeSegmentΒΆ
SideChain = NodeType.StructuralModelNodeSideChainΒΆ
Simulator = NodeType.SimulatorΒΆ
SimulatorArticulatedBodySystem = NodeType.SimulatorArticulatedBodySystemΒΆ
SimulatorParticleSystem = NodeType.SimulatorParticleSystemΒΆ
SimulatorRigidBodySystem = NodeType.SimulatorRigidBodySystemΒΆ
StateUpdater = NodeType.StateUpdaterΒΆ
StateUpdaterArticulatedBodySystem = NodeType.StateUpdaterArticulatedBodySystemΒΆ
StateUpdaterParticleSystem = NodeType.StateUpdaterParticleSystemΒΆ
StateUpdaterRigidBodySystem = NodeType.StateUpdaterRigidBodySystemΒΆ
StructuralGroup = NodeType.StructuralModelNodeGroupΒΆ
StructuralModel = NodeType.StructuralModelΒΆ
StructuralModelConformation = NodeType.StructuralModelConformationΒΆ
StructuralModelNode = NodeType.StructuralModelNodeΒΆ
StructuralModelNodeAtom = NodeType.AtomΒΆ
StructuralModelNodeBackbone = NodeType.StructuralModelNodeBackboneΒΆ
StructuralModelNodeBond = NodeType.StructuralModelNodeBondΒΆ
StructuralModelNodeChain = NodeType.StructuralModelNodeChainΒΆ
StructuralModelNodeGroup = NodeType.StructuralModelNodeGroupΒΆ
StructuralModelNodeMolecule = NodeType.StructuralModelNodeMoleculeΒΆ
StructuralModelNodeParticle = NodeType.StructuralModelNodeParticleΒΆ
StructuralModelNodeProtein = NodeType.StructuralModelNodeProteinΒΆ
StructuralModelNodePseudoAtom = NodeType.StructuralModelNodePseudoAtomΒΆ
StructuralModelNodeResidue = NodeType.StructuralModelNodeResidueΒΆ
StructuralModelNodeRoot = NodeType.StructuralModelNodeRootΒΆ
StructuralModelNodeSegment = NodeType.StructuralModelNodeSegmentΒΆ
StructuralModelNodeSideChain = NodeType.StructuralModelNodeSideChainΒΆ
StructuralModelPath = NodeType.StructuralModelPathΒΆ
StructuralParticle = NodeType.StructuralModelNodeParticleΒΆ
Undefined = NodeType.UndefinedΒΆ
VisualModel = NodeType.VisualModelΒΆ
__ge__ΒΆ

Return self>=value.

__gt__ΒΆ

Return self>value.

__le__ΒΆ

Return self<=value.

__lt__ΒΆ

Return self<value.

addChild(self: samson.DataModel.DataGraph.Node, node: samson.DataModel.DataGraph.Node, nextNode: samson.DataModel.DataGraph.Node=None) → boolΒΆ

Adds a child to the node

addMaterial(self: samson.DataModel.DataGraph.Node, material: SBDDataGraphNodeMaterial) → boolΒΆ

Adds material to the node

backView(self: samson.DataModel.Document.Camera) → NoneΒΆ

Goes to the back view

bottomView(self: samson.DataModel.Document.Camera) → NoneΒΆ

Goes to the bottom view

castToInteractionModelParticleSystem(self: samson.DataModel.DataGraph.Node) → SBMInteractionModelParticleSystemΒΆ

Casts (if possible) from SBDDataGraphNode to SBMInteractionModelParticleSystem

castToLabel(self: samson.DataModel.DataGraph.Node) → SBDDocumentLabelΒΆ

Casts (if possible) from SBDDataGraphNode to SBDDocumentLabel

castToVisualModel(self: samson.DataModel.DataGraph.Node) → SBMVisualModelΒΆ

Casts (if possible) from SBDDataGraphNode to SBMVisualModel

center(self: samson.DataModel.Document.Camera) → NoneΒΆ

Centers the camera

clone(self: samson.DataModel.Document.Camera) → samson.DataModel.Document.CameraΒΆ

Returns a copy of the node and its descendants

countNodes(self: samson.DataModel.DataGraph.Node, selectionString: str='*', visitString: str='*', includeDependencies: bool=False) → intΒΆ
Count nodes into nodeIndexer, based on a selectionPredicate and a visitPredicate, with our without dependencies).
For selectionString and visitString use Node Specification Language (SAMSON API: Node Specification Language
create(self: samson.DataModel.DataGraph.Node) → NoneΒΆ

Creates the node

defaultView(self: samson.DataModel.Document.Camera) → NoneΒΆ

Sets the view to default parameters

erase(self: samson.DataModel.DataGraph.Node) → NoneΒΆ

Erases the node

fitToScreen(self: samson.DataModel.Document.Camera) → NoneΒΆ

Fits the camera

frontView(self: samson.DataModel.Document.Camera) → NoneΒΆ

Goes to the front view

getDocument(self: samson.DataModel.Document.Camera) → samson.DataModel.Document.DocumentΒΆ

Returns the document

getEyeDestination(self: samson.DataModel.Document.Camera) → SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >ΒΆ

Returns destination of the eye

getEyePosition(self: samson.DataModel.Document.Camera) → SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >ΒΆ

Returns position of the eye

getEyeVelocity(self: samson.DataModel.Document.Camera) → SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >ΒΆ

Returns velocity of the eye

getFlags(self: samson.DataModel.DataGraph.Node) → intΒΆ

Returns the flags

getFrustumPositionFromWorldPosition(self: samson.DataModel.Document.Camera, worldPosition: SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >) → SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >ΒΆ

Returns the projection in the frustum of a given world position

getHeadPosition(self: samson.DataModel.Document.Camera) → SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >ΒΆ

Returns position of the head

getInheritedFlags(self: samson.DataModel.DataGraph.Node) → intΒΆ

Returns the inherited flags

getMaterial(self: samson.DataModel.DataGraph.Node) → SBDDataGraphNodeMaterialΒΆ

Returns the material of the node

getMaterialOwner(self: samson.DataModel.DataGraph.Node) → samson.DataModel.DataGraph.NodeΒΆ

Returns the node whose material is inherited

getMemoryFootprint(self: samson.Core.Reference.SBCReferenceTarget) → intΒΆ

Returns the memory footprint

getNextCamera(self: samson.DataModel.Document.Camera) → samson.DataModel.Document.CameraΒΆ

Returns the next Camera

getNode(self: int) → samson.DataModel.DataGraph.NodeΒΆ

Returns the unique node corresponding to the node index nodeIndex

getNodes(self: samson.DataModel.DataGraph.Node, selectionString: str='*', visitString: str='*', includeDependencies: bool=False) → SBDDataGraphNodeIndexerΒΆ
Returns nodes (in a node indexer), based on a selectionString and a visitString, with our without dependencies).
For selectionString and visitString use Node Specification Language (SAMSON API: Node Specification Language
getParent(self: samson.DataModel.Document.Camera) → samson.DataModel.DataGraph.NodeΒΆ

Returns the parent node

getPreviousCamera(self: samson.DataModel.Document.Camera) → samson.DataModel.Document.CameraΒΆ

Returns the previous Camera

getProjectionMatrix(self: samson.DataModel.Document.Camera) → List[List[float]]ΒΆ

Returns the projection matrix

getProjectionMatrixTranspose(self: samson.DataModel.Document.Camera) → List[List[float]]ΒΆ

Returns the transpose of the projection matrix

getRoot(self: samson.DataModel.DataGraph.Node) → samson.DataModel.DataGraph.NodeΒΆ

Returns the root of the hierarchy the node belongs to

getRotationVelocity(self: samson.DataModel.Document.Camera) → SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >ΒΆ

Returns rotation velocity

getTargetDestination(self: samson.DataModel.Document.Camera) → SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >ΒΆ

Returns destination of the target

getTargetPosition(self: samson.DataModel.Document.Camera) → SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >ΒΆ

Returns position of the target

getTargetVelocity(self: samson.DataModel.Document.Camera) → SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >ΒΆ

Returns velocity of the target

getUpVector(self: samson.DataModel.Document.Camera) → SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >ΒΆ

Returns up vector

getUpVectorDestination(self: samson.DataModel.Document.Camera) → SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >ΒΆ

Returns destination of the up vector

getViewMatrix(self: samson.DataModel.Document.Camera) → List[List[float]]ΒΆ

Returns the view matrix

getViewMatrixTranspose(self: samson.DataModel.Document.Camera) → List[List[float]]ΒΆ

Returns the transpose of the view matrix

getViewProjectionMatrix(self: samson.DataModel.Document.Camera) → List[List[float]]ΒΆ

Returns the view projection matrix

getViewProjectionMatrixTranspose(self: samson.DataModel.Document.Camera) → List[List[float]]ΒΆ

Returns the transpose of the view projection matrix

getViewProjectionMatrixTransposeInverse(self: samson.DataModel.Document.Camera) → List[List[float]]ΒΆ

Returns the inverse of the transpose of the view projection matrix

getWorldPositionFromFrustumPosition(self: samson.DataModel.Document.Camera, frustumPosition: SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >) → SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >ΒΆ

Returns the world position that corresponds to a frustum position

hasOneOf(self: samson.DataModel.DataGraph.Node, nodeIndexer: SBDDataGraphNodeIndexer) → boolΒΆ

Returns true if and only if this node is one of the nodes of the nodeIndexer, or is the ancestor of one of them

isIn(*args, **kwargs)ΒΆ

Overloaded function.

  1. isIn(self: samson.DataModel.DataGraph.Node, node: samson.DataModel.DataGraph.Node) -> bool

Returns true if and only if this node is node, or descends from it

  1. isIn(self: samson.DataModel.DataGraph.Node, nodeIndexer: SBDDataGraphNodeIndexer) -> bool

Returns true if and only if this node is one of the nodes of the nodeIndexer, or descends from one of them

isOneOf(self: samson.DataModel.DataGraph.Node, nodeIndexer: SBDDataGraphNodeIndexer) → boolΒΆ

Returns true if and only if this node is one of the nodes of the nodeIndexer

leftView(self: samson.DataModel.Document.Camera) → NoneΒΆ

Goes to the left view

removeChild(self: samson.DataModel.DataGraph.Node, node: samson.DataModel.DataGraph.Node) → boolΒΆ

Removes a child from the node

removeMaterial(self: samson.DataModel.DataGraph.Node) → boolΒΆ

Removes material from the node

rightView(self: samson.DataModel.Document.Camera) → NoneΒΆ

Goes to the right view

rotate(self: samson.DataModel.Document.Camera, velocity: SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >, center: SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >) → NoneΒΆ

Rotates the camera

setColor(self: samson.DataModel.DataGraph.Node, color: SBDColor, applyToChildren: bool=False) → NoneΒΆ

Sets the color for the node (removes an existing material from the node and adds a given material based on a given color)

Args:

color (Color): material to set

applyToChildren (boolean): if set to True goes through child nodes (default value: False)

setEyeDestination(self: samson.DataModel.Document.Camera, arg0: SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >) → NoneΒΆ

Sets destination of the eye

setEyePosition(self: samson.DataModel.Document.Camera, arg0: SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >) → NoneΒΆ

Sets position of the eye

setEyeVelocity(self: samson.DataModel.Document.Camera, arg0: SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >) → NoneΒΆ

Sets velocity of the eye

setHeadPosition(self: samson.DataModel.Document.Camera, arg0: SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >) → NoneΒΆ

Sets position of the head

setMaterial(self: samson.DataModel.DataGraph.Node, material: SBDDataGraphNodeMaterial, applyToChildren: bool=False) → NoneΒΆ

Sets the material for the node (removes an existing material from the node and adds a given material)

Args:

material (Material): material to set

applyToChildren (boolean): if set to True goes through child nodes (default value: False)

setRotationVelocity(self: samson.DataModel.Document.Camera, arg0: SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >) → NoneΒΆ

Sets rotation velocity

setTargetDestination(self: samson.DataModel.Document.Camera, arg0: SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >) → NoneΒΆ

Sets destination of the target

setTargetPosition(self: samson.DataModel.Document.Camera, arg0: SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >) → NoneΒΆ

Sets position of the target

setTargetVelocity(self: samson.DataModel.Document.Camera, arg0: SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >) → NoneΒΆ

Sets velocity of the target

setUpVector(self: samson.DataModel.Document.Camera, arg0: SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >) → NoneΒΆ

Sets up vector

setUpVectorDestination(self: samson.DataModel.Document.Camera, arg0: SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >) → NoneΒΆ

Sets destination of the up vector

sprint(self: samson.DataModel.Document.Camera, offset: int=0) → NoneΒΆ

Prints some debugging information

stop(self: samson.DataModel.Document.Camera) → NoneΒΆ

Stops the camera

topView(self: samson.DataModel.Document.Camera) → NoneΒΆ

Goes to the top view

translate(self: samson.DataModel.Document.Camera, velocity: SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >) → NoneΒΆ

Translates the camera

updateState(self: samson.DataModel.Document.Camera) → boolΒΆ

Updates the state of the camera and returns true if the camera moved

zoomIn(self: samson.DataModel.Document.Camera, velocity: SBDQuantityWrapper<SBDQuantityUnitSystemSI>, center: SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >) → NoneΒΆ

Zooms in

zoomOut(self: samson.DataModel.Document.Camera, velocity: SBDQuantityWrapper<SBDQuantityUnitSystemSI>, center: SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >) → NoneΒΆ

Zooms out

zoomTo(self: samson.DataModel.Document.Camera, cameraTargetDestination: SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >) → NoneΒΆ

Zooms to a specific destination

ArticulatedBody = NodeType.DynamicalModelNodeArticulatedBodyΒΆ
ArticulatedBodySystem = NodeType.DynamicalModelArticulatedBodySystemΒΆ
Atom = NodeType.AtomΒΆ
Backbone = NodeType.StructuralModelNodeBackboneΒΆ
Bond = NodeType.StructuralModelNodeBondΒΆ
Camera = NodeType.DocumentCameraΒΆ
Chain = NodeType.StructuralModelNodeChainΒΆ
Conformation = NodeType.StructuralModelConformationΒΆ
Controller = NodeType.ControllerΒΆ
ControllerNode = NodeType.ControllerNodeΒΆ
DataGraphNodeGroup = NodeType.DataGraphNodeGroupΒΆ
Document = NodeType.DocumentΒΆ
DocumentCamera = NodeType.DocumentCameraΒΆ
DocumentLabel = NodeType.DocumentLabelΒΆ
DocumentLayer = NodeType.DocumentLayerΒΆ
DocumentManager = NodeType.DocumentManagerΒΆ
DynamicalGroup = NodeType.DynamicalModelNodeGroupΒΆ
DynamicalModel = NodeType.DynamicalModelΒΆ
DynamicalModelArticulatedBodySystem = NodeType.DynamicalModelArticulatedBodySystemΒΆ
DynamicalModelNode = NodeType.DynamicalModelNodeΒΆ
DynamicalModelNodeArticulatedBody = NodeType.DynamicalModelNodeArticulatedBodyΒΆ
DynamicalModelNodeGroup = NodeType.DynamicalModelNodeGroupΒΆ
DynamicalModelNodeParticle = NodeType.DynamicalModelNodeParticleΒΆ
DynamicalModelNodeRigidBody = NodeType.DynamicalModelNodeRigidBodyΒΆ
DynamicalModelNodeRoot = NodeType.DynamicalModelNodeRootΒΆ
DynamicalModelParticleSystem = NodeType.DynamicalModelParticleSystemΒΆ
DynamicalModelRigidBodySystem = NodeType.DynamicalModelRigidBodySystemΒΆ
DynamicalNode = NodeType.DynamicalModelNodeΒΆ
DynamicalParticle = NodeType.DynamicalModelNodeParticleΒΆ
DynamicalRoot = NodeType.DynamicalModelNodeRootΒΆ
InteractionModel = NodeType.InteractionModelΒΆ
InteractionModelArticulatedBodySystem = NodeType.InteractionModelArticulatedBodySystemΒΆ
InteractionModelParticleSystem = NodeType.InteractionModelParticleSystemΒΆ
InteractionModelRigidBodySystem = NodeType.InteractionModelRigidBodySystemΒΆ
Label = NodeType.DocumentLabelΒΆ
Layer = NodeType.DocumentLayerΒΆ
Molecule = NodeType.StructuralModelNodeMoleculeΒΆ
NodeGroup = NodeType.DataGraphNodeGroupΒΆ
ParticleSystem = NodeType.DynamicalModelParticleSystemΒΆ
Path = NodeType.StructuralModelPathΒΆ
PropertyModel = NodeType.PropertyModelΒΆ
PropertyModelFunction = NodeType.PropertyModelFunctionΒΆ
Protein = NodeType.StructuralModelNodeProteinΒΆ
PseudoAtom = NodeType.StructuralModelNodePseudoAtomΒΆ
Residue = NodeType.StructuralModelNodeResidueΒΆ
RigidBody = NodeType.DynamicalModelNodeRigidBodyΒΆ
RigidBodySystem = NodeType.DynamicalModelRigidBodySystemΒΆ
Root = NodeType.StructuralModelNodeRootΒΆ
Segment = NodeType.StructuralModelNodeSegmentΒΆ
SideChain = NodeType.StructuralModelNodeSideChainΒΆ
Simulator = NodeType.SimulatorΒΆ
SimulatorArticulatedBodySystem = NodeType.SimulatorArticulatedBodySystemΒΆ
SimulatorParticleSystem = NodeType.SimulatorParticleSystemΒΆ
SimulatorRigidBodySystem = NodeType.SimulatorRigidBodySystemΒΆ
StateUpdater = NodeType.StateUpdaterΒΆ
StateUpdaterArticulatedBodySystem = NodeType.StateUpdaterArticulatedBodySystemΒΆ
StateUpdaterParticleSystem = NodeType.StateUpdaterParticleSystemΒΆ
StateUpdaterRigidBodySystem = NodeType.StateUpdaterRigidBodySystemΒΆ
StructuralGroup = NodeType.StructuralModelNodeGroupΒΆ
StructuralModel = NodeType.StructuralModelΒΆ
StructuralModelConformation = NodeType.StructuralModelConformationΒΆ
StructuralModelNode = NodeType.StructuralModelNodeΒΆ
StructuralModelNodeAtom = NodeType.AtomΒΆ
StructuralModelNodeBackbone = NodeType.StructuralModelNodeBackboneΒΆ
StructuralModelNodeBond = NodeType.StructuralModelNodeBondΒΆ
StructuralModelNodeChain = NodeType.StructuralModelNodeChainΒΆ
StructuralModelNodeGroup = NodeType.StructuralModelNodeGroupΒΆ
StructuralModelNodeMolecule = NodeType.StructuralModelNodeMoleculeΒΆ
StructuralModelNodeParticle = NodeType.StructuralModelNodeParticleΒΆ
StructuralModelNodeProtein = NodeType.StructuralModelNodeProteinΒΆ
StructuralModelNodePseudoAtom = NodeType.StructuralModelNodePseudoAtomΒΆ
StructuralModelNodeResidue = NodeType.StructuralModelNodeResidueΒΆ
StructuralModelNodeRoot = NodeType.StructuralModelNodeRootΒΆ
StructuralModelNodeSegment = NodeType.StructuralModelNodeSegmentΒΆ
StructuralModelNodeSideChain = NodeType.StructuralModelNodeSideChainΒΆ
StructuralModelPath = NodeType.StructuralModelPathΒΆ
StructuralParticle = NodeType.StructuralModelNodeParticleΒΆ
Undefined = NodeType.UndefinedΒΆ
VisualModel = NodeType.VisualModelΒΆ
__eq__ΒΆ

Return self==value.

__ge__ΒΆ

Return self>=value.

__gt__ΒΆ

Return self>value.

__le__ΒΆ

Return self<=value.

__lt__ΒΆ

Return self<value.

__ne__ΒΆ

Return self!=value.

aspectRatioΒΆ

aspect ratio

basisXΒΆ

the x vector of the camera basis

basisYΒΆ

the y vector of the camera basis

basisZΒΆ

the z vector of the camera basis

clippingPlaneΒΆ

clipping plane

farPlaneΒΆ

far plane

fieldOfViewAngleYΒΆ

field of view angle

highlightingFlagΒΆ
inertiaFlagΒΆ
isCreatedΒΆ

Returns true if and only if the node is created

isErasedΒΆ

Returns true if and only if the node is erased

isHighlightedΒΆ

Returns whether the node is highlighted

isSelectedΒΆ

Returns whether the node is selected

isSerializableΒΆ

Returns true when the class is serializable

isVisibleΒΆ

Returns whether the node is visible

nameΒΆ

the name of the camera

nearPlaneΒΆ

near plane

nodeIndexΒΆ

Returns the node index (unique in the whole data graph, but non-persistent)

orthographicProjectionFlagΒΆ

the orthographic projection flag

selectionFlagΒΆ
typeΒΆ

Returns the type of the data graph node

typeStringΒΆ

Returns a string describing the type of the data graph node

visibilityFlagΒΆ
class samson.DataModel.Document.Document(*args, **kwargs)ΒΆ

Bases: samson.DataModel.DataGraph.Node

This class describes a document.

SAMSON API: SBDDocument

Overloaded function.

  1. __init__(self: samson.DataModel.Document.Document) -> None

Constructs a document

  1. __init__(self: samson.DataModel.Document.Document, name: str) -> None

Constructs a document with name

class NodeType(self: samson.DataModel.DataGraph.Node.NodeType, arg0: int) → NoneΒΆ

Bases: pybind11_builtins.pybind11_object

__eq__(*args, **kwargs)ΒΆ

Overloaded function.

  1. __eq__(self: samson.DataModel.DataGraph.Node.NodeType, arg0: samson.DataModel.DataGraph.Node.NodeType) -> bool
  2. __eq__(self: samson.DataModel.DataGraph.Node.NodeType, arg0: int) -> bool
__ne__(*args, **kwargs)ΒΆ

Overloaded function.

  1. __ne__(self: samson.DataModel.DataGraph.Node.NodeType, arg0: samson.DataModel.DataGraph.Node.NodeType) -> bool
  2. __ne__(self: samson.DataModel.DataGraph.Node.NodeType, arg0: int) -> bool
ArticulatedBody = NodeType.DynamicalModelNodeArticulatedBodyΒΆ
ArticulatedBodySystem = NodeType.DynamicalModelArticulatedBodySystemΒΆ
Atom = NodeType.AtomΒΆ
Backbone = NodeType.StructuralModelNodeBackboneΒΆ
Bond = NodeType.StructuralModelNodeBondΒΆ
Camera = NodeType.DocumentCameraΒΆ
Chain = NodeType.StructuralModelNodeChainΒΆ
Conformation = NodeType.StructuralModelConformationΒΆ
Controller = NodeType.ControllerΒΆ
ControllerNode = NodeType.ControllerNodeΒΆ
DataGraphNodeGroup = NodeType.DataGraphNodeGroupΒΆ
Document = NodeType.DocumentΒΆ
DocumentCamera = NodeType.DocumentCameraΒΆ
DocumentLabel = NodeType.DocumentLabelΒΆ
DocumentLayer = NodeType.DocumentLayerΒΆ
DocumentManager = NodeType.DocumentManagerΒΆ
DynamicalGroup = NodeType.DynamicalModelNodeGroupΒΆ
DynamicalModel = NodeType.DynamicalModelΒΆ
DynamicalModelArticulatedBodySystem = NodeType.DynamicalModelArticulatedBodySystemΒΆ
DynamicalModelNode = NodeType.DynamicalModelNodeΒΆ
DynamicalModelNodeArticulatedBody = NodeType.DynamicalModelNodeArticulatedBodyΒΆ
DynamicalModelNodeGroup = NodeType.DynamicalModelNodeGroupΒΆ
DynamicalModelNodeParticle = NodeType.DynamicalModelNodeParticleΒΆ
DynamicalModelNodeRigidBody = NodeType.DynamicalModelNodeRigidBodyΒΆ
DynamicalModelNodeRoot = NodeType.DynamicalModelNodeRootΒΆ
DynamicalModelParticleSystem = NodeType.DynamicalModelParticleSystemΒΆ
DynamicalModelRigidBodySystem = NodeType.DynamicalModelRigidBodySystemΒΆ
DynamicalNode = NodeType.DynamicalModelNodeΒΆ
DynamicalParticle = NodeType.DynamicalModelNodeParticleΒΆ
DynamicalRoot = NodeType.DynamicalModelNodeRootΒΆ
InteractionModel = NodeType.InteractionModelΒΆ
InteractionModelArticulatedBodySystem = NodeType.InteractionModelArticulatedBodySystemΒΆ
InteractionModelParticleSystem = NodeType.InteractionModelParticleSystemΒΆ
InteractionModelRigidBodySystem = NodeType.InteractionModelRigidBodySystemΒΆ
Label = NodeType.DocumentLabelΒΆ
Layer = NodeType.DocumentLayerΒΆ
Molecule = NodeType.StructuralModelNodeMoleculeΒΆ
NodeGroup = NodeType.DataGraphNodeGroupΒΆ
ParticleSystem = NodeType.DynamicalModelParticleSystemΒΆ
Path = NodeType.StructuralModelPathΒΆ
PropertyModel = NodeType.PropertyModelΒΆ
PropertyModelFunction = NodeType.PropertyModelFunctionΒΆ
Protein = NodeType.StructuralModelNodeProteinΒΆ
PseudoAtom = NodeType.StructuralModelNodePseudoAtomΒΆ
Residue = NodeType.StructuralModelNodeResidueΒΆ
RigidBody = NodeType.DynamicalModelNodeRigidBodyΒΆ
RigidBodySystem = NodeType.DynamicalModelRigidBodySystemΒΆ
Root = NodeType.StructuralModelNodeRootΒΆ
Segment = NodeType.StructuralModelNodeSegmentΒΆ
SideChain = NodeType.StructuralModelNodeSideChainΒΆ
Simulator = NodeType.SimulatorΒΆ
SimulatorArticulatedBodySystem = NodeType.SimulatorArticulatedBodySystemΒΆ
SimulatorParticleSystem = NodeType.SimulatorParticleSystemΒΆ
SimulatorRigidBodySystem = NodeType.SimulatorRigidBodySystemΒΆ
StateUpdater = NodeType.StateUpdaterΒΆ
StateUpdaterArticulatedBodySystem = NodeType.StateUpdaterArticulatedBodySystemΒΆ
StateUpdaterParticleSystem = NodeType.StateUpdaterParticleSystemΒΆ
StateUpdaterRigidBodySystem = NodeType.StateUpdaterRigidBodySystemΒΆ
StructuralGroup = NodeType.StructuralModelNodeGroupΒΆ
StructuralModel = NodeType.StructuralModelΒΆ
StructuralModelConformation = NodeType.StructuralModelConformationΒΆ
StructuralModelNode = NodeType.StructuralModelNodeΒΆ
StructuralModelNodeAtom = NodeType.AtomΒΆ
StructuralModelNodeBackbone = NodeType.StructuralModelNodeBackboneΒΆ
StructuralModelNodeBond = NodeType.StructuralModelNodeBondΒΆ
StructuralModelNodeChain = NodeType.StructuralModelNodeChainΒΆ
StructuralModelNodeGroup = NodeType.StructuralModelNodeGroupΒΆ
StructuralModelNodeMolecule = NodeType.StructuralModelNodeMoleculeΒΆ
StructuralModelNodeParticle = NodeType.StructuralModelNodeParticleΒΆ
StructuralModelNodeProtein = NodeType.StructuralModelNodeProteinΒΆ
StructuralModelNodePseudoAtom = NodeType.StructuralModelNodePseudoAtomΒΆ
StructuralModelNodeResidue = NodeType.StructuralModelNodeResidueΒΆ
StructuralModelNodeRoot = NodeType.StructuralModelNodeRootΒΆ
StructuralModelNodeSegment = NodeType.StructuralModelNodeSegmentΒΆ
StructuralModelNodeSideChain = NodeType.StructuralModelNodeSideChainΒΆ
StructuralModelPath = NodeType.StructuralModelPathΒΆ
StructuralParticle = NodeType.StructuralModelNodeParticleΒΆ
Undefined = NodeType.UndefinedΒΆ
VisualModel = NodeType.VisualModelΒΆ
__ge__ΒΆ

Return self>=value.

__gt__ΒΆ

Return self>value.

__le__ΒΆ

Return self<=value.

__lt__ΒΆ

Return self<value.

addChild(self: samson.DataModel.Document.Document, node: samson.DataModel.DataGraph.Node, nextNode: samson.DataModel.DataGraph.Node=None) → boolΒΆ

Adds a child to the node

addMaterial(self: samson.DataModel.DataGraph.Node, material: SBDDataGraphNodeMaterial) → boolΒΆ

Adds material to the node

addNodeToSelection(self: samson.DataModel.Document.Document, node: samson.DataModel.DataGraph.Node) → NoneΒΆ

Adds a node to the selection

castToInteractionModelParticleSystem(self: samson.DataModel.DataGraph.Node) → SBMInteractionModelParticleSystemΒΆ

Casts (if possible) from SBDDataGraphNode to SBMInteractionModelParticleSystem

castToLabel(self: samson.DataModel.DataGraph.Node) → SBDDocumentLabelΒΆ

Casts (if possible) from SBDDataGraphNode to SBDDocumentLabel

castToVisualModel(self: samson.DataModel.DataGraph.Node) → SBMVisualModelΒΆ

Casts (if possible) from SBDDataGraphNode to SBMVisualModel

clearSelection(self: samson.DataModel.Document.Document) → NoneΒΆ

Clears the selection

clone(self: samson.DataModel.Document.Document) → samson.DataModel.Document.DocumentΒΆ

Returns a copy of the node and its descendants

countNodes(self: samson.DataModel.DataGraph.Node, selectionString: str='*', visitString: str='*', includeDependencies: bool=False) → intΒΆ
Count nodes into nodeIndexer, based on a selectionPredicate and a visitPredicate, with our without dependencies).
For selectionString and visitString use Node Specification Language (SAMSON API: Node Specification Language
create(self: samson.DataModel.DataGraph.Node) → NoneΒΆ

Creates the node

erase(self: samson.DataModel.DataGraph.Node) → NoneΒΆ

Erases the node

getActiveLayer(self: samson.DataModel.Document.Document) → SBDDocumentLayerΒΆ

Returns the active document layer

getFlags(self: samson.DataModel.DataGraph.Node) → intΒΆ

Returns the flags

getInheritedFlags(self: samson.DataModel.DataGraph.Node) → intΒΆ

Returns the inherited flags

getMaterial(self: samson.DataModel.DataGraph.Node) → SBDDataGraphNodeMaterialΒΆ

Returns the material of the node

getMaterialOwner(self: samson.DataModel.DataGraph.Node) → samson.DataModel.DataGraph.NodeΒΆ

Returns the node whose material is inherited

getMemoryFootprint(self: samson.Core.Reference.SBCReferenceTarget) → intΒΆ

Returns the memory footprint

getNextDocument(self: samson.DataModel.Document.Document) → samson.DataModel.Document.DocumentΒΆ

Returns the next document

getNode(self: int) → samson.DataModel.DataGraph.NodeΒΆ

Returns the unique node corresponding to the node index nodeIndex

getNodes(self: samson.DataModel.DataGraph.Node, selectionString: str='*', visitString: str='*', includeDependencies: bool=False) → SBDDataGraphNodeIndexerΒΆ
Returns nodes (in a node indexer), based on a selectionString and a visitString, with our without dependencies).
For selectionString and visitString use Node Specification Language (SAMSON API: Node Specification Language
getParent(self: samson.DataModel.Document.Document) → samson.DataModel.DataGraph.NodeΒΆ

Returns the parent node

getPreviousDocument(self: samson.DataModel.Document.Document) → samson.DataModel.Document.DocumentΒΆ

Returns the previous document

getRoot(self: samson.DataModel.DataGraph.Node) → samson.DataModel.DataGraph.NodeΒΆ

Returns the root of the hierarchy the node belongs to

getSelectedNodes(self: samson.DataModel.Document.Document) → SBCReferencePointerIndexer<SBDDataGraphNode, SBCReferenceToTarget>ΒΆ

Returns the index of selected nodes

hasOneOf(self: samson.DataModel.DataGraph.Node, nodeIndexer: SBDDataGraphNodeIndexer) → boolΒΆ

Returns true if and only if this node is one of the nodes of the nodeIndexer, or is the ancestor of one of them

isIn(*args, **kwargs)ΒΆ

Overloaded function.

  1. isIn(self: samson.DataModel.DataGraph.Node, node: samson.DataModel.DataGraph.Node) -> bool

Returns true if and only if this node is node, or descends from it

  1. isIn(self: samson.DataModel.DataGraph.Node, nodeIndexer: SBDDataGraphNodeIndexer) -> bool

Returns true if and only if this node is one of the nodes of the nodeIndexer, or descends from one of them

isOneOf(self: samson.DataModel.DataGraph.Node, nodeIndexer: SBDDataGraphNodeIndexer) → boolΒΆ

Returns true if and only if this node is one of the nodes of the nodeIndexer

removeChild(self: samson.DataModel.Document.Document, node: samson.DataModel.DataGraph.Node) → boolΒΆ

Removes a child from the node

removeMaterial(self: samson.DataModel.DataGraph.Node) → boolΒΆ

Removes material from the node

removeNodeFromSelection(self: samson.DataModel.Document.Document, node: samson.DataModel.DataGraph.Node) → NoneΒΆ

Adds a node to the selection

setActiveLayer(self: samson.DataModel.Document.Document, arg0: SBDDocumentLayer) → NoneΒΆ

Sets the active document layer

setColor(self: samson.DataModel.DataGraph.Node, color: SBDColor, applyToChildren: bool=False) → NoneΒΆ

Sets the color for the node (removes an existing material from the node and adds a given material based on a given color)

Args:

color (Color): material to set

applyToChildren (boolean): if set to True goes through child nodes (default value: False)

setMaterial(self: samson.DataModel.DataGraph.Node, material: SBDDataGraphNodeMaterial, applyToChildren: bool=False) → NoneΒΆ

Sets the material for the node (removes an existing material from the node and adds a given material)

Args:

material (Material): material to set

applyToChildren (boolean): if set to True goes through child nodes (default value: False)

sprint(self: samson.DataModel.DataGraph.Node, offset: int=0) → NoneΒΆ

Prints some debugging information

ArticulatedBody = NodeType.DynamicalModelNodeArticulatedBodyΒΆ
ArticulatedBodySystem = NodeType.DynamicalModelArticulatedBodySystemΒΆ
Atom = NodeType.AtomΒΆ
Backbone = NodeType.StructuralModelNodeBackboneΒΆ
Bond = NodeType.StructuralModelNodeBondΒΆ
Camera = NodeType.DocumentCameraΒΆ
Chain = NodeType.StructuralModelNodeChainΒΆ
Conformation = NodeType.StructuralModelConformationΒΆ
Controller = NodeType.ControllerΒΆ
ControllerNode = NodeType.ControllerNodeΒΆ
DataGraphNodeGroup = NodeType.DataGraphNodeGroupΒΆ
Document = NodeType.DocumentΒΆ
DocumentCamera = NodeType.DocumentCameraΒΆ
DocumentLabel = NodeType.DocumentLabelΒΆ
DocumentLayer = NodeType.DocumentLayerΒΆ
DocumentManager = NodeType.DocumentManagerΒΆ
DynamicalGroup = NodeType.DynamicalModelNodeGroupΒΆ
DynamicalModel = NodeType.DynamicalModelΒΆ
DynamicalModelArticulatedBodySystem = NodeType.DynamicalModelArticulatedBodySystemΒΆ
DynamicalModelNode = NodeType.DynamicalModelNodeΒΆ
DynamicalModelNodeArticulatedBody = NodeType.DynamicalModelNodeArticulatedBodyΒΆ
DynamicalModelNodeGroup = NodeType.DynamicalModelNodeGroupΒΆ
DynamicalModelNodeParticle = NodeType.DynamicalModelNodeParticleΒΆ
DynamicalModelNodeRigidBody = NodeType.DynamicalModelNodeRigidBodyΒΆ
DynamicalModelNodeRoot = NodeType.DynamicalModelNodeRootΒΆ
DynamicalModelParticleSystem = NodeType.DynamicalModelParticleSystemΒΆ
DynamicalModelRigidBodySystem = NodeType.DynamicalModelRigidBodySystemΒΆ
DynamicalNode = NodeType.DynamicalModelNodeΒΆ
DynamicalParticle = NodeType.DynamicalModelNodeParticleΒΆ
DynamicalRoot = NodeType.DynamicalModelNodeRootΒΆ
InteractionModel = NodeType.InteractionModelΒΆ
InteractionModelArticulatedBodySystem = NodeType.InteractionModelArticulatedBodySystemΒΆ
InteractionModelParticleSystem = NodeType.InteractionModelParticleSystemΒΆ
InteractionModelRigidBodySystem = NodeType.InteractionModelRigidBodySystemΒΆ
Label = NodeType.DocumentLabelΒΆ
Layer = NodeType.DocumentLayerΒΆ
Molecule = NodeType.StructuralModelNodeMoleculeΒΆ
NodeGroup = NodeType.DataGraphNodeGroupΒΆ
ParticleSystem = NodeType.DynamicalModelParticleSystemΒΆ
Path = NodeType.StructuralModelPathΒΆ
PropertyModel = NodeType.PropertyModelΒΆ
PropertyModelFunction = NodeType.PropertyModelFunctionΒΆ
Protein = NodeType.StructuralModelNodeProteinΒΆ
PseudoAtom = NodeType.StructuralModelNodePseudoAtomΒΆ
Residue = NodeType.StructuralModelNodeResidueΒΆ
RigidBody = NodeType.DynamicalModelNodeRigidBodyΒΆ
RigidBodySystem = NodeType.DynamicalModelRigidBodySystemΒΆ
Root = NodeType.StructuralModelNodeRootΒΆ
Segment = NodeType.StructuralModelNodeSegmentΒΆ
SideChain = NodeType.StructuralModelNodeSideChainΒΆ
Simulator = NodeType.SimulatorΒΆ
SimulatorArticulatedBodySystem = NodeType.SimulatorArticulatedBodySystemΒΆ
SimulatorParticleSystem = NodeType.SimulatorParticleSystemΒΆ
SimulatorRigidBodySystem = NodeType.SimulatorRigidBodySystemΒΆ
StateUpdater = NodeType.StateUpdaterΒΆ
StateUpdaterArticulatedBodySystem = NodeType.StateUpdaterArticulatedBodySystemΒΆ
StateUpdaterParticleSystem = NodeType.StateUpdaterParticleSystemΒΆ
StateUpdaterRigidBodySystem = NodeType.StateUpdaterRigidBodySystemΒΆ
StructuralGroup = NodeType.StructuralModelNodeGroupΒΆ
StructuralModel = NodeType.StructuralModelΒΆ
StructuralModelConformation = NodeType.StructuralModelConformationΒΆ
StructuralModelNode = NodeType.StructuralModelNodeΒΆ
StructuralModelNodeAtom = NodeType.AtomΒΆ
StructuralModelNodeBackbone = NodeType.StructuralModelNodeBackboneΒΆ
StructuralModelNodeBond = NodeType.StructuralModelNodeBondΒΆ
StructuralModelNodeChain = NodeType.StructuralModelNodeChainΒΆ
StructuralModelNodeGroup = NodeType.StructuralModelNodeGroupΒΆ
StructuralModelNodeMolecule = NodeType.StructuralModelNodeMoleculeΒΆ
StructuralModelNodeParticle = NodeType.StructuralModelNodeParticleΒΆ
StructuralModelNodeProtein = NodeType.StructuralModelNodeProteinΒΆ
StructuralModelNodePseudoAtom = NodeType.StructuralModelNodePseudoAtomΒΆ
StructuralModelNodeResidue = NodeType.StructuralModelNodeResidueΒΆ
StructuralModelNodeRoot = NodeType.StructuralModelNodeRootΒΆ
StructuralModelNodeSegment = NodeType.StructuralModelNodeSegmentΒΆ
StructuralModelNodeSideChain = NodeType.StructuralModelNodeSideChainΒΆ
StructuralModelPath = NodeType.StructuralModelPathΒΆ
StructuralParticle = NodeType.StructuralModelNodeParticleΒΆ
Undefined = NodeType.UndefinedΒΆ
VisualModel = NodeType.VisualModelΒΆ
__eq__ΒΆ

Return self==value.

__ge__ΒΆ

Return self>=value.

__gt__ΒΆ

Return self>value.

__le__ΒΆ

Return self<=value.

__lt__ΒΆ

Return self<value.

__ne__ΒΆ

Return self!=value.

fileNameΒΆ

name of the file associated to the document

highlightingFlagΒΆ
isCreatedΒΆ

Returns true if and only if the node is created

isErasedΒΆ

Returns true if and only if the node is erased

isHighlightedΒΆ

Returns whether the node is highlighted

isSelectedΒΆ

Returns whether the node is selected

isSerializableΒΆ

Returns true when the class is serializable

isVisibleΒΆ

Returns whether the node is visible

nodeIndexΒΆ

Returns the node index (unique in the whole data graph, but non-persistent)

selectionFlagΒΆ
typeΒΆ

Returns the type of the data graph node

typeStringΒΆ

Returns a string describing the type of the data graph node

visibilityFlagΒΆ
class samson.DataModel.Document.Label(*args, **kwargs)ΒΆ

Bases: samson.DataModel.DataGraph.Node

This class describes a label.

SAMSON API: SBDDocumentLabel

Overloaded function.

  1. __init__(self: samson.DataModel.Document.Label) -> None

Constructs a label

  1. __init__(self: samson.DataModel.Document.Label, name: str) -> None

Constructs a label with name

class NodeType(self: samson.DataModel.DataGraph.Node.NodeType, arg0: int) → NoneΒΆ

Bases: pybind11_builtins.pybind11_object

__eq__(*args, **kwargs)ΒΆ

Overloaded function.

  1. __eq__(self: samson.DataModel.DataGraph.Node.NodeType, arg0: samson.DataModel.DataGraph.Node.NodeType) -> bool
  2. __eq__(self: samson.DataModel.DataGraph.Node.NodeType, arg0: int) -> bool
__ne__(*args, **kwargs)ΒΆ

Overloaded function.

  1. __ne__(self: samson.DataModel.DataGraph.Node.NodeType, arg0: samson.DataModel.DataGraph.Node.NodeType) -> bool
  2. __ne__(self: samson.DataModel.DataGraph.Node.NodeType, arg0: int) -> bool
ArticulatedBody = NodeType.DynamicalModelNodeArticulatedBodyΒΆ
ArticulatedBodySystem = NodeType.DynamicalModelArticulatedBodySystemΒΆ
Atom = NodeType.AtomΒΆ
Backbone = NodeType.StructuralModelNodeBackboneΒΆ
Bond = NodeType.StructuralModelNodeBondΒΆ
Camera = NodeType.DocumentCameraΒΆ
Chain = NodeType.StructuralModelNodeChainΒΆ
Conformation = NodeType.StructuralModelConformationΒΆ
Controller = NodeType.ControllerΒΆ
ControllerNode = NodeType.ControllerNodeΒΆ
DataGraphNodeGroup = NodeType.DataGraphNodeGroupΒΆ
Document = NodeType.DocumentΒΆ
DocumentCamera = NodeType.DocumentCameraΒΆ
DocumentLabel = NodeType.DocumentLabelΒΆ
DocumentLayer = NodeType.DocumentLayerΒΆ
DocumentManager = NodeType.DocumentManagerΒΆ
DynamicalGroup = NodeType.DynamicalModelNodeGroupΒΆ
DynamicalModel = NodeType.DynamicalModelΒΆ
DynamicalModelArticulatedBodySystem = NodeType.DynamicalModelArticulatedBodySystemΒΆ
DynamicalModelNode = NodeType.DynamicalModelNodeΒΆ
DynamicalModelNodeArticulatedBody = NodeType.DynamicalModelNodeArticulatedBodyΒΆ
DynamicalModelNodeGroup = NodeType.DynamicalModelNodeGroupΒΆ
DynamicalModelNodeParticle = NodeType.DynamicalModelNodeParticleΒΆ
DynamicalModelNodeRigidBody = NodeType.DynamicalModelNodeRigidBodyΒΆ
DynamicalModelNodeRoot = NodeType.DynamicalModelNodeRootΒΆ
DynamicalModelParticleSystem = NodeType.DynamicalModelParticleSystemΒΆ
DynamicalModelRigidBodySystem = NodeType.DynamicalModelRigidBodySystemΒΆ
DynamicalNode = NodeType.DynamicalModelNodeΒΆ
DynamicalParticle = NodeType.DynamicalModelNodeParticleΒΆ
DynamicalRoot = NodeType.DynamicalModelNodeRootΒΆ
InteractionModel = NodeType.InteractionModelΒΆ
InteractionModelArticulatedBodySystem = NodeType.InteractionModelArticulatedBodySystemΒΆ
InteractionModelParticleSystem = NodeType.InteractionModelParticleSystemΒΆ
InteractionModelRigidBodySystem = NodeType.InteractionModelRigidBodySystemΒΆ
Label = NodeType.DocumentLabelΒΆ
Layer = NodeType.DocumentLayerΒΆ
Molecule = NodeType.StructuralModelNodeMoleculeΒΆ
NodeGroup = NodeType.DataGraphNodeGroupΒΆ
ParticleSystem = NodeType.DynamicalModelParticleSystemΒΆ
Path = NodeType.StructuralModelPathΒΆ
PropertyModel = NodeType.PropertyModelΒΆ
PropertyModelFunction = NodeType.PropertyModelFunctionΒΆ
Protein = NodeType.StructuralModelNodeProteinΒΆ
PseudoAtom = NodeType.StructuralModelNodePseudoAtomΒΆ
Residue = NodeType.StructuralModelNodeResidueΒΆ
RigidBody = NodeType.DynamicalModelNodeRigidBodyΒΆ
RigidBodySystem = NodeType.DynamicalModelRigidBodySystemΒΆ
Root = NodeType.StructuralModelNodeRootΒΆ
Segment = NodeType.StructuralModelNodeSegmentΒΆ
SideChain = NodeType.StructuralModelNodeSideChainΒΆ
Simulator = NodeType.SimulatorΒΆ
SimulatorArticulatedBodySystem = NodeType.SimulatorArticulatedBodySystemΒΆ
SimulatorParticleSystem = NodeType.SimulatorParticleSystemΒΆ
SimulatorRigidBodySystem = NodeType.SimulatorRigidBodySystemΒΆ
StateUpdater = NodeType.StateUpdaterΒΆ
StateUpdaterArticulatedBodySystem = NodeType.StateUpdaterArticulatedBodySystemΒΆ
StateUpdaterParticleSystem = NodeType.StateUpdaterParticleSystemΒΆ
StateUpdaterRigidBodySystem = NodeType.StateUpdaterRigidBodySystemΒΆ
StructuralGroup = NodeType.StructuralModelNodeGroupΒΆ
StructuralModel = NodeType.StructuralModelΒΆ
StructuralModelConformation = NodeType.StructuralModelConformationΒΆ
StructuralModelNode = NodeType.StructuralModelNodeΒΆ
StructuralModelNodeAtom = NodeType.AtomΒΆ
StructuralModelNodeBackbone = NodeType.StructuralModelNodeBackboneΒΆ
StructuralModelNodeBond = NodeType.StructuralModelNodeBondΒΆ
StructuralModelNodeChain = NodeType.StructuralModelNodeChainΒΆ
StructuralModelNodeGroup = NodeType.StructuralModelNodeGroupΒΆ
StructuralModelNodeMolecule = NodeType.StructuralModelNodeMoleculeΒΆ
StructuralModelNodeParticle = NodeType.StructuralModelNodeParticleΒΆ
StructuralModelNodeProtein = NodeType.StructuralModelNodeProteinΒΆ
StructuralModelNodePseudoAtom = NodeType.StructuralModelNodePseudoAtomΒΆ
StructuralModelNodeResidue = NodeType.StructuralModelNodeResidueΒΆ
StructuralModelNodeRoot = NodeType.StructuralModelNodeRootΒΆ
StructuralModelNodeSegment = NodeType.StructuralModelNodeSegmentΒΆ
StructuralModelNodeSideChain = NodeType.StructuralModelNodeSideChainΒΆ
StructuralModelPath = NodeType.StructuralModelPathΒΆ
StructuralParticle = NodeType.StructuralModelNodeParticleΒΆ
Undefined = NodeType.UndefinedΒΆ
VisualModel = NodeType.VisualModelΒΆ
__ge__ΒΆ

Return self>=value.

__gt__ΒΆ

Return self>value.

__le__ΒΆ

Return self<=value.

__lt__ΒΆ

Return self<value.

addChild(self: samson.DataModel.DataGraph.Node, node: samson.DataModel.DataGraph.Node, nextNode: samson.DataModel.DataGraph.Node=None) → boolΒΆ

Adds a child to the node

addMaterial(self: samson.DataModel.DataGraph.Node, material: SBDDataGraphNodeMaterial) → boolΒΆ

Adds material to the node

castToInteractionModelParticleSystem(self: samson.DataModel.DataGraph.Node) → SBMInteractionModelParticleSystemΒΆ

Casts (if possible) from SBDDataGraphNode to SBMInteractionModelParticleSystem

castToLabel(self: samson.DataModel.DataGraph.Node) → SBDDocumentLabelΒΆ

Casts (if possible) from SBDDataGraphNode to SBDDocumentLabel

castToVisualModel(self: samson.DataModel.DataGraph.Node) → SBMVisualModelΒΆ

Casts (if possible) from SBDDataGraphNode to SBMVisualModel

changed(self: samson.DataModel.Document.Label) → NoneΒΆ

Emits the LabelChanged event

clone(self: samson.DataModel.Document.Label) → samson.DataModel.Document.LabelΒΆ

Returns a copy of the node and its descendants

countNodes(self: samson.DataModel.DataGraph.Node, selectionString: str='*', visitString: str='*', includeDependencies: bool=False) → intΒΆ
Count nodes into nodeIndexer, based on a selectionPredicate and a visitPredicate, with our without dependencies).
For selectionString and visitString use Node Specification Language (SAMSON API: Node Specification Language
create(self: samson.DataModel.DataGraph.Node) → NoneΒΆ

Creates the node

display(self: samson.DataModel.Document.Label) → NoneΒΆ

Displays the label

displayForSelection(self: samson.DataModel.Document.Label) → NoneΒΆ

Displays the label for selection purposes

displayForShadow(self: samson.DataModel.Document.Label) → NoneΒΆ

Displays the label for shadow purposes

erase(self: samson.DataModel.DataGraph.Node) → NoneΒΆ

Erases the node

getFlags(self: samson.DataModel.DataGraph.Node) → intΒΆ

Returns the flags

getInheritedFlags(self: samson.DataModel.DataGraph.Node) → intΒΆ

Returns the inherited flags

getLayer(self: samson.DataModel.Document.Label) → samson.DataModel.Document.LayerΒΆ

Returns the layer

getMaterial(self: samson.DataModel.DataGraph.Node) → SBDDataGraphNodeMaterialΒΆ

Returns the material of the node

getMaterialOwner(self: samson.DataModel.DataGraph.Node) → samson.DataModel.DataGraph.NodeΒΆ

Returns the node whose material is inherited

getMemoryFootprint(self: samson.Core.Reference.SBCReferenceTarget) → intΒΆ

Returns the memory footprint

getNextLabel(self: samson.DataModel.Document.Label) → samson.DataModel.Document.LabelΒΆ

Returns the next Label

getNode(self: int) → samson.DataModel.DataGraph.NodeΒΆ

Returns the unique node corresponding to the node index nodeIndex

getNodes(self: samson.DataModel.DataGraph.Node, selectionString: str='*', visitString: str='*', includeDependencies: bool=False) → SBDDataGraphNodeIndexerΒΆ
Returns nodes (in a node indexer), based on a selectionString and a visitString, with our without dependencies).
For selectionString and visitString use Node Specification Language (SAMSON API: Node Specification Language
getParent(self: samson.DataModel.Document.Label) → samson.DataModel.DataGraph.NodeΒΆ

Returns the parent node

getPosition(self: samson.DataModel.Document.Label) → SBDTypePhysicalVector3Wrapper<SBDQuantityWrapper<SBDQuantityUnitSystemSI> >ΒΆ

Returns the position of the label

getPreviousLabel(self: samson.DataModel.Document.Label) → samson.DataModel.Document.LabelΒΆ

Returns the previous Label

getRoot(self: samson.DataModel.DataGraph.Node) → samson.DataModel.DataGraph.NodeΒΆ

Returns the root of the hierarchy the node belongs to

hasOneOf(self: samson.DataModel.DataGraph.Node, nodeIndexer: SBDDataGraphNodeIndexer) → boolΒΆ

Returns true if and only if this node is one of the nodes of the nodeIndexer, or is the ancestor of one of them

isIn(*args, **kwargs)ΒΆ

Overloaded function.

  1. isIn(self: samson.DataModel.DataGraph.Node, node: samson.DataModel.DataGraph.Node) -> bool

Returns true if and only if this node is node, or descends from it

  1. isIn(self: samson.DataModel.DataGraph.Node, nodeIndexer: SBDDataGraphNodeIndexer) -> bool

Returns true if and only if this node is one of the nodes of the nodeIndexer, or descends from one of them

isOneOf(self: samson.DataModel.DataGraph.Node, nodeIndexer: SBDDataGraphNodeIndexer) → boolΒΆ

Returns true if and only if this node is one of the nodes of the nodeIndexer

removeChild(self: samson.DataModel.DataGraph.Node, node: samson.DataModel.DataGraph.Node) → boolΒΆ

Removes a child from the node

removeMaterial(self: samson.DataModel.DataGraph.Node) → boolΒΆ

Removes material from the node

setColor(self: samson.DataModel.DataGraph.Node, color: SBDColor, applyToChildren: bool=False) → NoneΒΆ

Sets the color for the node (removes an existing material from the node and adds a given material based on a given color)

Args:

color (Color): material to set

applyToChildren (boolean): if set to True goes through child nodes (default value: False)

setMaterial(self: samson.DataModel.DataGraph.Node, material: SBDDataGraphNodeMaterial, applyToChildren: bool=False) → NoneΒΆ

Sets the material for the node (removes an existing material from the node and adds a given material)

Args:

material (Material): material to set

applyToChildren (boolean): if set to True goes through child nodes (default value: False)

sprint(self: samson.DataModel.Document.Label, offset: int=0) → NoneΒΆ

Prints some debugging information

updateText(self: samson.DataModel.Document.Label) → NoneΒΆ

update text of the label

ArticulatedBody = NodeType.DynamicalModelNodeArticulatedBodyΒΆ
ArticulatedBodySystem = NodeType.DynamicalModelArticulatedBodySystemΒΆ
Atom = NodeType.AtomΒΆ
Backbone = NodeType.StructuralModelNodeBackboneΒΆ
Bond = NodeType.StructuralModelNodeBondΒΆ
Camera = NodeType.DocumentCameraΒΆ
Chain = NodeType.StructuralModelNodeChainΒΆ
Conformation = NodeType.StructuralModelConformationΒΆ
Controller = NodeType.ControllerΒΆ
ControllerNode = NodeType.ControllerNodeΒΆ
DataGraphNodeGroup = NodeType.DataGraphNodeGroupΒΆ
Document = NodeType.DocumentΒΆ
DocumentCamera = NodeType.DocumentCameraΒΆ
DocumentLabel = NodeType.DocumentLabelΒΆ
DocumentLayer = NodeType.DocumentLayerΒΆ
DocumentManager = NodeType.DocumentManagerΒΆ
DynamicalGroup = NodeType.DynamicalModelNodeGroupΒΆ
DynamicalModel = NodeType.DynamicalModelΒΆ
DynamicalModelArticulatedBodySystem = NodeType.DynamicalModelArticulatedBodySystemΒΆ
DynamicalModelNode = NodeType.DynamicalModelNodeΒΆ
DynamicalModelNodeArticulatedBody = NodeType.DynamicalModelNodeArticulatedBodyΒΆ
DynamicalModelNodeGroup = NodeType.DynamicalModelNodeGroupΒΆ
DynamicalModelNodeParticle = NodeType.DynamicalModelNodeParticleΒΆ
DynamicalModelNodeRigidBody = NodeType.DynamicalModelNodeRigidBodyΒΆ
DynamicalModelNodeRoot = NodeType.DynamicalModelNodeRootΒΆ
DynamicalModelParticleSystem = NodeType.DynamicalModelParticleSystemΒΆ
DynamicalModelRigidBodySystem = NodeType.DynamicalModelRigidBodySystemΒΆ
DynamicalNode = NodeType.DynamicalModelNodeΒΆ
DynamicalParticle = NodeType.DynamicalModelNodeParticleΒΆ
DynamicalRoot = NodeType.DynamicalModelNodeRootΒΆ
InteractionModel = NodeType.InteractionModelΒΆ
InteractionModelArticulatedBodySystem = NodeType.InteractionModelArticulatedBodySystemΒΆ
InteractionModelParticleSystem = NodeType.InteractionModelParticleSystemΒΆ
InteractionModelRigidBodySystem = NodeType.InteractionModelRigidBodySystemΒΆ
Label = NodeType.DocumentLabelΒΆ
Layer = NodeType.DocumentLayerΒΆ
Molecule = NodeType.StructuralModelNodeMoleculeΒΆ
NodeGroup = NodeType.DataGraphNodeGroupΒΆ
ParticleSystem = NodeType.DynamicalModelParticleSystemΒΆ
Path = NodeType.StructuralModelPathΒΆ
PropertyModel = NodeType.PropertyModelΒΆ
PropertyModelFunction = NodeType.PropertyModelFunctionΒΆ
Protein = NodeType.StructuralModelNodeProteinΒΆ
PseudoAtom = NodeType.StructuralModelNodePseudoAtomΒΆ
Residue = NodeType.StructuralModelNodeResidueΒΆ
RigidBody = NodeType.DynamicalModelNodeRigidBodyΒΆ
RigidBodySystem = NodeType.DynamicalModelRigidBodySystemΒΆ
Root = NodeType.StructuralModelNodeRootΒΆ
Segment = NodeType.StructuralModelNodeSegmentΒΆ
SideChain = NodeType.StructuralModelNodeSideChainΒΆ
Simulator = NodeType.SimulatorΒΆ
SimulatorArticulatedBodySystem = NodeType.SimulatorArticulatedBodySystemΒΆ
SimulatorParticleSystem = NodeType.SimulatorParticleSystemΒΆ
SimulatorRigidBodySystem = NodeType.SimulatorRigidBodySystemΒΆ
StateUpdater = NodeType.StateUpdaterΒΆ
StateUpdaterArticulatedBodySystem = NodeType.StateUpdaterArticulatedBodySystemΒΆ
StateUpdaterParticleSystem = NodeType.StateUpdaterParticleSystemΒΆ
StateUpdaterRigidBodySystem = NodeType.StateUpdaterRigidBodySystemΒΆ
StructuralGroup = NodeType.StructuralModelNodeGroupΒΆ
StructuralModel = NodeType.StructuralModelΒΆ
StructuralModelConformation = NodeType.StructuralModelConformationΒΆ
StructuralModelNode = NodeType.StructuralModelNodeΒΆ
StructuralModelNodeAtom = NodeType.AtomΒΆ
StructuralModelNodeBackbone = NodeType.StructuralModelNodeBackboneΒΆ
StructuralModelNodeBond = NodeType.StructuralModelNodeBondΒΆ
StructuralModelNodeChain = NodeType.StructuralModelNodeChainΒΆ
StructuralModelNodeGroup = NodeType.StructuralModelNodeGroupΒΆ
StructuralModelNodeMolecule = NodeType.StructuralModelNodeMoleculeΒΆ
StructuralModelNodeParticle = NodeType.StructuralModelNodeParticleΒΆ
StructuralModelNodeProtein = NodeType.StructuralModelNodeProteinΒΆ
StructuralModelNodePseudoAtom = NodeType.StructuralModelNodePseudoAtomΒΆ
StructuralModelNodeResidue = NodeType.StructuralModelNodeResidueΒΆ
StructuralModelNodeRoot = NodeType.StructuralModelNodeRootΒΆ
StructuralModelNodeSegment = NodeType.StructuralModelNodeSegmentΒΆ
StructuralModelNodeSideChain = NodeType.StructuralModelNodeSideChainΒΆ
StructuralModelPath = NodeType.StructuralModelPathΒΆ
StructuralParticle = NodeType.StructuralModelNodeParticleΒΆ
Undefined = NodeType.UndefinedΒΆ
VisualModel = NodeType.VisualModelΒΆ
__eq__ΒΆ

Return self==value.

__ge__ΒΆ

Return self>=value.

__gt__ΒΆ

Return self>value.

__le__ΒΆ

Return self<=value.

__lt__ΒΆ

Return self<value.

__ne__ΒΆ

Return self!=value.

drawOnTopΒΆ
drawOutlineΒΆ
highlightingFlagΒΆ
isCreatedΒΆ

Returns true if and only if the node is created

isErasedΒΆ

Returns true if and only if the node is erased

isHighlightedΒΆ

Returns whether the node is highlighted

isSelectedΒΆ

Returns whether the node is selected

isSerializableΒΆ

Returns true when the class is serializable

isVisibleΒΆ

Returns whether the node is visible

maximumDisplayRadiusΒΆ
minimumDisplayRadiusΒΆ
nameΒΆ

the label name

nodeIndexΒΆ

Returns the node index (unique in the whole data graph, but non-persistent)

selectionFlagΒΆ
textΒΆ

the text of the label

typeΒΆ

Returns the type of the data graph node

typeStringΒΆ

Returns a string describing the type of the data graph node

visibilityFlagΒΆ
class samson.DataModel.Document.Layer(*args, **kwargs)ΒΆ

Bases: samson.DataModel.DataGraph.Node

This class describes a document layer.

SAMSON API: SBDDocumentLayer

Overloaded function.

  1. __init__(self: samson.DataModel.Document.Layer) -> None

Constructs a layer

  1. __init__(self: samson.DataModel.Document.Layer, name: str) -> None

Constructs a layer with name

class NodeType(self: samson.DataModel.DataGraph.Node.NodeType, arg0: int) → NoneΒΆ

Bases: pybind11_builtins.pybind11_object

__eq__(*args, **kwargs)ΒΆ

Overloaded function.

  1. __eq__(self: samson.DataModel.DataGraph.Node.NodeType, arg0: samson.DataModel.DataGraph.Node.NodeType) -> bool
  2. __eq__(self: samson.DataModel.DataGraph.Node.NodeType, arg0: int) -> bool
__ne__(*args, **kwargs)ΒΆ

Overloaded function.

  1. __ne__(self: samson.DataModel.DataGraph.Node.NodeType, arg0: samson.DataModel.DataGraph.Node.NodeType) -> bool
  2. __ne__(self: samson.DataModel.DataGraph.Node.NodeType, arg0: int) -> bool
ArticulatedBody = NodeType.DynamicalModelNodeArticulatedBodyΒΆ
ArticulatedBodySystem = NodeType.DynamicalModelArticulatedBodySystemΒΆ
Atom = NodeType.AtomΒΆ
Backbone = NodeType.StructuralModelNodeBackboneΒΆ
Bond = NodeType.StructuralModelNodeBondΒΆ
Camera = NodeType.DocumentCameraΒΆ
Chain = NodeType.StructuralModelNodeChainΒΆ
Conformation = NodeType.StructuralModelConformationΒΆ
Controller = NodeType.ControllerΒΆ
ControllerNode = NodeType.ControllerNodeΒΆ
DataGraphNodeGroup = NodeType.DataGraphNodeGroupΒΆ
Document = NodeType.DocumentΒΆ
DocumentCamera = NodeType.DocumentCameraΒΆ
DocumentLabel = NodeType.DocumentLabelΒΆ
DocumentLayer = NodeType.DocumentLayerΒΆ
DocumentManager = NodeType.DocumentManagerΒΆ
DynamicalGroup = NodeType.DynamicalModelNodeGroupΒΆ
DynamicalModel = NodeType.DynamicalModelΒΆ
DynamicalModelArticulatedBodySystem = NodeType.DynamicalModelArticulatedBodySystemΒΆ
DynamicalModelNode = NodeType.DynamicalModelNodeΒΆ
DynamicalModelNodeArticulatedBody = NodeType.DynamicalModelNodeArticulatedBodyΒΆ
DynamicalModelNodeGroup = NodeType.DynamicalModelNodeGroupΒΆ
DynamicalModelNodeParticle = NodeType.DynamicalModelNodeParticleΒΆ
DynamicalModelNodeRigidBody = NodeType.DynamicalModelNodeRigidBodyΒΆ
DynamicalModelNodeRoot = NodeType.DynamicalModelNodeRootΒΆ
DynamicalModelParticleSystem = NodeType.DynamicalModelParticleSystemΒΆ
DynamicalModelRigidBodySystem = NodeType.DynamicalModelRigidBodySystemΒΆ
DynamicalNode = NodeType.DynamicalModelNodeΒΆ
DynamicalParticle = NodeType.DynamicalModelNodeParticleΒΆ
DynamicalRoot = NodeType.DynamicalModelNodeRootΒΆ
InteractionModel = NodeType.InteractionModelΒΆ
InteractionModelArticulatedBodySystem = NodeType.InteractionModelArticulatedBodySystemΒΆ
InteractionModelParticleSystem = NodeType.InteractionModelParticleSystemΒΆ
InteractionModelRigidBodySystem = NodeType.InteractionModelRigidBodySystemΒΆ
Label = NodeType.DocumentLabelΒΆ
Layer = NodeType.DocumentLayerΒΆ
Molecule = NodeType.StructuralModelNodeMoleculeΒΆ
NodeGroup = NodeType.DataGraphNodeGroupΒΆ
ParticleSystem = NodeType.DynamicalModelParticleSystemΒΆ
Path = NodeType.StructuralModelPathΒΆ
PropertyModel = NodeType.PropertyModelΒΆ
PropertyModelFunction = NodeType.PropertyModelFunctionΒΆ
Protein = NodeType.StructuralModelNodeProteinΒΆ
PseudoAtom = NodeType.StructuralModelNodePseudoAtomΒΆ
Residue = NodeType.StructuralModelNodeResidueΒΆ
RigidBody = NodeType.DynamicalModelNodeRigidBodyΒΆ
RigidBodySystem = NodeType.DynamicalModelRigidBodySystemΒΆ
Root = NodeType.StructuralModelNodeRootΒΆ
Segment = NodeType.StructuralModelNodeSegmentΒΆ
SideChain = NodeType.StructuralModelNodeSideChainΒΆ
Simulator = NodeType.SimulatorΒΆ
SimulatorArticulatedBodySystem = NodeType.SimulatorArticulatedBodySystemΒΆ
SimulatorParticleSystem = NodeType.SimulatorParticleSystemΒΆ
SimulatorRigidBodySystem = NodeType.SimulatorRigidBodySystemΒΆ
StateUpdater = NodeType.StateUpdaterΒΆ
StateUpdaterArticulatedBodySystem = NodeType.StateUpdaterArticulatedBodySystemΒΆ
StateUpdaterParticleSystem = NodeType.StateUpdaterParticleSystemΒΆ
StateUpdaterRigidBodySystem = NodeType.StateUpdaterRigidBodySystemΒΆ
StructuralGroup = NodeType.StructuralModelNodeGroupΒΆ
StructuralModel = NodeType.StructuralModelΒΆ
StructuralModelConformation = NodeType.StructuralModelConformationΒΆ
StructuralModelNode = NodeType.StructuralModelNodeΒΆ
StructuralModelNodeAtom = NodeType.AtomΒΆ
StructuralModelNodeBackbone = NodeType.StructuralModelNodeBackboneΒΆ
StructuralModelNodeBond = NodeType.StructuralModelNodeBondΒΆ
StructuralModelNodeChain = NodeType.StructuralModelNodeChainΒΆ
StructuralModelNodeGroup = NodeType.StructuralModelNodeGroupΒΆ
StructuralModelNodeMolecule = NodeType.StructuralModelNodeMoleculeΒΆ
StructuralModelNodeParticle = NodeType.StructuralModelNodeParticleΒΆ
StructuralModelNodeProtein = NodeType.StructuralModelNodeProteinΒΆ
StructuralModelNodePseudoAtom = NodeType.StructuralModelNodePseudoAtomΒΆ
StructuralModelNodeResidue = NodeType.StructuralModelNodeResidueΒΆ
StructuralModelNodeRoot = NodeType.StructuralModelNodeRootΒΆ
StructuralModelNodeSegment = NodeType.StructuralModelNodeSegmentΒΆ
StructuralModelNodeSideChain = NodeType.StructuralModelNodeSideChainΒΆ
StructuralModelPath = NodeType.StructuralModelPathΒΆ
StructuralParticle = NodeType.StructuralModelNodeParticleΒΆ
Undefined = NodeType.UndefinedΒΆ
VisualModel = NodeType.VisualModelΒΆ
__ge__ΒΆ

Return self>=value.

__gt__ΒΆ

Return self>value.

__le__ΒΆ

Return self<=value.

__lt__ΒΆ

Return self<value.

addChild(self: samson.DataModel.Document.Layer, node: samson.DataModel.DataGraph.Node, nextNode: samson.DataModel.DataGraph.Node=None) → boolΒΆ

Adds a child to the Layer

addMaterial(self: samson.DataModel.DataGraph.Node, material: SBDDataGraphNodeMaterial) → boolΒΆ

Adds material to the node

castToInteractionModelParticleSystem(self: samson.DataModel.DataGraph.Node) → SBMInteractionModelParticleSystemΒΆ

Casts (if possible) from SBDDataGraphNode to SBMInteractionModelParticleSystem

castToLabel(self: samson.DataModel.DataGraph.Node) → SBDDocumentLabelΒΆ

Casts (if possible) from SBDDataGraphNode to SBDDocumentLabel

castToVisualModel(self: samson.DataModel.DataGraph.Node) → SBMVisualModelΒΆ

Casts (if possible) from SBDDataGraphNode to SBMVisualModel

clone(self: samson.DataModel.Document.Layer) → samson.DataModel.Document.LayerΒΆ

Returns a copy of the node and its descendants

countNodes(self: samson.DataModel.DataGraph.Node, selectionString: str='*', visitString: str='*', includeDependencies: bool=False) → intΒΆ
Count nodes into nodeIndexer, based on a selectionPredicate and a visitPredicate, with our without dependencies).
For selectionString and visitString use Node Specification Language (SAMSON API: Node Specification Language
create(self: samson.DataModel.DataGraph.Node) → NoneΒΆ

Creates the node

erase(self: samson.DataModel.DataGraph.Node) → NoneΒΆ

Erases the node

getActiveModel(self: samson.DataModel.Document.Layer) → SBMModelΒΆ

Returns the active model

getControllerList(self: samson.DataModel.Document.Layer) → SBCReferencePointerList<SBDController, SBCReferenceToTarget>ΒΆ

Returns the list of controllers

getDocument(self: samson.DataModel.Document.Layer) → samson.DataModel.Document.DocumentΒΆ

Returns the document

getDynamicalModelList(self: samson.DataModel.Document.Layer) → SBCReferencePointerList<SBMDynamicalModel, SBCReferenceToTarget>ΒΆ

Returns the list of dynamical models

getFlags(self: samson.DataModel.DataGraph.Node) → intΒΆ

Returns the flags

getInheritedFlags(self: samson.DataModel.DataGraph.Node) → intΒΆ

Returns the inherited flags

getInteractionModelList(self: samson.DataModel.Document.Layer) → SBCReferencePointerList<SBMInteractionModel, SBCReferenceToTarget>ΒΆ

Returns the list of interaction models

getLabelList(self: samson.DataModel.Document.Layer) → SBCReferencePointerList<SBDDocumentLabel, SBCReferenceToTarget>ΒΆ

Returns the list of labels

getMaterial(self: samson.DataModel.DataGraph.Node) → SBDDataGraphNodeMaterialΒΆ

Returns the material of the node

getMaterialOwner(self: samson.DataModel.DataGraph.Node) → samson.DataModel.DataGraph.NodeΒΆ

Returns the node whose material is inherited

getMemoryFootprint(self: samson.Core.Reference.SBCReferenceTarget) → intΒΆ

Returns the memory footprint

getModelList(self: samson.DataModel.Document.Layer) → SBCReferencePointerList<SBMModel, SBCReferenceToTarget>ΒΆ

Returns the list of models

getNextLayer(self: samson.DataModel.Document.Layer) → samson.DataModel.Document.LayerΒΆ

Returns the next Layer

getNode(self: int) → samson.DataModel.DataGraph.NodeΒΆ

Returns the unique node corresponding to the node index nodeIndex

getNodes(self: samson.DataModel.Document.Layer, selectionString: str='*', visitString: str='*', includeDependencies: bool=False) → samson.DataModel.DataGraph.NodeIndexerΒΆ
Returns nodes (in a node indexer), based on a selectionString and a visitString, with our without dependencies).
For selectionString and visitString use Node Specification Language (SAMSON API: Node Specification Language
getParent(self: samson.DataModel.Document.Layer) → samson.DataModel.DataGraph.NodeΒΆ

Returns the parent node

getPreviousLayer(self: samson.DataModel.Document.Layer) → samson.DataModel.Document.LayerΒΆ

Returns the previous Layer

getPropertyModelList(self: samson.DataModel.Document.Layer) → SBCReferencePointerList<SBMPropertyModel, SBCReferenceToTarget>ΒΆ

Returns the list of property models

getRoot(self: samson.DataModel.DataGraph.Node) → samson.DataModel.DataGraph.NodeΒΆ

Returns the root of the hierarchy the node belongs to

getSimulatorList(self: samson.DataModel.Document.Layer) → SBCReferencePointerList<SBSSimulator, SBCReferenceToTarget>ΒΆ

Returns the list of simulators

getStructuralModelList(self: samson.DataModel.Document.Layer) → SBCReferencePointerList<SBMStructuralModel, SBCReferenceToTarget>ΒΆ

Returns the list of structural models

getVisualModelList(self: samson.DataModel.Document.Layer) → SBCReferencePointerList<SBMVisualModel, SBCReferenceToTarget>ΒΆ

Returns the list of visual models

hasOneOf(self: samson.DataModel.DataGraph.Node, nodeIndexer: SBDDataGraphNodeIndexer) → boolΒΆ

Returns true if and only if this node is one of the nodes of the nodeIndexer, or is the ancestor of one of them

isIn(*args, **kwargs)ΒΆ

Overloaded function.

  1. isIn(self: samson.DataModel.DataGraph.Node, node: samson.DataModel.DataGraph.Node) -> bool

Returns true if and only if this node is node, or descends from it

  1. isIn(self: samson.DataModel.DataGraph.Node, nodeIndexer: SBDDataGraphNodeIndexer) -> bool

Returns true if and only if this node is one of the nodes of the nodeIndexer, or descends from one of them

isOneOf(self: samson.DataModel.DataGraph.Node, nodeIndexer: SBDDataGraphNodeIndexer) → boolΒΆ

Returns true if and only if this node is one of the nodes of the nodeIndexer

removeChild(self: samson.DataModel.Document.Layer, node: samson.DataModel.DataGraph.Node) → boolΒΆ

Removes a child from the Layer

removeMaterial(self: samson.DataModel.DataGraph.Node) → boolΒΆ

Removes material from the node

setActiveModel(self: samson.DataModel.Document.Layer, model: SBMModel) → NoneΒΆ

Sets the active model

setColor(self: samson.DataModel.DataGraph.Node, color: SBDColor, applyToChildren: bool=False) → NoneΒΆ

Sets the color for the node (removes an existing material from the node and adds a given material based on a given color)

Args:

color (Color): material to set

applyToChildren (boolean): if set to True goes through child nodes (default value: False)

setMaterial(self: samson.DataModel.DataGraph.Node, material: SBDDataGraphNodeMaterial, applyToChildren: bool=False) → NoneΒΆ

Sets the material for the node (removes an existing material from the node and adds a given material)

Args:

material (Material): material to set

applyToChildren (boolean): if set to True goes through child nodes (default value: False)

sprint(self: samson.DataModel.Document.Layer, offset: int=0) → NoneΒΆ

Prints some debugging information

ArticulatedBody = NodeType.DynamicalModelNodeArticulatedBodyΒΆ
ArticulatedBodySystem = NodeType.DynamicalModelArticulatedBodySystemΒΆ
Atom = NodeType.AtomΒΆ
Backbone = NodeType.StructuralModelNodeBackboneΒΆ
Bond = NodeType.StructuralModelNodeBondΒΆ
Camera = NodeType.DocumentCameraΒΆ
Chain = NodeType.StructuralModelNodeChainΒΆ
Conformation = NodeType.StructuralModelConformationΒΆ
Controller = NodeType.ControllerΒΆ
ControllerNode = NodeType.ControllerNodeΒΆ
DataGraphNodeGroup = NodeType.DataGraphNodeGroupΒΆ
Document = NodeType.DocumentΒΆ
DocumentCamera = NodeType.DocumentCameraΒΆ
DocumentLabel = NodeType.DocumentLabelΒΆ
DocumentLayer = NodeType.DocumentLayerΒΆ
DocumentManager = NodeType.DocumentManagerΒΆ
DynamicalGroup = NodeType.DynamicalModelNodeGroupΒΆ
DynamicalModel = NodeType.DynamicalModelΒΆ
DynamicalModelArticulatedBodySystem = NodeType.DynamicalModelArticulatedBodySystemΒΆ
DynamicalModelNode = NodeType.DynamicalModelNodeΒΆ
DynamicalModelNodeArticulatedBody = NodeType.DynamicalModelNodeArticulatedBodyΒΆ
DynamicalModelNodeGroup = NodeType.DynamicalModelNodeGroupΒΆ
DynamicalModelNodeParticle = NodeType.DynamicalModelNodeParticleΒΆ
DynamicalModelNodeRigidBody = NodeType.DynamicalModelNodeRigidBodyΒΆ
DynamicalModelNodeRoot = NodeType.DynamicalModelNodeRootΒΆ
DynamicalModelParticleSystem = NodeType.DynamicalModelParticleSystemΒΆ
DynamicalModelRigidBodySystem = NodeType.DynamicalModelRigidBodySystemΒΆ
DynamicalNode = NodeType.DynamicalModelNodeΒΆ
DynamicalParticle = NodeType.DynamicalModelNodeParticleΒΆ
DynamicalRoot = NodeType.DynamicalModelNodeRootΒΆ
InteractionModel = NodeType.InteractionModelΒΆ
InteractionModelArticulatedBodySystem = NodeType.InteractionModelArticulatedBodySystemΒΆ
InteractionModelParticleSystem = NodeType.InteractionModelParticleSystemΒΆ
InteractionModelRigidBodySystem = NodeType.InteractionModelRigidBodySystemΒΆ
Label = NodeType.DocumentLabelΒΆ
Layer = NodeType.DocumentLayerΒΆ
Molecule = NodeType.StructuralModelNodeMoleculeΒΆ
NodeGroup = NodeType.DataGraphNodeGroupΒΆ
ParticleSystem = NodeType.DynamicalModelParticleSystemΒΆ
Path = NodeType.StructuralModelPathΒΆ
PropertyModel = NodeType.PropertyModelΒΆ
PropertyModelFunction = NodeType.PropertyModelFunctionΒΆ
Protein = NodeType.StructuralModelNodeProteinΒΆ
PseudoAtom = NodeType.StructuralModelNodePseudoAtomΒΆ
Residue = NodeType.StructuralModelNodeResidueΒΆ
RigidBody = NodeType.DynamicalModelNodeRigidBodyΒΆ
RigidBodySystem = NodeType.DynamicalModelRigidBodySystemΒΆ
Root = NodeType.StructuralModelNodeRootΒΆ
Segment = NodeType.StructuralModelNodeSegmentΒΆ
SideChain = NodeType.StructuralModelNodeSideChainΒΆ
Simulator = NodeType.SimulatorΒΆ
SimulatorArticulatedBodySystem = NodeType.SimulatorArticulatedBodySystemΒΆ
SimulatorParticleSystem = NodeType.SimulatorParticleSystemΒΆ
SimulatorRigidBodySystem = NodeType.SimulatorRigidBodySystemΒΆ
StateUpdater = NodeType.StateUpdaterΒΆ
StateUpdaterArticulatedBodySystem = NodeType.StateUpdaterArticulatedBodySystemΒΆ
StateUpdaterParticleSystem = NodeType.StateUpdaterParticleSystemΒΆ
StateUpdaterRigidBodySystem = NodeType.StateUpdaterRigidBodySystemΒΆ
StructuralGroup = NodeType.StructuralModelNodeGroupΒΆ
StructuralModel = NodeType.StructuralModelΒΆ
StructuralModelConformation = NodeType.StructuralModelConformationΒΆ
StructuralModelNode = NodeType.StructuralModelNodeΒΆ
StructuralModelNodeAtom = NodeType.AtomΒΆ
StructuralModelNodeBackbone = NodeType.StructuralModelNodeBackboneΒΆ
StructuralModelNodeBond = NodeType.StructuralModelNodeBondΒΆ
StructuralModelNodeChain = NodeType.StructuralModelNodeChainΒΆ
StructuralModelNodeGroup = NodeType.StructuralModelNodeGroupΒΆ
StructuralModelNodeMolecule = NodeType.StructuralModelNodeMoleculeΒΆ
StructuralModelNodeParticle = NodeType.StructuralModelNodeParticleΒΆ
StructuralModelNodeProtein = NodeType.StructuralModelNodeProteinΒΆ
StructuralModelNodePseudoAtom = NodeType.StructuralModelNodePseudoAtomΒΆ
StructuralModelNodeResidue = NodeType.StructuralModelNodeResidueΒΆ
StructuralModelNodeRoot = NodeType.StructuralModelNodeRootΒΆ
StructuralModelNodeSegment = NodeType.StructuralModelNodeSegmentΒΆ
StructuralModelNodeSideChain = NodeType.StructuralModelNodeSideChainΒΆ
StructuralModelPath = NodeType.StructuralModelPathΒΆ
StructuralParticle = NodeType.StructuralModelNodeParticleΒΆ
Undefined = NodeType.UndefinedΒΆ
VisualModel = NodeType.VisualModelΒΆ
__eq__ΒΆ

Return self==value.

__ge__ΒΆ

Return self>=value.

__gt__ΒΆ

Return self>value.

__le__ΒΆ

Return self<=value.

__lt__ΒΆ

Return self<value.

__ne__ΒΆ

Return self!=value.

highlightingFlagΒΆ
isCreatedΒΆ

Returns true if and only if the node is created

isErasedΒΆ

Returns true if and only if the node is erased

isHighlightedΒΆ

Returns whether the node is highlighted

isSelectedΒΆ

Returns whether the node is selected

isSerializableΒΆ

Returns true when the class is serializable

isVisibleΒΆ

Returns whether the node is visible

nameΒΆ

the layer name

nodeIndexΒΆ

Returns the node index (unique in the whole data graph, but non-persistent)

selectionFlagΒΆ
typeΒΆ

Returns the type of the data graph node

typeStringΒΆ

Returns a string describing the type of the data graph node

visibilityFlagΒΆ