org.gwoptics.graphics
Class Renderable

java.lang.Object
  extended by org.gwoptics.graphics.Renderable
All Implemented Interfaces:
IRenderable
Direct Known Subclasses:
Axis2D, Axis3D, Graph2D, Logo, SquareGridMesh, SurfaceGraph3D, SurfaceTrace3D

public abstract class Renderable
extends java.lang.Object
implements IRenderable

An abstract class that can be inherited to provide some common functionality that all rendered objects have. Such as a reference to its parent object its position, and a draw function that renders the object.

Author:
Daniel Brown

Field Summary
 processing.core.PVector position
           
 
Constructor Summary
Renderable(processing.core.PApplet parent)
           
 
Method Summary
abstract  void draw()
           
 void setParent(processing.core.PApplet parent)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

position

public processing.core.PVector position
Constructor Detail

Renderable

public Renderable(processing.core.PApplet parent)
Method Detail

setParent

public void setParent(processing.core.PApplet parent)
Specified by:
setParent in interface IRenderable

draw

public abstract void draw()
Specified by:
draw in interface IRenderable


processing library gwoptics by Daniel Brown and Andreas Freise. (c) 2009 onwards