void CVRCullVisitor::PreCullVisitor::apply(osg::Node& node) { if(node.getNodeMask() & FIRST_CULL_STATUS) { _setMask = true; } }
void ParentMaskVisitor::apply(osg::Node& nodeIn) { if(nodeIn.getNodeMask() == mask) { out = &nodeIn; return; //no need to continue search. } traverse(nodeIn); }
void CVRCullVisitor::PostCullVisitor::apply(osg::Node& node) { node.setNodeMask(node.getNodeMask() & ~(FIRST_CULL_STATUS)); }