Class MappedShape

java.lang.Object
spacefiller.shapemapper.MappedShape
All Implemented Interfaces:
Serializable

public class MappedShape extends Object implements Serializable
A mapped shape represents a shape and all attached mappings. If the user is only mapping with a single projector, then there will only ever be a single attached mapping per MappedShape.
See Also:
  • Constructor Details

    • MappedShape

      public MappedShape(String name, processing.core.PApplet parent, processing.core.PShape shape)
  • Method Details

    • setMappingsFromModel

      protected void setMappingsFromModel(MappedShape from)
    • createMapping

      public void createMapping()
    • getMappings

      public List<Mapping> getMappings()
    • getMapping

      public Mapping getMapping(int index)
    • getNumMappings

      public int getNumMappings()
    • getShape

      public processing.core.PShape getShape()
    • draw

      public void draw(processing.opengl.PGraphics3D canvas)
    • getClosestPointTo

      public processing.core.PVector getClosestPointTo(processing.core.PVector mouse, processing.opengl.PGraphics3D modelCanvas)
    • getName

      public String getName()
    • beginMapping

      public void beginMapping()
    • endMapping

      public void endMapping()