bool GLActorCollection::accept(GLActorConstVisitor &visitor, GLActor::VisitorAcceptRule rule) const
		{
			for (std::vector<GLActor*>::const_iterator it = mActorsList.begin(); it != mActorsList.end(); ++it)
			{
				if ((**it).accept(visitor, rule) && rule == Finish) return true;
			}
			return visitor.visit(this);
		}
示例#2
0
bool InstrumentActor::accept(GLActorConstVisitor &visitor, GLActor::VisitorAcceptRule rule) const
{
    bool ok = m_scene.accept(visitor, rule);
    visitor.visit(this);
    return ok;
}