public class Figure extends QuickEntity
Mesh.
Included in this figure is a mesh, material and a DrawStrategy.| Modifier and Type | Field and Description |
|---|---|
protected DrawStrategy |
drawStrategy
Override the renderEngine supplied drawStrategy
if not null
|
protected Material |
material |
protected Mesh |
mesh |
destroy, engine, name, NAME_UNTITLED_ENTITY, parent| Constructor and Description |
|---|
Figure(Mesh mesh)
Creates an untitled Figure with a mesh only (and empty Material).
|
Figure(Mesh mesh,
Material material)
Creates an untitled Figure with a mesh and a material
|
Figure(String name)
Create an empty Figure
|
Figure(String name,
Mesh mesh)
Create a Figure with a Mesh only (and empty Material).
|
Figure(String name,
Mesh mesh,
Material material)
Create a Figure with a Mesh and Material.
|
| Modifier and Type | Method and Description |
|---|---|
Node |
boxed()
Returns a Node with 1
Entity (this Figure) |
DrawStrategy |
getDrawStrategy()
Override the renderEngine supplied drawStrategy
if not null
|
Material |
getMaterial() |
Mesh |
getMesh() |
int |
getVertexCount()
Returns the vertex count of the underlying mesh
|
void |
render(RenderEngine renderEngine)
Called on render, draw stuff here
|
void |
setDrawStrategy(DrawStrategy drawStrategy)
Override the renderEngine supplied drawStrategy
if not null
|
void |
setMaterial(Material material) |
void |
setMesh(Mesh mesh) |
attached, canEqual, destroy, destroy, equals, getEngine, getName, getParent, getTransform, hashCode, isDestroy, removed, setDestroy, setEngine, setName, setParent, shouldBeDestroyed, toString, updateprotected Mesh mesh
protected Material material
protected DrawStrategy drawStrategy
public Figure(String name)
name - The name of the empty figurepublic Figure(String name, Mesh mesh)
IllegalArgumentException.name - The name of the figuremesh - The meshpublic Figure(String name, Mesh mesh, Material material)
name - The name of the figuremesh - The mesh (not null)material - The materialpublic Figure(Mesh mesh)
mesh - The meshpublic void render(RenderEngine renderEngine)
Entityrender in interface Entityrender in class QuickEntityrenderEngine - The active renderEngine (caller)QuickEntity.render(RenderEngine)public Node boxed()
Entity (this Figure)boxed in interface Entityboxed in class QuickEntitypublic int getVertexCount()
Mesh.getVertexCount()@Generated(value="lombok") public Mesh getMesh()
@Generated(value="lombok") public void setMesh(Mesh mesh)
@Generated(value="lombok") public Material getMaterial()
@Generated(value="lombok") public void setMaterial(Material material)
@Generated(value="lombok") public DrawStrategy getDrawStrategy()
@Generated(value="lombok") public void setDrawStrategy(DrawStrategy drawStrategy)
drawStrategy - the new DrawStrategyCopyright © 2015. All rights reserved.