コード例 #1
0
void CompiledGraph::erase (scene::Instance* instance)
{
	notifyErase(instance);

	// Notify the graph tree model about the change
	sceneChanged();

	for (ObserverList::iterator i = _sceneObservers.begin(); i != _sceneObservers.end(); ++i) {
		(*i)->onSceneNodeErase(*instance);
	}

	graph_tree_model_erase(_treeModel, *instance);

	m_instances.erase(PathConstReference(instance->path()));
}
コード例 #2
0
ファイル: entitylist.cpp プロジェクト: clbr/netradiant
void EntityList_Destroy()
{
  delete g_EntityList;

  graph_tree_model_erase(scene_graph_get_tree_model(), StaticNullSelectedInstance::instance());
}