void PaintLocalization::updateWithParticles(PF::ParticleSet particles) { lastParticles = particles; buildBitmap(); }
void ofxFlashXFLBuilder :: buildElements () { int numOfElements = 0; TiXmlElement* child = ( storedHandle.FirstChildElement() ).ToElement(); for( numOfElements = 0; child; child = child->NextSiblingElement(), ++numOfElements ) {} for( int i=0; i<numOfElements; i++ ) { TiXmlElement* child = ( storedHandle.ChildElement( i ) ).ToElement(); string elementTag = child->Value(); if( elementTag == "DOMGroup" ) { pushTagAt( i ); pushTag( "members", 0 ); buildElements(); popTag(); popTag(); } else if( elementTag == "DOMBitmapInstance" ) { DOMBitmapInstance dom; dom.libraryItemName = child->Attribute( "libraryItemName" ); dom.name = child->Attribute( "name" ); dom.referenceID = ""; domBitmapInstance = dom; pushTagAt( i ); buildBitmap(); popTag(); } else if( elementTag == "DOMSymbolInstance" ) { DOMSymbolInstance dom; dom.libraryItemName = child->Attribute( "libraryItemName" ); dom.name = child->Attribute( "name" ); dom.centerPoint3DX = 0.0; dom.centerPoint3DY = 0.0; domSymbolInstance = dom; pushTagAt( i ); buildMovieClip(); popTag(); } else if( elementTag == "DOMRectangleObject" ) { DOMRectangleObject dom; child->QueryFloatAttribute( "x", &dom.x ); child->QueryFloatAttribute( "y", &dom.y ); child->QueryFloatAttribute( "objectWidth", &dom.objectWidth ); child->QueryFloatAttribute( "objectHeight", &dom.objectHeight ); domRectangleObject = dom; pushTagAt( i ); buildRectangleShape(); popTag(); } else if( elementTag == "DOMOvalObject" ) { DOMOvalObject dom; child->QueryFloatAttribute( "x", &dom.x ); child->QueryFloatAttribute( "y", &dom.y ); child->QueryFloatAttribute( "objectWidth", &dom.objectWidth ); child->QueryFloatAttribute( "objectHeight", &dom.objectHeight ); child->QueryFloatAttribute( "endAngle", &dom.endAngle ); domOvalObject = dom; pushTagAt( i ); buildOvalShape(); popTag(); } else if( elementTag == "DOMShape" ) { continue; // NOT SUPPORTED AT THE MOMENT. } else if( elementTag == "DOMStaticText" ) { continue; // NOT SUPPORTED AT THE MOMENT. } else if( elementTag == "DOMDynamicText" ) { continue; // NOT SUPPORTED AT THE MOMENT. } else if( elementTag == "DOMInputText" ) { continue; // NOT SUPPORTED AT THE MOMENT. } } }