Web Analytics Made Easy - Statcounter
Skip to content

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;

SAMSON::getActiveDocument()->getNodes(nodeIndexer,
    SBNode::IsType(SBNode::Atom) &&
    SBAtom::HasPartialCharge() &&
    (SBAtom::GetPartialCharge() >= 0.4f));