/** * Retrieves the current material object. * @return the material object * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph */ public Material getMaterial() { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_MATERIAL_READ)) throw new CapabilityNotSetException(J3dI18N.getString("Appearance1")); return ((AppearanceRetained)this.retained).getMaterial(); }
nc = rt.getMaterial(); if ((nc != null) && nc.getDuplicateOnCloneTree()) return true;
rt.setMaterial((Material) getNodeComponent(app.getMaterial(), forceDuplicate, hashtable));