|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.javagl.simplerenderer.DefaultSimpleObject
public class DefaultSimpleObject
Default implementation of a SimpleObject
Constructor Summary | |
---|---|
DefaultSimpleObject(java.nio.IntBuffer indices,
java.nio.FloatBuffer vertices,
java.nio.FloatBuffer normals,
java.nio.FloatBuffer colors,
int stride)
Creates a new simple object |
Method Summary | |
---|---|
java.nio.FloatBuffer |
getColors()
Return the colors of this object |
java.nio.IntBuffer |
getIndices()
Return the indices of this object. |
java.nio.FloatBuffer |
getNormals()
Return the normals of this object |
int |
getStride()
Return the stride of the attributes of this object. |
java.nio.FloatBuffer |
getVertices()
Return the vertices of this object |
boolean |
isOutlineRendering()
Return whether outline rendering is enabled for this object |
void |
setOutlineRendering(boolean outline)
Set the outline rendering flag for this object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultSimpleObject(java.nio.IntBuffer indices, java.nio.FloatBuffer vertices, java.nio.FloatBuffer normals, java.nio.FloatBuffer colors, int stride)
indices
- The indicesvertices
- The verticesnormals
- The normalscolors
- The colorsstride
- The strideMethod Detail |
---|
public java.nio.IntBuffer getIndices()
SimpleObject
getIndices
in interface SimpleObject
public java.nio.FloatBuffer getVertices()
SimpleObject
getVertices
in interface SimpleObject
public java.nio.FloatBuffer getNormals()
SimpleObject
getNormals
in interface SimpleObject
public java.nio.FloatBuffer getColors()
SimpleObject
getColors
in interface SimpleObject
public int getStride()
SimpleObject
getStride
in interface SimpleObject
public void setOutlineRendering(boolean outline)
SimpleObject
setOutlineRendering
in interface SimpleObject
outline
- The outline rendering flagpublic boolean isOutlineRendering()
SimpleObject
isOutlineRendering
in interface SimpleObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |