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 |
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) |
int |
getVertexCount()
Returns the vertex count of the underlying mesh
|
void |
render(RenderEngine renderEngine)
Called on render, draw stuff here
|
attached, getTransform, removed, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, setEngine, setParentgetEngine, setEngineprotected 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()Copyright © 2014. All rights reserved.