coVR1DTransInteractor::~coVR1DTransInteractor() { if (debugLevel>0) fprintf(stderr,"\ncoVR1DTransInteractor::loadDefaultGeostate\n"); pfGroup *parent; // delete scene graph if (sphereGeode) { parent = sphereGeode->getParent(0); if (parent) parent->removeChild(sphereGeode); pfDelete(sphereGeode); } if (sphereScaleDCS) { parent = sphereScaleDCS->getParent(0); if (parent) parent->removeChild(sphereScaleDCS); pfDelete(sphereScaleDCS); } if (sphereTransDCS) { parent = sphereTransDCS->getParent(0); if (parent) parent->removeChild(sphereTransDCS); pfDelete(sphereTransDCS); } if (lineGeode) { parent = lineGeode->getParent(0); if (parent) parent->removeChild(lineGeode); pfDelete(lineGeode); } if (interactorRoot) { parent = interactorRoot->getParent(0); if (parent) parent->removeChild(interactorRoot); pfDelete(interactorRoot); } if (worldDCS) { parent = worldDCS->getParent(0); if (parent) parent->removeChild(worldDCS); pfDelete(worldDCS); } // delete the highights pfDelete(selectedHl); pfDelete(isectedHl); }
void tsgFreeTile(tsgContext *context, int x, int y, pfNode *node) { /* Only information for now is the pfNode */ if (node) pfDelete(node); }