Package spacefiller.shapemapper
Class MappedShape
java.lang.Object
spacefiller.shapemapper.MappedShape
- All Implemented Interfaces:
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 Summary
ConstructorDescriptionMappedShape
(String name, processing.core.PApplet parent, processing.core.PShape shape) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
draw
(processing.opengl.PGraphics3D canvas) void
processing.core.PVector
getClosestPointTo
(processing.core.PVector mouse, processing.opengl.PGraphics3D modelCanvas) getMapping
(int index) getName()
int
processing.core.PShape
getShape()
protected void
-
Constructor Details
-
MappedShape
-
-
Method Details
-
setMappingsFromModel
-
createMapping
public void createMapping() -
getMappings
-
getMapping
-
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
-
beginMapping
public void beginMapping() -
endMapping
public void endMapping()
-