|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectprocessing.core.PShape
public abstract class PShape
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
PShape()
|
|
PShape(int kind)
|
|
| Method Summary | |
|---|---|
void |
addChild(PShape who)
|
void |
applyMatrix(float n00,
float n01,
float n02,
float n10,
float n11,
float n12)
|
void |
applyMatrix(float n00,
float n01,
float n02,
float n03,
float n10,
float n11,
float n12,
float n13,
float n20,
float n21,
float n22,
float n23,
float n30,
float n31,
float n32,
float n33)
|
void |
draw(PGraphics g)
Called by the following (the shape() command adds the g) PShape s = loadShapes("blah.svg"); shape(s); |
void |
draw(PGraphics g,
float x,
float y)
Convenience method to draw at a particular location. |
void |
draw(PGraphics g,
float x,
float y,
float c,
float d)
|
abstract void |
drawImpl(PGraphics g)
Draws the SVG document. |
void |
drawMode(int which)
Set the orientation for drawn objects, similar to PImage.imageMode(). |
PShape |
findChild(java.lang.String name)
Same as getChild(name), except that it first walks all the way up the hierarchy to the farthest parent, so that children can be found anywhere. |
PShape |
getChild(int index)
|
PShape |
getChild(java.lang.String name)
|
int |
getChildCount()
|
float |
getHeight()
|
java.lang.String |
getName()
|
float |
getWidth()
|
boolean |
isVisible()
|
void |
post(PGraphics g)
|
void |
resetMatrix()
|
void |
rotate(float angle)
|
void |
rotate(float angle,
float v0,
float v1,
float v2)
|
void |
rotateX(float angle)
|
void |
rotateY(float angle)
|
void |
rotateZ(float angle)
|
void |
scale(float s)
|
void |
scale(float sx,
float sy)
|
void |
scale(float x,
float y,
float z)
|
void |
setName(java.lang.String name)
|
void |
setVisible(boolean visible)
|
void |
translate(float tx,
float ty)
|
void |
translate(float tx,
float ty,
float tz)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PShape()
public PShape(int kind)
| Method Detail |
|---|
public void setName(java.lang.String name)
public java.lang.String getName()
public boolean isVisible()
public void setVisible(boolean visible)
public float getWidth()
public float getHeight()
public void drawMode(int which)
which - Either CORNER, CORNERS, or CENTER.public void post(PGraphics g)
public void draw(PGraphics g)
public void draw(PGraphics g,
float x,
float y)
public void draw(PGraphics g,
float x,
float y,
float c,
float d)
public abstract void drawImpl(PGraphics g)
public int getChildCount()
public PShape getChild(int index)
public PShape getChild(java.lang.String name)
public PShape findChild(java.lang.String name)
public void addChild(PShape who)
public void translate(float tx,
float ty)
public void translate(float tx,
float ty,
float tz)
public void rotateX(float angle)
public void rotateY(float angle)
public void rotateZ(float angle)
public void rotate(float angle)
public void rotate(float angle,
float v0,
float v1,
float v2)
public void scale(float s)
public void scale(float sx,
float sy)
public void scale(float x,
float y,
float z)
public void resetMatrix()
public void applyMatrix(float n00,
float n01,
float n02,
float n10,
float n11,
float n12)
public void applyMatrix(float n00,
float n01,
float n02,
float n03,
float n10,
float n11,
float n12,
float n13,
float n20,
float n21,
float n22,
float n23,
float n30,
float n31,
float n32,
float n33)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||