Package spacefiller.shapemapper
Class Mapping
java.lang.Object
spacefiller.shapemapper.Mapping
- All Implemented Interfaces:
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 Summary
ConstructorDescriptionMapping
(processing.core.PApplet parent, processing.opengl.PGraphics3D parentGraphics, processing.core.PShape shape) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
beginMapping
(processing.opengl.PGraphics3D graphics) void
clear()
void
void
drawFaceMask
(processing.core.PGraphics canvas) void
void
endMapping
(processing.opengl.PGraphics3D graphics) void
endMapping
(processing.opengl.PGraphics3D graphics, boolean drawFaceMask) processing.core.PVector
get
(processing.core.PVector key) spacefiller.peasy.CameraState
processing.core.PVector
getClosestMappedPointTo
(processing.core.PVector query) boolean
getFaceMask
(int faceIndex) Set<processing.core.PVector>
boolean
isReady()
void
put
(processing.core.PVector from, processing.core.PVector to) void
remove
(processing.core.PVector from) void
setCameraState
(spacefiller.peasy.CameraState state) void
setFaceMask
(int faceIndex, boolean value) void
setFromOtherMapping
(Mapping otherMapping)
-
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
-
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
-
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()
-