A C D F G H I M O P R S T U V X

A

acc(Tuple2d, double, Tuple2d) - Static method in class cs567.particles.Utils
sum += scale*v
actionPerformed(ActionEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.TaskSelector
Creates new Task objects to handle specified button action.
addForce(Force) - Method in class cs567.particles.ParticleSystem
Adds a force object (until removed)
advanceTime(double) - Method in class cs567.particles.ParticleSystem
Incomplete/Debugging implementation of Forward-Euler step.
apply_glOrtho(GL) - Method in class cs567.particles.OrthoMap
 
applyForce() - Method in interface cs567.particles.Force
Causes force to be applied to affected particles.
applyForce() - Method in class cs567.particles.SpringForce1Particle
 
applyForce() - Method in class cs567.particles.SpringForce2Particle
 
applyForce() - Method in class cs567.particles.SpringForceBending
 

C

Constants - Interface in cs567.particles
Default constants.
createParticle(Point2d) - Method in class cs567.particles.ParticleSystem
Creates particle and adds it to the particle system.
cs567.particles - package cs567.particles
 

D

DAMPING_MASS - Static variable in interface cs567.particles.Constants
Mass-proportional damping.
dispatchKey(char, KeyEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI
Handles keyboard events, e.g., spacebar toggles simulation/pausing, and escape resets the current Task.
display(GL) - Method in interface cs567.particles.Force
Display any instructive force information, e.g., connecting spring.
display(GL) - Method in class cs567.particles.Particle
Draws circular particle using a display list.
display(GL) - Method in class cs567.particles.ParticleSystem
Displays Particle and Force objects.
display(GL) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.CreateHairTask
 
display(GL) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.CreateSpringTask
Draw spring-in-progress.
display(GL) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.DragParticleTask
 
display(GL) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.MoveParticleTask
 
display(GL) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.PinConstraintTask
 
display(GL) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.Task
Displays any task-specific OpengGL information, e.g., highlights, etc.
display(GLAutoDrawable) - Method in class cs567.particles.ParticleSystemBuilder
Main event loop: OpenGL display + simulation advance.
display(GL) - Method in class cs567.particles.SpringForce1Particle
 
display(GL) - Method in class cs567.particles.SpringForce2Particle
 
display(GL) - Method in class cs567.particles.SpringForceBending
 
displayChanged(GLAutoDrawable, boolean, boolean) - Method in class cs567.particles.ParticleSystemBuilder
GLEventListener implementation
DT - Static variable in class cs567.particles.ParticleSystemBuilder
Default graphics time step size.

F

f - Variable in class cs567.particles.Particle
Force accumulator.
F - Variable in class cs567.particles.ParticleSystem
List of Force objects.
Force - Interface in cs567.particles
Particle system force.
frame - Variable in class cs567.particles.ParticleSystemBuilder
Main window frame.

G

getHighlight() - Method in class cs567.particles.Particle
True if particle should be drawn highlighted.
getNearestParticle(Point2d) - Method in class cs567.particles.ParticleSystem
Helper-function that computes nearest particle to the specified (deformed) position.
getParticleSystem() - Method in interface cs567.particles.Force
Reference to the ParticleSystem this force affects.
getParticleSystem() - Method in class cs567.particles.SpringForce1Particle
 
getParticleSystem() - Method in class cs567.particles.SpringForce2Particle
 
getParticleSystem() - Method in class cs567.particles.SpringForceBending
 
getPoint2d(MouseEvent) - Method in class cs567.particles.OrthoMap
Get 2d coordinates in unit computation cell of e using knowledge of ortho projection.
getPoint2d(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder
Maps mouse event into computational cell using OrthoMap.
gui - Variable in class cs567.particles.ParticleSystemBuilder
Object that handles all GUI and user interactions of building Task objects, and simulation.
guiFrame - Variable in class cs567.particles.ParticleSystemBuilder.BuilderGUI
 

H

hairParticles - Variable in class cs567.particles.ParticleSystemBuilder.BuilderGUI.CreateHairTask
 

I

init(GLAutoDrawable) - Method in class cs567.particles.ParticleSystemBuilder
GLEventListener implementation: Initializes JOGL renderer.
isPinned() - Method in class cs567.particles.Particle
Returns true if currently pinned.

M

m - Variable in class cs567.particles.Particle
Default mass.
main(String[]) - Static method in class cs567.particles.ParticleSystemBuilder
### Runs the ParticleSystemBuilder.
mouseClicked(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI
 
mouseClicked(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.Task
 
mouseDragged(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.CreateHairTask
 
mouseDragged(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.CreateSpringTask
Update cursor location for display
mouseDragged(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.DragParticleTask
 
mouseDragged(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI
 
mouseDragged(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.MoveParticleTask
Update particle.
mouseDragged(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.PinConstraintTask
 
mouseDragged(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.Task
 
mouseEntered(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI
 
mouseEntered(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.Task
 
mouseExited(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI
 
mouseExited(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.Task
 
mouseMoved(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI
 
mouseMoved(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.Task
 
mousePressed(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.CreateHairTask
Create new particle.
mousePressed(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.CreateParticleTask
 
mousePressed(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.CreateSpringTask
Start making a spring from the nearest particle.
mousePressed(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.DragParticleTask
 
mousePressed(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI
 
mousePressed(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.MoveParticleTask
Start moving nearest particle to mouse press.
mousePressed(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.PinConstraintTask
Toggle pin constraint on nearest particle.
mousePressed(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.Task
 
mouseReleased(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.CreateHairTask
 
mouseReleased(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.CreateSpringTask
Find nearest particle, and create a SpringForce2Particle when mouse released, unless nearest particle, p2, is same as p1.
mouseReleased(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.DragParticleTask
 
mouseReleased(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI
 
mouseReleased(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.MoveParticleTask
Invokes reset()
mouseReleased(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.PinConstraintTask
 
mouseReleased(MouseEvent) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.Task
 

O

OrthoMap - Class in cs567.particles
Simple object for setting up orthographic projection in OpenGL, and mapping mouse clicks into the unit computational cell.
OrthoMap(int, int) - Constructor for class cs567.particles.OrthoMap
 

P

P - Variable in class cs567.particles.ParticleSystem
List of Particle objects.
p0 - Variable in class cs567.particles.SpringForceBending
 
p1 - Variable in class cs567.particles.SpringForce1Particle
 
p1 - Variable in class cs567.particles.SpringForce2Particle
 
p1 - Variable in class cs567.particles.SpringForceBending
 
p2 - Variable in class cs567.particles.SpringForce2Particle
 
p2 - Variable in class cs567.particles.SpringForceBending
 
Particle - Class in cs567.particles
Simple particle implementation, with miscellaneous adornments.
Particle(Point2d) - Constructor for class cs567.particles.Particle
Constructs particle with the specified material/undeformed coordinate, p0.
PARTICLE_MASS - Static variable in interface cs567.particles.Constants
Mass of a particle.
PARTICLE_RADIUS - Static variable in class cs567.particles.Particle
Radius of particle's circle graphic.
ParticleSystem - Class in cs567.particles
Maintains dynamic lists of Particle and Force objects, and provides access to their state for numerical integration of dynamics.
ParticleSystem() - Constructor for class cs567.particles.ParticleSystem
Basic constructor.
ParticleSystemBuilder - Class in cs567.particles
CS567: Assignment #1 "Particle Systems" main() entry point class that initializes ParticleSystem, OpenGL rendering, and GUI that manages GUI/mouse events.
ParticleSystemBuilder() - Constructor for class cs567.particles.ParticleSystemBuilder
Main constructor.
ParticleSystemBuilder.BuilderGUI - Class in cs567.particles
Interaction central: Handles windowing/mouse events, and building state.
ParticleSystemBuilder.BuilderGUI() - Constructor for class cs567.particles.ParticleSystemBuilder.BuilderGUI
 
ParticleSystemBuilder.BuilderGUI.CreateHairTask - Class in cs567.particles
Create hair task.
ParticleSystemBuilder.BuilderGUI.CreateHairTask() - Constructor for class cs567.particles.ParticleSystemBuilder.BuilderGUI.CreateHairTask
 
ParticleSystemBuilder.BuilderGUI.CreateParticleTask - Class in cs567.particles
Clicking task that creates particles.
ParticleSystemBuilder.BuilderGUI.CreateParticleTask() - Constructor for class cs567.particles.ParticleSystemBuilder.BuilderGUI.CreateParticleTask
 
ParticleSystemBuilder.BuilderGUI.CreateSpringTask - Class in cs567.particles
Creates inter-particle springs.
ParticleSystemBuilder.BuilderGUI.CreateSpringTask() - Constructor for class cs567.particles.ParticleSystemBuilder.BuilderGUI.CreateSpringTask
 
ParticleSystemBuilder.BuilderGUI.DragParticleTask - Class in cs567.particles
Runtime dragging of nearest particle using a spring force.
ParticleSystemBuilder.BuilderGUI.DragParticleTask() - Constructor for class cs567.particles.ParticleSystemBuilder.BuilderGUI.DragParticleTask
 
ParticleSystemBuilder.BuilderGUI.MoveParticleTask - Class in cs567.particles
Task to move nearest particle.
ParticleSystemBuilder.BuilderGUI.MoveParticleTask() - Constructor for class cs567.particles.ParticleSystemBuilder.BuilderGUI.MoveParticleTask
 
ParticleSystemBuilder.BuilderGUI.PinConstraintTask - Class in cs567.particles
Toggle pin constraints.
ParticleSystemBuilder.BuilderGUI.PinConstraintTask() - Constructor for class cs567.particles.ParticleSystemBuilder.BuilderGUI.PinConstraintTask
 
ParticleSystemBuilder.BuilderGUI.Task - Class in cs567.particles
"Task" command base-class extended to support building/interaction via mouse interface.
ParticleSystemBuilder.BuilderGUI.Task() - Constructor for class cs567.particles.ParticleSystemBuilder.BuilderGUI.Task
 
ParticleSystemBuilder.BuilderGUI.TaskSelector - Class in cs567.particles
ActionListener implementation to manage Task selection using (radio) buttons.
ParticleSystemBuilder.BuilderGUI.TaskSelector() - Constructor for class cs567.particles.ParticleSystemBuilder.BuilderGUI.TaskSelector
 
PS - Variable in class cs567.particles.ParticleSystemBuilder
The single ParticleSystem reference.
PS - Variable in class cs567.particles.SpringForce1Particle
 
PS - Variable in class cs567.particles.SpringForce2Particle
 
PS - Variable in class cs567.particles.SpringForceBending
 

R

removeForce(Force) - Method in class cs567.particles.ParticleSystem
Useful for removing temporary forces, such as user-interaction spring forces.
reset() - Method in class cs567.particles.ParticleSystem
Moves all particles to undeformed/materials positions, and sets all velocities to zero.
reset() - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.CreateHairTask
 
reset() - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.CreateParticleTask
 
reset() - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.CreateSpringTask
Cancel any spring creation.
reset() - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.DragParticleTask
Cancel any particle dragging and forces.
reset() - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.MoveParticleTask
Disable highlight, and nullify moveParticle.
reset() - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.PinConstraintTask
 
reset() - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.Task
Override to specify reset behavior during "escape" key events, etc.
resetToRest() - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI.TaskSelector
Resets ParticleSystem to undeformed/material state, disables the simulation, and removes the active Task.
reshape(GLAutoDrawable, int, int, int, int) - Method in class cs567.particles.ParticleSystemBuilder
GLEventListener implementation
RESTITUTION_COEFF - Static variable in interface cs567.particles.Constants
Restitution coefficient on [0,1].

S

setHighlight(boolean) - Method in class cs567.particles.Particle
Specifies whether particle should be drawn highlighted.
setPin(boolean) - Method in class cs567.particles.Particle
Specifies whether or not this particle is fixed in space via a pin constraint.
simulate - Variable in class cs567.particles.ParticleSystemBuilder.BuilderGUI
 
simulateAndDisplayScene(GL) - Method in class cs567.particles.ParticleSystemBuilder.BuilderGUI
Simulate then display particle system and any builder adornments.
SpringForce1Particle - Class in cs567.particles
Spring force between one particle and a proxy point.
SpringForce1Particle(Particle, Point2d, ParticleSystem) - Constructor for class cs567.particles.SpringForce1Particle
 
SpringForce2Particle - Class in cs567.particles
Spring force between two particles.
SpringForce2Particle(Particle, Particle, ParticleSystem) - Constructor for class cs567.particles.SpringForce2Particle
 
SpringForceBending - Class in cs567.particles
Bending spring force between three particles.
SpringForceBending(Particle, Particle, Particle, ParticleSystem) - Constructor for class cs567.particles.SpringForceBending
Constructs a bending force affecting the angle implied by the three-particle chain, p0-p1-p2.
start() - Method in class cs567.particles.ParticleSystemBuilder
Builds and shows windows/GUI, and starts simulator.
STIFFNESS_BEND - Static variable in interface cs567.particles.Constants
Spring bending stiffness.
STIFFNESS_STRETCH - Static variable in interface cs567.particles.Constants
Spring stretching stiffness.

T

task - Variable in class cs567.particles.ParticleSystemBuilder.BuilderGUI
Current build task (or null)
taskSelector - Variable in class cs567.particles.ParticleSystemBuilder.BuilderGUI
 
time - Variable in class cs567.particles.ParticleSystem
Current simulation time.

U

updatePoint(Point2d) - Method in class cs567.particles.SpringForce1Particle
 
Utils - Class in cs567.particles
Catch-all utilities (feel free to add on).
Utils() - Constructor for class cs567.particles.Utils
 

V

v - Variable in class cs567.particles.Particle
Velocity.

X

x - Variable in class cs567.particles.Particle
Deformed Position.
x0 - Variable in class cs567.particles.Particle
Undeformed/material Position.
x2 - Variable in class cs567.particles.SpringForce1Particle
 

A C D F G H I M O P R S T U V X