java.lang.Object
org.praxislive.video.pgl.code.userapi.PShape

public class PShape extends Object
  • Constructor Details

    • PShape

      protected PShape(processing.core.PShape shape)
  • Method Details

    • find

      public <T> Optional<T> find(Class<T> type)
    • disableStyle

      public PShape disableStyle()
    • enableStyle

      public PShape enableStyle()
    • getWidth

      public double getWidth()
    • getHeight

      public double getHeight()
    • getDepth

      public double getDepth()
    • is2D

      public boolean is2D()
    • is3D

      public boolean is3D()
    • set3D

      public void set3D(boolean val)
    • textureMode

      public PShape textureMode(Constants.TextureMode mode)
    • texture

      public PShape texture(PImage tex)
    • noTexture

      public PShape noTexture()
    • beginContour

      public PShape beginContour()
    • endContour

      public PShape endContour()
    • vertex

      public PShape vertex(double x, double y)
    • vertex

      public PShape vertex(double x, double y, double u, double v)
    • vertex

      public PShape vertex(double x, double y, double z)
    • vertex

      public PShape vertex(double x, double y, double z, double u, double v)
    • normal

      public PShape normal(double nx, double ny, double nz)
    • attribPosition

      public PShape attribPosition(String name, double x, double y, double z)
    • attribNormal

      public PShape attribNormal(String name, double nx, double ny, double nz)
    • attrib

      public PShape attrib(String name, double... values)
    • attrib

      public PShape attrib(String name, int... values)
    • attrib

      public PShape attrib(String name, boolean... values)
    • beginShape

      public PShape beginShape()
    • beginShape

      public PShape beginShape(Constants.ShapeMode kind)
    • endShape

      public void endShape()
    • endShape

      public void endShape(Constants.ShapeEndMode mode)
    • strokeWeight

      public PShape strokeWeight(double weight)
    • noFill

      public PShape noFill()
    • fill

      public PShape fill(double gray)
    • fill

      public PShape fill(double gray, double alpha)
    • fill

      public PShape fill(double x, double y, double z)
    • fill

      public PShape fill(double x, double y, double z, double a)
    • noStroke

      public PShape noStroke()
    • stroke

      public PShape stroke(double gray)
    • stroke

      public PShape stroke(double gray, double alpha)
    • stroke

      public PShape stroke(double x, double y, double z)
    • stroke

      public PShape stroke(double x, double y, double z, double alpha)
    • noTint

      public PShape noTint()
    • tint

      public PShape tint(double gray)
    • tint

      public PShape tint(double gray, double alpha)
    • tint

      public PShape tint(double x, double y, double z)
    • tint

      public PShape tint(double x, double y, double z, double alpha)
    • ambient

      public PShape ambient(double gray)
    • ambient

      public PShape ambient(double x, double y, double z)
    • specular

      public PShape specular(double gray)
    • specular

      public PShape specular(double x, double y, double z)
    • emissive

      public PShape emissive(double gray)
    • emissive

      public PShape emissive(double x, double y, double z)
    • shininess

      public PShape shininess(double shine)
    • bezierVertex

      public PShape bezierVertex(double x2, double y2, double x3, double y3, double x4, double y4)
    • bezierVertex

      public PShape bezierVertex(double x2, double y2, double z2, double x3, double y3, double z3, double x4, double y4, double z4)
    • quadraticVertex

      public PShape quadraticVertex(double cx, double cy, double x3, double y3)
    • quadraticVertex

      public PShape quadraticVertex(double cx, double cy, double cz, double x3, double y3, double z3)
    • curveDetail

      public PShape curveDetail(int detail)
    • curveTightness

      public PShape curveTightness(double tightness)
    • curveVertex

      public PShape curveVertex(double x, double y)
    • curveVertex

      public PShape curveVertex(double x, double y, double z)
    • getChildCount

      public int getChildCount()
    • getChild

      public PShape getChild(int index)
    • getChild

      public PShape getChild(String target)
    • addChild

      public PShape addChild(PShape who)
    • addChild

      public PShape addChild(PShape who, int idx)
    • removeChild

      public PShape removeChild(int idx)
    • getTessellation

      public PShape getTessellation()
    • getVertexCount

      public int getVertexCount()
    • getVertex

      public PVector getVertex(int index)
    • getVertex

      public PVector getVertex(int index, PVector vec)
    • getVertexX

      public double getVertexX(int index)
    • getVertexY

      public double getVertexY(int index)
    • getVertexZ

      public double getVertexZ(int index)
    • setVertex

      public void setVertex(int index, double x, double y)
    • setVertex

      public void setVertex(int index, double x, double y, double z)
    • setVertex

      public void setVertex(int index, PVector vec)
    • getNormal

      public PVector getNormal(int index)
    • getNormal

      public PVector getNormal(int index, PVector vec)
    • getNormalX

      public double getNormalX(int index)
    • getNormalY

      public double getNormalY(int index)
    • getNormalZ

      public double getNormalZ(int index)
    • setNormal

      public void setNormal(int index, double nx, double ny, double nz)
    • getTextureU

      public double getTextureU(int index)
    • getTextureV

      public double getTextureV(int index)
    • setTextureUV

      public void setTextureUV(int index, double u, double v)
    • setTextureMode

      public void setTextureMode(int mode)
    • setTexture

      public void setTexture(PImage tex)
    • getStrokeWeight

      public double getStrokeWeight(int index)
    • setStrokeWeight

      public void setStrokeWeight(double weight)
    • setStrokeWeight

      public void setStrokeWeight(int index, double weight)
    • isClosed

      public boolean isClosed()
    • contains

      public boolean contains(double x, double y)
    • translate

      public PShape translate(double x, double y)
    • translate

      public PShape translate(double x, double y, double z)
    • rotateX

      public PShape rotateX(double angle)
    • rotateY

      public PShape rotateY(double angle)
    • rotateZ

      public PShape rotateZ(double angle)
    • rotate

      public PShape rotate(double angle)
    • rotate

      public PShape rotate(double angle, double v0, double v1, double v2)
    • scale

      public PShape scale(double s)
    • scale

      public PShape scale(double x, double y)
    • scale

      public PShape scale(double x, double y, double z)
    • resetMatrix

      public PShape resetMatrix()