本文整理匯總了Java中com.jme3.gde.core.scene.SceneRequest.equals方法的典型用法代碼示例。如果您正苦於以下問題:Java SceneRequest.equals方法的具體用法?Java SceneRequest.equals怎麽用?Java SceneRequest.equals使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.jme3.gde.core.scene.SceneRequest
的用法示例。
在下文中一共展示了SceneRequest.equals方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: sceneClose
import com.jme3.gde.core.scene.SceneRequest; //導入方法依賴的package包/類
public boolean sceneClose(SceneRequest request) {
if (request.equals(currentRequest)) {
// if (checkSaved()) {
SceneApplication.getApplication().removeSceneListener(this);
currentRequest = null;
setSceneInfo(null, null, false);
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
cleanupControllers();
}
});
// } else {
// return false;
// }
}
return true;
}
示例2: sceneClose
import com.jme3.gde.core.scene.SceneRequest; //導入方法依賴的package包/類
public boolean sceneClose(SceneRequest request) {
if (request.equals(currentRequest)) {
// if (checkSaved()) {
SceneApplication.getApplication().removeSceneListener(this);
setSceneInfo(null, false);
currentRequest = null;
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
cleanupControllers();
}
});
// }
}
return true;
}
示例3: sceneClosed
import com.jme3.gde.core.scene.SceneRequest; //導入方法依賴的package包/類
@Override
public void sceneClosed(SceneRequest request) {
if (request.equals(currentRequest)) {
SceneApplication.getApplication().removeSceneListener(this);
setSceneInfo(null, false);
currentRequest = null;
cleanupControllers();
}
}
示例4: sceneOpened
import com.jme3.gde.core.scene.SceneRequest; //導入方法依賴的package包/類
@Override
public void sceneOpened(SceneRequest request) {
if (request.equals(currentRequest)) {
Logger.getLogger(NavMeshTopComponent.class.getName()).finer("Terrain sceneRequested " + request.getWindowTitle());
setSceneInfo(currentRequest.getJmeNode(), true);
if (cameraController != null) {
cameraController.disable();
}
if (toolController != null) {
toolController.cleanup();
}
//for (int i=0; i<textureTable.getModel().getRowCount(); i++)
// ((TextureTableModel)textureTable.getModel()).removeRow(i);
toolController = new NavMeshToolController(currentRequest.getToolNode(), currentRequest.getManager().getManager(), request.getJmeNode());
cameraController = new NavMeshCameraController(SceneApplication.getApplication().getCamera());
cameraController.setMaster(this);
cameraController.enable();
cameraController.setToolController(toolController);
cameraController.setEditorController(editorController);
toolController.setEditorController(editorController);
toolController.setCameraController(cameraController);
initUIFields();
//Mesh debugMesh = editorController.createDebugMesh();
//toolController.attachNavMesh(debugMesh);
}
}
示例5: sceneClosed
import com.jme3.gde.core.scene.SceneRequest; //導入方法依賴的package包/類
@Override
public void sceneClosed(SceneRequest request) {
if (request.equals(currentRequest)) {
setActivatedNodes(new org.openide.nodes.Node[]{});
if (listener != null && request.getManager() != null) {
// request.getManager().removeClassPathEventListener(listener);
listener = null;
}
SceneApplication.getApplication().removeSceneListener(this);
SceneApplication.getApplication().getStateManager().detach(cameraPositionTrackerAppState);
currentRequest = null;
setSceneInfo(null, null, false);
cleanupControllers();
}
}
示例6: sceneClosed
import com.jme3.gde.core.scene.SceneRequest; //導入方法依賴的package包/類
@Override
public void sceneClosed(SceneRequest request) {
if (request.equals(currentRequest)) {
setActivatedNodes(new org.openide.nodes.Node[]{});
SceneApplication.getApplication().removeSceneListener(this);
currentRequest = null;
setSceneInfo(null, false);
cleanupControllers();
}
}
示例7: sceneClosed
import com.jme3.gde.core.scene.SceneRequest; //導入方法依賴的package包/類
@Override
public void sceneClosed(SceneRequest request) {
if (request.equals(CinematicEditorManager.getInstance().getCurrentRequest())) {
setActivatedNodes(new org.openide.nodes.Node[]{});
if (listener != null && request.getManager() != null) {
// request.getManager().removeClassPathEventListener(listener);
listener = null;
}
SceneApplication.getApplication().removeSceneListener(this);
CinematicEditorManager.getInstance().setCurrentRequest(null);
cleanupControllers();
}
}
示例8: sceneRequested
import com.jme3.gde.core.scene.SceneRequest; //導入方法依賴的package包/類
public void sceneRequested(SceneRequest request) {
if (request.equals(currentRequest)) {
setSceneInfo(currentRequest.getJmeNode(), editorController.getCurrentFileObject(), true);
if (camController != null) {
camController.disable();
}
if (toolController != null) {
toolController.cleanup();
}
toolController = new SceneComposerToolController(currentRequest.getToolNode(), currentRequest.getManager(), request.getJmeNode());
camController = new ComposerCameraController(SceneApplication.getApplication().getCamera(), request.getJmeNode());
toolController.setEditorController(editorController);
camController.setToolController(toolController);
camController.setMaster(this);
camController.enable();
toolController.setCameraController(camController);
SelectTool tool = new SelectTool();
toolController.showEditTool(tool);
toolController.setShowSelection(true);
editorController.setToolController(toolController);
toolController.refreshNonSpatialMarkers();
editorController.setTerrainLodCamera();
}/* else {
SceneApplication.getApplication().removeSceneListener(this);
currentRequest = null;
setSceneInfo(null, false);
cleanupControllers();
}*/
}
示例9: sceneOpened
import com.jme3.gde.core.scene.SceneRequest; //導入方法依賴的package包/類
@Override
public void sceneOpened(SceneRequest request) {
if (request.equals(sentRequest) && editorController != null) {
currentRequest = request;
//Logger.getLogger(TerrainEditorTopComponent.class.getName()).finer("Terrain sceneRequested " + request.getWindowTitle());
setSceneInfo(currentRequest.getJmeNode(), true);
//editorController.doGetAlphaSaveDataObject(this);
// if the opened scene has terrain, add it to a save node
Terrain terrain = (Terrain) editorController.getTerrain(null);
if (terrain != null) {
// add the terrain root save node
((Node) terrain).setMaterial(terrain.getMaterial(null));
// it appears when loading the actual applied material on the terrain
// does not reflect the material that we get from the terrain.
refreshSelected();
}
if (camController != null) {
camController.disable();
}
if (toolController != null) {
toolController.cleanup();
}
toolController = new TerrainToolController(currentRequest.getToolNode(), currentRequest.getManager(), request.getJmeNode());
camController = new TerrainCameraController(SceneApplication.getApplication().getCamera());
camController.setMaster(this);
camController.enable();
camController.setToolController(toolController);
camController.setEditorController(editorController);
toolController.setEditorController(editorController);
toolController.setCameraController(camController);
toolController.setTopComponent(this);
toolController.setHeightToolRadius((float) radiusSlider.getValue() / (float) radiusSlider.getMaximum());
toolController.setHeightToolHeight((float) heightSlider.getValue() / (float) heightSlider.getMaximum());
//toolController.setToolMesh(meshForm.isSelected()); // future for adding brush shape
editorController.setTerrainLodCamera();
reinitTextureTable(); // update the UI
if (editorController.getTerrain(null) != null) {
//createTerrainButton.setEnabled(false); // only let the user add one terrain
}
fractalBrushPanel.setVisible(false);
}
}
示例10: sceneRequested
import com.jme3.gde.core.scene.SceneRequest; //導入方法依賴的package包/類
public void sceneRequested(SceneRequest request) {
if (request.equals(currentRequest)) {
Logger.getLogger(TerrainEditorTopComponent.class.getName()).finer("Terrain sceneRequested " + request.getWindowTitle());
setSceneInfo(currentRequest.getJmeNode(), true);
//editorController.doGetAlphaSaveDataObject(this);
// if the opened scene has terrain, add it to a save node
Terrain terrain = (Terrain) editorController.getTerrain(null);
if (terrain != null) {
// add the terrain root save node
// ugh! wtf, why is this fixing the material problem?
((Node) terrain).setMaterial(terrain.getMaterial());
// it appears when loading the actual applied material on the terrain
// does not reflect the material that we get from the terrain.
refreshSelected();
}
if (camController != null) {
camController.disable();
}
if (toolController != null) {
toolController.cleanup();
}
//for (int i=0; i<textureTable.getModel().getRowCount(); i++)
// ((TextureTableModel)textureTable.getModel()).removeRow(i);
toolController = new TerrainToolController(currentRequest.getToolNode(), currentRequest.getManager().getManager(), request.getJmeNode());
camController = new TerrainCameraController(SceneApplication.getApplication().getCamera());
camController.setMaster(this);
camController.enable();
camController.setToolController(toolController);
camController.setEditorController(editorController);
toolController.setEditorController(editorController);
toolController.setCameraController(camController);
editorController.setToolController(toolController);
toolController.setHeightToolRadius((float) radiusSlider.getValue() / (float) radiusSlider.getMaximum());
toolController.setHeightToolHeight((float) heightSlider.getValue() / (float) heightSlider.getMaximum());
editorController.setTerrainLodCamera();
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
reinitTextureTable(); // update the UI
if (editorController.getTerrain(null) != null) {
//createTerrainButton.setEnabled(false); // only let the user add one terrain
}
}
});
}
}