anar

Class RenderPtObj

java.lang.Object
  extended by anar.RenderP5
      extended by anar.RenderPt
          extended by anar.RenderPtObj
All Implemented Interfaces:
Render

public class RenderPtObj
extends RenderPt

Render a point with the given Obj. Usefull to create 3d Points representations. (like using a cube or a sphere to display points).


Field Summary
static Obj defaultShape
           
 Obj shape
          Shape is the displayed face for each points.
 
Fields inherited from class anar.RenderP5
p5
 
Constructor Summary
RenderPtObj()
           
RenderPtObj(Obj shape)
           
 
Method Summary
 void draw(Pt p)
           
 Obj getShape()
           
 RenderPtObj setShape(Obj shape)
           
 
Methods inherited from class anar.RenderPt
draw
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultShape

public static Obj defaultShape

shape

public Obj shape
Shape is the displayed face for each points.

Constructor Detail

RenderPtObj

public RenderPtObj()

RenderPtObj

public RenderPtObj(Obj shape)
Method Detail

getShape

public Obj getShape()
Returns:
the shape

setShape

public RenderPtObj setShape(Obj shape)
Parameters:
shape - the shape to set

draw

public void draw(Pt p)
Specified by:
draw in class RenderPt