/** * Clears all {@link RawInputListener}s. * * @see InputManager#addRawInputListener(com.jme3.input.RawInputListener) */ public void clearRawInputListeners() { rawListeners.clear(); }
/** * Removes all attached scenes. * * @see #attachScene(com.jme3.scene.Spatial) */ public void clearScenes() { sceneList.clear(); }
/** * Removes all {@link SceneProcessor scene processors} from this * ViewPort. * * @see SceneProcessor */ public void clearProcessors() { for (SceneProcessor proc : processors) { proc.cleanup(); } processors.clear(); }
@Override protected void controlUpdate(float tpf) { if (!enabled) { return; } // gathering geometries in the sub graph. // This must be done in the update phase as the gathering might add a matparam override targets.clear(); this.spatial.depthFirstTraversal(targetLocator); }
/** * * Removes all the filters from this processor */ public void removeAllFilters() { filters.clear(); updateLastFilterIndex(); }
public void setCameras(final List<Camera> cameras) { this.cameras.clear(); this.cameras.addAll(cameras); }
public void setCamera(final Camera camera) { this.cameras.clear(); this.cameras.add(camera); }
/** * Remove all local material parameter overrides. * * @see #addMatParamOverride(com.jme3.material.MatParamOverride) */ public void clearMatParamOverrides() { if (!localOverrides.isEmpty()) { setMatParamOverrideRefresh(); } localOverrides.clear(); }
/** * Update the lists of animation targets. * * @param spatial the controlled spatial */ private void updateTargetsAndMaterials(Spatial spatial) { targets.clear(); if (spatial instanceof Node) { findTargets((Node) spatial); } else if (spatial instanceof Geometry) { findTargets((Geometry) spatial); } } }
/** * Update the lists of animation targets. * * @param spatial the controlled spatial */ private void updateTargetsAndMaterials(Spatial spatial) { targets.clear(); if (spatial instanceof Node) { findTargets((Node) spatial); } else if (spatial instanceof Geometry) { findTargets((Geometry) spatial); } } }
private SafeArrayList<Spatial> getUpdateList() { if( updateListValid ) { return updateList; } if( updateList == null ) { updateList = new SafeArrayList<Spatial>(Spatial.class); } else { updateList.clear(); } // Build the list addUpdateChildren(updateList); updateListValid = true; return updateList; }
protected void updateMatParamOverrides() { refreshFlags &= ~RF_MATPARAM_OVERRIDE; worldOverrides.clear(); if (parent == null) { worldOverrides.addAll(localOverrides); } else { assert (parent.refreshFlags & RF_MATPARAM_OVERRIDE) == 0; worldOverrides.addAll(parent.worldOverrides); worldOverrides.addAll(localOverrides); } }
batch.geometry.removeFromParent(); batches.clear(); batchesByGeom.clear();
lastCameraLocations.clear(); for (int i = 0; i < locations.size(); i++) { lastCameraLocations.add(new Vector3f());
cameraLocations.clear(); for (int i = 0; i < cameras.size(); i++) { cameraLocations.add(new Vector3f());
/** * Clears all {@link RawInputListener}s. * * @see InputManager#addRawInputListener(com.jme3.input.RawInputListener) */ public void clearRawInputListeners() { rawListeners.clear(); }
/** * Removes all attached scenes. * * @see #attachScene(com.jme3.scene.Spatial) */ public void clearScenes() { sceneList.clear(); }
/** * Removes all {@link SceneProcessor scene processors} from this * ViewPort. * * @see SceneProcessor */ public void clearProcessors() { for (SceneProcessor proc : processors) { proc.cleanup(); } processors.clear(); }
/** * * Removes all the filters from this processor */ public void removeAllFilters() { filters.clear(); updateLastFilterIndex(); }
protected void updateMatParamOverrides() { refreshFlags &= ~RF_MATPARAM_OVERRIDE; worldOverrides.clear(); if (parent == null) { worldOverrides.addAll(localOverrides); } else { assert (parent.refreshFlags & RF_MATPARAM_OVERRIDE) == 0; worldOverrides.addAll(parent.worldOverrides); worldOverrides.addAll(localOverrides); } }