void CPointfile::saxEndElement( message_info_t *ctx, const xmlChar *name ) { if ( strcmp( (char *)name, "polyline" ) == 0 ) { // we are done GenerateDisplayList(); ctx->bGeometry = false; } }
void show(bool show) { if(show && !shown()) { Pointfile_Parse(*this); GenerateDisplayList(); SceneChangeNotify(); } else if(!show && shown()) { glDeleteLists (m_displaylist, 1); m_displaylist = 0; SceneChangeNotify(); } }
void CPointfile::saxEndElement (message_info_t *ctx, const xmlChar *name) { if(string_equal(reinterpret_cast<const char*>(name), "polyline")) { // we are done GenerateDisplayList(); SceneChangeNotify(); } else if(string_equal(reinterpret_cast<const char*>(name), "point")) { Vector3 v; sscanf(m_characters.c_str(), "%f %f %f\n", &v[0], &v[1], &v[2]); PushPoint(v); m_characters.clear(); } }