int MainCanvas::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QMainWindow::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: tinChanged(); break;
        case 1: hfpChanged(); break;
        case 2: numclustersChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 3: open(); break;
        case 4: save_model(); break;
        case 5: save_scene(); break;
        case 6: closeMesh(); break;
        case 7: properties(); break;
        case 8: runhfp(); break;
        case 9: shuffleColors(); break;
        case 10: increaseNumClusters(); break;
        case 11: decreaseNumClusters(); break;
        case 12: showAllClusters(); break;
        case 13: showOneCluster(); break;
        case 14: about(); break;
        case 15: setSceneGraph(); break;
        case 16: checkNoTIN(); break;
        case 17: checkHFPStatus(); break;
        case 18: updateMatIndexes(); break;
        case 19: setNumClusters((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 20: setNumClusters(); break;
        default: ;
        }
        _id -= 21;
    }
    return _id;
}
Beispiel #2
0
void Node::initializeMember()
{
	mName				= mOrgName				= new String();
	mType				= mOrgType				= new String();
	mExposedField		= mOrgExposedField		= new Vector<Field>();
	mEventInField		= mOrgEventInField		= new Vector<Field>();
	mEventOutField		= mOrgEventOutField		= new Vector<Field>();
	mField				= mOrgField				= new Vector<Field>();
	mPrivateField		= mOrgPrivateField		= new Vector<Field>();

	mPrivateNodeVector	= new Vector<Node>();
	mInitialized		= new bool;

	mChildNodes			= new LinkedList<Node>();

	setName(NULL);
	setParentNode(NULL);
	setSceneGraph(NULL);
#ifdef SUPPORT_JSAI
	setJavaNodeObject(NULL);
#endif
	setValue(NULL);
	setInitialized(false);
	setName(NULL);
	setReferenceNode(NULL);
}
Beispiel #3
0
void Node::remove() 
{
	LinkedListNode<Node>::remove();

	if (isInstanceNode() == false) {
		removeRoutes();
		removeSFNodes();
		removeInstanceNodes();

		if (isBindableNode()) {
			SceneGraph *sceneGraph = getSceneGraph();
			if (sceneGraph)
				sceneGraph->setBindableNode((BindableNode *)this, false);			
		}
	}

	setParentNode(NULL);
	setSceneGraph(NULL);
}