Java Code Examples for processing.core.PShape#getName()
The following examples show how to use
processing.core.PShape#getName() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Skylight_BulletPhysics_Cubes.java From PixelFlow with MIT License | 5 votes |
public void toggleDisplayWireFrame(){ DISPLAY_WIREFRAME = !DISPLAY_WIREFRAME; for (BObject body : physics.rigidBodies) { PShape shp = body.displayShape; String name = shp.getName(); if(name != null && name.contains("[wire]")){ shp.setFill(!DISPLAY_WIREFRAME); shp.setStroke(DISPLAY_WIREFRAME); } } skylight.reset(); }
Example 2
Source File: Skylight_BulletPhysics_CellFracture.java From PixelFlow with MIT License | 5 votes |
public void toggleDisplayWireFrame(){ DISPLAY_WIREFRAME = !DISPLAY_WIREFRAME; for (BObject body : physics.rigidBodies) { PShape shp = body.displayShape; String name = shp.getName(); if(name != null && name.contains("[wire]")){ shp.setFill(!DISPLAY_WIREFRAME); shp.setStroke(DISPLAY_WIREFRAME); } } skylight.reset(); }
Example 3
Source File: Skylight_BulletPhysics_MengerSponge.java From PixelFlow with MIT License | 5 votes |
public void toggleDisplayWireFrame(int mode){ DISPLAY_WIREFRAME = mode; for (BObject body : physics.rigidBodies) { PShape shp = body.displayShape; String name = shp.getName(); if(name != null){ if(mode == 1){ if(name.contains("[wire1]")){ shp.setFill(false); shp.setStroke(true); } else { shp.setFill(true); shp.setStroke(false); } } else if(mode == 2){ if(name.contains("[wire2]")){ shp.setFill(false); shp.setStroke(true); } else { shp.setFill(true); shp.setStroke(false); } } else { shp.setFill(true); shp.setStroke(false); } } } skylight.reset(); }
Example 4
Source File: Skylight_BulletPhysics_Breakable.java From PixelFlow with MIT License | 5 votes |
public void toggleDisplayWireFrame(){ DISPLAY_WIREFRAME = !DISPLAY_WIREFRAME; for (BObject body : physics.rigidBodies) { PShape shp = body.displayShape; String name = shp.getName(); if(name != null && name.contains("[wire]")){ shp.setFill(!DISPLAY_WIREFRAME); shp.setStroke(DISPLAY_WIREFRAME); } } skylight.reset(); }
Example 5
Source File: Skylight_BulletPhysics_Breakable_VideoExport.java From PixelFlow with MIT License | 5 votes |
public void toggleDisplayWireFrame(){ DISPLAY_WIREFRAME = !DISPLAY_WIREFRAME; for (BObject body : physics.rigidBodies) { PShape shp = body.displayShape; String name = shp.getName(); if(name != null && name.contains("[wire]")){ shp.setFill(!DISPLAY_WIREFRAME); shp.setStroke(DISPLAY_WIREFRAME); } } skylight.reset(); }
Example 6
Source File: Skylight_BulletPhysics_Breakable3.java From PixelFlow with MIT License | 5 votes |
public void toggleDisplayWireFrame(){ DISPLAY_WIREFRAME = !DISPLAY_WIREFRAME; for (BObject body : physics.rigidBodies) { PShape shp = body.displayShape; String name = shp.getName(); if(name != null && name.contains("[wire]")){ shp.setFill(!DISPLAY_WIREFRAME); shp.setStroke(DISPLAY_WIREFRAME); } } skylight.reset(); }
Example 7
Source File: Skylight_BulletPhysics_TowerDemolition.java From PixelFlow with MIT License | 5 votes |
public void toggleDisplayWireFrame(){ DISPLAY_WIREFRAME = !DISPLAY_WIREFRAME; for (BObject body : physics.rigidBodies) { PShape shp = body.displayShape; String name = shp.getName(); if(name != null && name.contains("[wire]")){ shp.setFill(!DISPLAY_WIREFRAME); shp.setStroke(DISPLAY_WIREFRAME); } } skylight.reset(); }
Example 8
Source File: Skylight_BulletPhysics_Basic.java From PixelFlow with MIT License | 5 votes |
public void toggleDisplayWireFrame(){ DISPLAY_WIREFRAME = !DISPLAY_WIREFRAME; for (BObject body : physics.rigidBodies) { PShape shp = body.displayShape; String name = shp.getName(); if(name != null && name.contains("[wire]")){ shp.setFill(!DISPLAY_WIREFRAME); shp.setStroke(DISPLAY_WIREFRAME); } } skylight.reset(); }