Loading...
Searching...
No Matches
Functors

SAMSON has a mechanism for SBCFunctor functors, which are used to perform e.g. selection operators and visit operations.

See also
Getting nodes

Selection

Selection functors are predicates that may be combined:

// find all atoms which have a partial charge larger than 0.4f
SBNodeIndexer nodeIndexer;
SBAtom::HasPartialCharge() &&
(SBAtom::GetPartialCharge() >= 0.4f));
static SBDDocument * getActiveDocument()
Returns a pointer to SAMSON's active document.
Definition: SAMSON.cpp:738
This node predicate compares the node type with a given type.
Definition: SBDDataGraphNode.hpp:512
@ Atom
Atom.
Definition: SBDDataGraphNode.hpp:67
This class describes a node indexer.
Definition: SBDDataGraphNodeIndexer.hpp:21
virtual void getNodes(SBNodeIndexer &nodeIndexer, SBNode::Type nodeType, bool selectedNodesOnly=false, const SBNodePredicate &visitPredicate=SBDDataGraphNode::All(), bool includeDependencies=false) const override
Collects nodes into nodeIndexer, based on a nodeType, a selection status and a visitPredicate,...
Definition: SBDDocumentFolder.cpp:804

Visitors