Class Mapping

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

public class Mapping extends Object implements Serializable
Represents a specific mapping of a shape via a projector. Each shape + projector combination will have a separate Mapping.

The mapping stores a set of points from model space mapped to a set of points in projection space. It is from this mapping that the estimated projection is computed.

See Also:
  • Constructor Details

    • Mapping

      public Mapping(processing.core.PApplet parent, processing.opengl.PGraphics3D parentGraphics, processing.core.PShape shape)
  • Method Details

    • put

      public void put(processing.core.PVector from, processing.core.PVector to)
    • computeTransform

      public void computeTransform()
    • remove

      public void remove(processing.core.PVector from)
    • getMappedPoints

      public Set<processing.core.PVector> getMappedPoints()
    • get

      public processing.core.PVector get(processing.core.PVector key)
    • getClosestMappedPointTo

      public processing.core.PVector getClosestMappedPointTo(processing.core.PVector query)
    • isReady

      public boolean isReady()
    • beginMapping

      public void beginMapping()
    • endMapping

      public void endMapping()
    • beginMapping

      public void beginMapping(processing.opengl.PGraphics3D graphics)
    • endMapping

      public void endMapping(processing.opengl.PGraphics3D graphics)
    • endMapping

      public void endMapping(processing.opengl.PGraphics3D graphics, boolean drawFaceMask)
    • setFromOtherMapping

      public void setFromOtherMapping(Mapping otherMapping)
    • setCameraState

      public void setCameraState(spacefiller.peasy.CameraState state)
    • getCameraState

      public spacefiller.peasy.CameraState getCameraState()
    • setFaceMask

      public void setFaceMask(int faceIndex, boolean value)
    • getFaceMask

      public boolean getFaceMask(int faceIndex)
    • drawFaceMask

      public void drawFaceMask(processing.core.PGraphics canvas)
    • clear

      public void clear()