コード例 #1
0
ファイル: Node.cpp プロジェクト: lukfugl/raytracer
Node::~Node() 
{
	deleteChildNodes();

	SceneGraph *sg = getSceneGraph();
	if (sg) {
		if (sg->getSelectedShapeNode() == this)
			sg->setSelectedShapeNode(NULL);
		if (sg->getSelectedNode() == this)
			sg->setSelectedNode(NULL);
	}

	remove();

	if (isInstanceNode() == true)
		setOriginalMembers();

#ifdef SUPPORT_JSAI
	delete mJNode;
#endif

	delete mName;
	delete mType;
	delete mExposedField;
	delete mEventInField;
	delete mEventOutField;
	delete mField;
	delete mPrivateField;
	delete mPrivateNodeVector;
	delete mChildNodes;
	delete mInitialized;
}
コード例 #2
0
ファイル: DLPAggreg.cpp プロジェクト: mrakotom/lpaggreg
DLPAggreg::~DLPAggreg() {
	deleteChildNodes();
	deleteBestCuts();
	deleteQualities();
	deleteQualityList();
	deleteParameters();
	clean();
	if (!hasParent()){

		deleteEval();
	}

}