public interface RenderObjectInterface
| Modifier and Type | Interface and Description | 
|---|---|
| static interface  | RenderObjectInterface.RenderObjectIdentifierUsed for uniquely identifying a RenderObject, and checking
 validity (can be safely shared) | 
| static interface  | RenderObjectInterface.RenderObjectStateStores exposable state of the object, tracking the 
 current attribute set indices and primitive group indices. | 
| static interface  | RenderObjectInterface.RenderObjectVersionKeeps track of versions for detecting changes. | 
| static interface  | RenderObjectInterface.VertexIndexSetClass for storing position/normal/color/texture indices for a vertex | 
| Modifier and Type | Method and Description | 
|---|---|
| int | addColor(byte[] rgba)Adds an indexable color | 
| int | addColor(byte r,
        byte g,
        byte b,
        byte a)Adds an indexable color | 
| int | addColor(float r,
        float g,
        float b,
        float a)Adds an indexable color | 
| int | addColor(int r,
        int g,
        int b,
        int a)Adds an indexable color | 
| void | addLine(float[] v0,
       float[] v1)Creates a line primitive between two new vertices defined
 at the supplied locations. | 
| void | addLine(int v0idx,
       int v1idx)Creates a line primitive between the supplied vertices. | 
| void | addLineLoop(int... vidxs)Creates a set of connected line segments between neighboring vertices
 in the supplied list of vertex indices. | 
| void | addLineLoop(int vStart,
           int vEnd)Creates a set of line primitives between neighboring vertices as specified
 by the supplied vertex range. | 
| void | addLines(int... vidxs)Creates a set of line primitives between pairs of vertices as specified
 by the supplied set of vertex indices. | 
| void | addLines(int vStart,
        int vEnd)Creates a set of line primitives between pairs of vertices as specified
 by the supplied vertex range. | 
| void | addLines(java.lang.Iterable<int[]> lines)Creates a set of line primitives between the supplied pairs of vertices. | 
| void | addLineStrip(int... vidxs)Creates a set of connected line segments between neighboring vertices
 in the supplied list of vertex indices. | 
| void | addLineStrip(int vStart,
            int vEnd)Creates a set of connected line primitives between neighboring vertices 
 as specified by the supplied vertex range. | 
| int | addNormal(float nx,
         float ny,
         float nz)Adds an indexable 3D normal. | 
| void | addPoint(float[] v)Creates a point primitive at the supplied position. | 
| void | addPoint(int vidx)Creates a point primitive at the supplied vertex. | 
| void | addPoints(int... vidxs)Creates point primitives at the supplied vertex locations. | 
| void | addPoints(java.lang.Iterable<float[]> pnts)Creates a set of vertices and point primitives at the supplied positions. | 
| int | addPosition(float px,
           float py,
           float pz)Adds an indexable 3D position | 
| int | addTextureCoord(float x,
               float y)Adds an indexable 2D texture coordinate | 
| void | addTriangle(float[] v0,
           float[] v1,
           float[] v2)Creates a triangle primitive between three new vertices defined at the
 supplied locations. | 
| void | addTriangle(int v0idx,
           int v1idx,
           int v2idx)Creates a triangle primitive between supplied vertices (CCW order). | 
| void | addTriangleFan(int... vidxs)Creates a set of triangle primitives forming a fan using the
 supplied by vertex indices. | 
| void | addTriangleFan(int vStart,
              int vEnd)Creates a set of triangle primitives forming a fan using the
 supplied vertex range. | 
| void | addTriangles(int... vidxs)Creates a set of triangle primitives between triples of vertices as 
 supplied by vertex indices. | 
| void | addTriangles(int vStart,
            int vEnd)Creates a set of triangle primitives between triples of vertices as 
 supplied by the given vertex range. | 
| void | addTriangles(java.lang.Iterable<int[]> tris)Creates a set of triangle primitives between supplied triples of 
 vertices. | 
| void | addTriangleStrip(int... vidxs)Creates a set of triangle primitives forming a strip using the
 supplied by vertex indices. | 
| void | addTriangleStrip(int vStart,
                int vEnd)Creates a set of triangle primitives forming a strip using the
 supplied by vertex range. | 
| int | addVertex()Adds a vertex using the currently active position, normal, color,
 and texture coordinate (if available). | 
| int | addVertex(int pidx)Adds a vertex using the supplied position index. | 
| int | addVertex(int pidx,
         int nidx)Adds a vertex using the supplied position and normal indices. | 
| int | addVertex(int pidx,
         int nidx,
         int cidx,
         int tidx)Adds a vertex using the position, normal, color and texture
 coordinates identified by index number. | 
| void | beginBuild(Renderer.DrawMode mode)Start automatically building primitives for every added vertex,
 using a specified mode. | 
| void | clearPrimitives()Clears all primitive groups, allowing them to be recreated. | 
| int | color(byte[] rgba)Sets the current color to be used in following vertices. | 
| int | color(byte r,
     byte g,
     byte b,
     byte a)Sets the current color to be used in following vertices. | 
| int | color(float r,
     float g,
     float b,
     float a)Sets the current color to be used in following vertices. | 
| void | color(int cidx)Sets the current color to be used in following vertices
 based on color index. | 
| int | color(int r,
     int g,
     int b,
     int a)Sets the current color to be used in following vertices. | 
| void | colorSet(int setIdx)Sets the current active color set to be used/modified. | 
| void | commit()Signal that the object is complete and ready for rendering. | 
| int | createColorSet()Creates a new, alternative set of colors that can be used by vertices. | 
| int | createColorSetFrom(int copyIdx)Creates a new, alternative set of colors that can be used by vertices. | 
| int | createLineGroup()Creates a new group of lines that can be rendered. | 
| int | createNormalSet()Creates a new, alternative set of normals that can be used by vertices. | 
| int | createNormalSetFrom(int copyIdx)Creates a new, alternative set of normals that can be used by vertices. | 
| int | createPointGroup()Creates a new group of points that can be rendered. | 
| int | createPositionSet()Creates a new, alternative set of positions that can be used by vertices. | 
| int | createPositionSetFrom(int copyIdx)Creates a new, alternative set of positions that can be used by vertices. | 
| int | createTextureCoordSet()Creates a new, alternative set of texture coordinates that can be used by vertices. | 
| int | createTextureCoordSetFrom(int copyIdx)Creates a new, alternative set of texture coordinates that can be used by vertices. | 
| int | createTriangleGroup()Creates a new group of triangles that can be rendered. | 
| void | dispose()Signal a destruction of the object. | 
| void | endBuild()End automatically building primitives. | 
| void | ensureColorCapacity(int cap)Hint for ensuring sufficient storage for colors | 
| void | ensureLineCapacity(int cap)Hint for ensuring sufficient storage for lines | 
| void | ensureNormalCapacity(int cap)Hint for ensuring sufficient storage for normals | 
| void | ensurePointCapacity(int cap)Hint for ensuring sufficient storage for points | 
| void | ensurePositionCapacity(int cap)Hint for ensuring sufficient storage for positions | 
| void | ensureTextureCoordCapacity(int cap)Hint for ensuring sufficient storage for texture coordinates | 
| void | ensureTriangleCapacity(int cap)Hint for ensuring sufficient storage for triangles | 
| void | ensureVertexCapacity(int cap)Hint for ensuring sufficient storage for vertices | 
| Renderer.DrawMode | getBuildMode() | 
| byte[] | getColor(int cidx)Retrieves the color at the supplied index. | 
| byte[] | getColor(int cset,
        int cidx)Retrieves the color at the supplied index in a given set. | 
| java.util.List<byte[]> | getColors()Retrieves the full list of Colors. | 
| java.util.List<byte[]> | getColors(int cset)Retrieves the full list of colors in a given set. | 
| int | getColorSetIdx()Returns the index of the currently active color set. | 
| int | getColorsVersion()Returns the latest committed colors version number,
 for use in detecting if changes are present. | 
| RenderObjectInterface.RenderObjectIdentifier | getIdentifier()Returns a special object to be used as a unique identifier for this
 RenderObject. | 
| int[] | getLine(int lgroup,
       int lidx)Retrieves the line at the supplied index in a given group. | 
| int | getLineGroupIdx()Returns the index of the currently active line group. | 
| java.util.List<int[]> | getLines()Returns a list of line primitives, identified by vertex index pairs. | 
| java.util.List<int[]> | getLines(int lgroup)Returns the list of lines (vertex indices) for a given group | 
| int | getLinesVersion()Returns the latest committed lines version number,
 for use in detecting if changes are present. | 
| float[] | getNormal(int nidx)Retrieves the normal at the supplied index. | 
| float[] | getNormal(int nset,
         int nidx)Retrieves the normal at the supplied index in a given set. | 
| java.util.List<float[]> | getNormals()Retrieves the full list of normals. | 
| java.util.List<float[]> | getNormals(int nset)Retrieves the full list of normals in a given set. | 
| int | getNormalSetIdx()Returns the index of the currently active normal set. | 
| int | getNormalsVersion()Returns the latest committed triangles version number,
 for use in detecting if changes are present. | 
| int[] | getPoint(int pgroup,
        int pidx)Retrieves the point at the supplied index in a given group. | 
| int | getPointGroupIdx()Returns the index of the currently active point group. | 
| java.util.List<int[]> | getPoints()Returns a list of vertex indices of all point primitives defined. | 
| java.util.List<int[]> | getPoints(int pgroup)Returns the list of points (vertex indices) for a given group | 
| int | getPointsVersion()Returns the latest committed points version number,
 for use in detecting if changes are present. | 
| float[] | getPosition(int pidx)Retrieves the position at the supplied index. | 
| float[] | getPosition(int pset,
           int pidx)Retrieves the position at the supplied index in a given set. | 
| java.util.List<float[]> | getPositions()Retrieves the full list of positions. | 
| java.util.List<float[]> | getPositions(int pset)Retrieves the full list of positions in a given set. | 
| int | getPositionSetIdx()Returns the index of the currently active position set. | 
| int | getPositionsVersion()Returns the latest committed positions version number,
 for use in detecting if changes are present. | 
| RenderObjectInterface.RenderObjectState | getStateInfo() | 
| float[] | getTextureCoord(int tidx)Retrieves the texture coordinate at the supplied index. | 
| float[] | getTextureCoord(int tset,
               int tidx)Retrieves the texture coordinate at the supplied index in a given set. | 
| java.util.List<float[]> | getTextureCoords()Retrieves the full list of texture coordinates. | 
| java.util.List<float[]> | getTextureCoords(int tset)Retrieves the full list of texture coordinates in a given set. | 
| int | getTextureCoordSetIdx()Returns the index of the currently active texture coordinate set. | 
| int | getTextureCoordsVersion()Returns the latest committed texture coordinates version number,
 for use in detecting if changes are present. | 
| int[] | getTriangle(int tgroup,
           int tidx)Retrieves the triangle at the supplied index in a given group. | 
| int | getTriangleGroupIdx()Returns the index of the currently active triangle group. | 
| java.util.List<int[]> | getTriangles()Returns a list of triangle primitives, identified by vertex index triples. | 
| java.util.List<int[]> | getTriangles(int tgroup)Returns the list of triangles (vertex indices) for a given group | 
| int | getTrianglesVersion()Returns the latest committed triangles version number,
 for use in detecting if changes are present. | 
| int | getVersion()Retrieves the version of the object, for use in detecting
 whether any information has changed since last use. | 
| RenderObjectInterface.RenderObjectVersion | getVersionInfo()Returns an immutable copy of all version information in this RenderObject,
 safe for sharing between threads. | 
| RenderObjectInterface.VertexIndexSet | getVertex(int vidx)Retrieves the index set that identifies a vertex | 
| byte[] | getVertexColor(int vidx)Returns the color of the supplied vertex | 
| float[] | getVertexNormal(int vidx)Returns the normal of the supplied vertex | 
| float[] | getVertexPosition(int vidx)Returns the position of the supplied vertex | 
| float[] | getVertexTextureCoord(int vidx)Returns the texture coordinate of the supplied vertex | 
| java.util.List<RenderObjectInterface.VertexIndexSet> | getVertices()Returns the full set of vertex identifiers | 
| int | getVerticesVersion()Returns the latest committed vertices version number,
 for use in detecting if changes are present. | 
| boolean | hasColors()Whether or not any colors have been defined. | 
| boolean | hasLines()Indicates whether any line primitives have been defined | 
| boolean | hasNormals()Whether or not any normals have been defined. | 
| boolean | hasPoints()Indicates whether any point primitives have been defined. | 
| boolean | hasPositions()Whether or not any positions have been defined. | 
| boolean | hasTextureCoords()Whether or not any texture coordinates have been defined. | 
| boolean | hasTriangles()Indicates whether any triangle primitives have been defined. | 
| void | invalidate()Invalidates the object. | 
| boolean | isColorsDynamic()Returns whether or not colors are considered dynamic. | 
| boolean | isCommitted()Indicates whether or not the object is complete and ready
 for rendering. | 
| boolean | isDynamic()Checks whether this render object has any dynamic components. | 
| boolean | isNormalsDynamic()Returns whether or not normals are considered dynamic. | 
| boolean | isPositionsDynamic()Returns whether or not positions are considered dynamic. | 
| boolean | isStreaming()A streaming object has a short life-span, and cannot be modified once committed. | 
| boolean | isTextureCoordsDynamic()Returns whether or not texture coordinates are considered dynamic. | 
| boolean | isValid()Returns whether or not this RenderObject is valid. | 
| boolean | isVerticesCommitted()Checks whether vertex information has been committed | 
| void | lineGroup(int setIdx)Sets the current active line group for rendering. | 
| int | normal(float nx,
      float ny,
      float nz)Sets the current 3D normal to be used in following
 vertices. | 
| void | normal(int nidx)Sets the current normal to be used in following vertices, 
 based on normal index. | 
| void | normalSet(int setIdx)Sets the current active normal set to be used/modified. | 
| int | numColors()Number of positions defined | 
| int | numColorSets()The number of color sets available. | 
| int | numLineGroups()The number of line groups available. | 
| int | numLines()Number of line primitives defined | 
| int | numLines(int lgroup)Number of line primitives defined in a group. | 
| int | numNormals()Number of normals defined. | 
| int | numNormalSets()The number of normal sets available. | 
| int | numPointGroups()The number of point groups available. | 
| int | numPoints()Number of point primitives defined. | 
| int | numPoints(int pgroup)Number of point primitives defined in a point group. | 
| int | numPositions()Number of positions defined. | 
| int | numPositionSets()The number of position sets available. | 
| int | numTextureCoords()Number of texture coordinates defined. | 
| int | numTextureCoordSets()The number of texture coordinate sets available. | 
| int | numTriangleGroups()The number of triangle groups available. | 
| int | numTriangles()Number of triangle primitives defined. | 
| int | numTriangles(int tgroup)Number of triangle primitives defined in a group. | 
| int | numVertices()Returns the number of vertices, as defined by unique sets of position,
 normal, color, and texture indices. | 
| void | pointGroup(int setIdx)Sets the current active point group for rendering. | 
| int | position(float px,
        float py,
        float pz)Sets the current 3D position to be used in following vertices. | 
| void | position(int pidx)Sets the current position to be used in following vertices, 
 based on position index. | 
| void | positionSet(int setIdx)Sets the current active position set to be used/modified. | 
| void | reinitialize()Clears everything in the RenderObject, allowing it to be
 recreated. | 
| void | setColor(int cidx,
        byte[] rgba)Updates the values of the color with index cidx. | 
| void | setColor(int cidx,
        byte r,
        byte g,
        byte b,
        byte a)Updates the values of the color with index cidx. | 
| void | setColor(int cidx,
        float r,
        float g,
        float b,
        float a)Updates the values of the color with index cidx. | 
| void | setColor(int cidx,
        int r,
        int g,
        int b,
        int a)Updates the values of the color with index cidx. | 
| void | setColorsDynamic(boolean set)Sets whether or not colors should be considered dynamic. | 
| void | setNormal(int nidx,
         float nx,
         float ny,
         float nz)Updates the values of the normal with index nidx. | 
| void | setNormalsDynamic(boolean set)Sets whether or not normals should be considered dynamic. | 
| void | setPosition(int pidx,
           float px,
           float py,
           float pz)Updates the values of the position with index pidx. | 
| void | setPositionsDynamic(boolean set)Sets whether or not positions should be considered dynamic. | 
| void | setStreaming(boolean set)A streaming object has a short life-span, and cannot be modified once committed. | 
| void | setTextureCoord(int tidx,
               float x,
               float y)Updates the values of the texture coordinate with index tidx. | 
| void | setTextureCoordsDynamic(boolean set)Sets whether or not texture coordinates should be considered dynamic. | 
| void | setVertex(int vidx,
         int pidx,
         int nidx,
         int cidx,
         int tidx)Modify the attribute indices of a particular vertex | 
| int | textureCoord(float x,
            float y)Sets the current 2D texture coordinate to be used in following vertices. | 
| void | textureCoord(int tidx)Sets the current texture coordinates to be used in following vertices,
 based on texture coordinate index. | 
| void | textureCoordSet(int setIdx)Sets the current active texture coordinate set to be used/modified. | 
| void | triangleGroup(int setIdx)Sets the current active triangle group for rendering. | 
| int | vertex(float x,
      float y,
      float z)Add a vertex at the supplied position, using the currently active
 normal, color and texture coordinate (if available). | 
RenderObjectInterface.RenderObjectIdentifier getIdentifier()
RenderObjectInterface.RenderObjectVersion getVersionInfo()
RenderObjectInterface.RenderObjectState getStateInfo()
void ensurePositionCapacity(int cap)
cap - capacityint addPosition(float px,
                float py,
                float pz)
px - x coordinatepy - y coordinatepz - z coordinateint position(float px,
             float py,
             float pz)
px - x coordinatepy - y coordinatepz - z coordinatevoid position(int pidx)
pidx - index of a previously added positionvoid setPosition(int pidx,
                 float px,
                 float py,
                 float pz)
pidx - position to modifypx - x coordinatepy - y coordinatepz - z coordinateboolean hasPositions()
int numPositions()
float[] getPosition(int pidx)
pidx - position indexjava.util.List<float[]> getPositions()
void setPositionsDynamic(boolean set)
commit()boolean isPositionsDynamic()
int createPositionSet()
positionSet(int)int createPositionSetFrom(int copyIdx)
copyIdx - index of position set to duplicatepositionSet(int)void positionSet(int setIdx)
setIdx - index of active position setint getPositionSetIdx()
int numPositionSets()
float[] getPosition(int pset,
                    int pidx)
pset - position set indexpidx - position indexjava.util.List<float[]> getPositions(int pset)
pset - position set indexint getPositionsVersion()
void ensureNormalCapacity(int cap)
cap - capacityint addNormal(float nx,
              float ny,
              float nz)
nx - x componentny - y componentnz - z componentint normal(float nx,
           float ny,
           float nz)
nx - x componentny - y componentnz - z componentvoid normal(int nidx)
nidx - index of a previously added normalvoid setNormal(int nidx,
               float nx,
               float ny,
               float nz)
nidx - normal to modifynx - x componentny - y componentnz - z componentboolean hasNormals()
int numNormals()
float[] getNormal(int nidx)
nidx - normal indexjava.util.List<float[]> getNormals()
void setNormalsDynamic(boolean set)
commit()boolean isNormalsDynamic()
int createNormalSet()
normalSet(int)int createNormalSetFrom(int copyIdx)
copyIdx - index of normal set to duplicatenormalSet(int)void normalSet(int setIdx)
setIdx - index of active normal setint getNormalSetIdx()
int numNormalSets()
float[] getNormal(int nset,
                  int nidx)
nset - normal set indexnidx - normal indexjava.util.List<float[]> getNormals(int nset)
nset - normal set indexint getNormalsVersion()
void ensureColorCapacity(int cap)
cap - capacityint addColor(byte r,
             byte g,
             byte b,
             byte a)
r - redg - greenb - bluea - alphaint addColor(int r,
             int g,
             int b,
             int a)
r - red [0-255]g - green [0-255]b - blue [0-255]a - alpha [0-255]int addColor(float r,
             float g,
             float b,
             float a)
r - red [0-1]g - green [0-1]b - blue  [0-1]a - alpha  [0-1]int addColor(byte[] rgba)
rgba - {red, green, blue, alpha}int color(int r,
          int g,
          int b,
          int a)
r - red [0-255]g - green [0-255]b - blue [0-255]a - alpha [0-255]int color(float r,
          float g,
          float b,
          float a)
r - red [0-1]g - green [0-1]b - blue [0-1]a - alpha [0-1]int color(byte r,
          byte g,
          byte b,
          byte a)
r - redg - greenb - bluea - alphaint color(byte[] rgba)
rgba - {red, green, blue, alpha}void color(int cidx)
cidx - index of a previously added colorvoid setColor(int cidx,
              byte r,
              byte g,
              byte b,
              byte a)
cidx - color to modifyr - redg - greenb - bluea - alphavoid setColor(int cidx,
              int r,
              int g,
              int b,
              int a)
cidx - color to modifyr - redg - greenb - bluea - alphavoid setColor(int cidx,
              float r,
              float g,
              float b,
              float a)
cidx - color to modifyr - redg - greenb - bluea - alphavoid setColor(int cidx,
              byte[] rgba)
cidx - color to modifyrgba - {red, green, blue, alpha}boolean hasColors()
int numColors()
byte[] getColor(int cidx)
cidx - color indexjava.util.List<byte[]> getColors()
void setColorsDynamic(boolean set)
commit()boolean isColorsDynamic()
int createColorSet()
colorSet(int)int createColorSetFrom(int copyIdx)
copyIdx - index of color set to duplicatecolorSet(int)void colorSet(int setIdx)
setIdx - index of active color setint getColorSetIdx()
int numColorSets()
byte[] getColor(int cset,
                int cidx)
cset - color set indexcidx - color indexjava.util.List<byte[]> getColors(int cset)
cset - color set indexint getColorsVersion()
void ensureTextureCoordCapacity(int cap)
cap - capacityint addTextureCoord(float x,
                    float y)
x - x coordinatey - y coordinateint textureCoord(float x,
                 float y)
x - x coordinatey - y coordinatevoid textureCoord(int tidx)
tidx - index of a previously added texture coordinatevoid setTextureCoord(int tidx,
                     float x,
                     float y)
tidx - coordinate indexx - x coordinatey - y coordinateboolean hasTextureCoords()
int numTextureCoords()
float[] getTextureCoord(int tidx)
tidx - position indexjava.util.List<float[]> getTextureCoords()
void setTextureCoordsDynamic(boolean set)
commit()boolean isTextureCoordsDynamic()
int createTextureCoordSet()
textureCoordSet(int)int createTextureCoordSetFrom(int copyIdx)
copyIdx - index of texture coordinate set to duplicatetextureCoordSet(int)void textureCoordSet(int setIdx)
setIdx - index of active position setint getTextureCoordSetIdx()
int numTextureCoordSets()
float[] getTextureCoord(int tset,
                        int tidx)
tset - texture coordinate set indextidx - texture coordinate indexjava.util.List<float[]> getTextureCoords(int tset)
tset - texture coordinate set indexint getTextureCoordsVersion()
boolean isDynamic()
void ensureVertexCapacity(int cap)
cap - capacityint addVertex()
int addVertex(int pidx)
int addVertex(int pidx,
              int nidx)
int addVertex(int pidx,
              int nidx,
              int cidx,
              int tidx)
pidx - position indexnidx - normal indexcidx - color indextidx - texture coordinate indexint vertex(float x,
           float y,
           float z)
x - x coordinatey - y coordinatez - z coordinatevoid setVertex(int vidx,
               int pidx,
               int nidx,
               int cidx,
               int tidx)
vidx - index of vertex to modifypidx - new position indexnidx - new normal indexcidx - new color indextidx - new texture coordinate indexint numVertices()
float[] getVertexPosition(int vidx)
float[] getVertexNormal(int vidx)
byte[] getVertexColor(int vidx)
float[] getVertexTextureCoord(int vidx)
RenderObjectInterface.VertexIndexSet getVertex(int vidx)
vidx - vertex indexjava.util.List<RenderObjectInterface.VertexIndexSet> getVertices()
boolean isVerticesCommitted()
int getVerticesVersion()
void beginBuild(Renderer.DrawMode mode)
endBuild().mode - mode for adding consecutive primitivesvoid endBuild()
Renderer.DrawMode getBuildMode()
void addPoint(int vidx)
vidx - vertex index for pointvoid addPoints(int... vidxs)
vidxs - array of vertex indices at which to create point primitives.void addPoint(float[] v)
v - array of length 3 (x,y,z)void addPoints(java.lang.Iterable<float[]> pnts)
pnts - positions for which points and vertices should be definedaddPoint(float[])boolean hasPoints()
int numPoints()
java.util.List<int[]> getPoints()
void ensurePointCapacity(int cap)
cap - capacityint createPointGroup()
pointGroup(int)void pointGroup(int setIdx)
setIdx - index of active point group.int getPointGroupIdx()
int numPointGroups()
int numPoints(int pgroup)
int[] getPoint(int pgroup,
               int pidx)
pgroup - point group indexpidx - point indexjava.util.List<int[]> getPoints(int pgroup)
pgroup - point group indexint getPointsVersion()
void addLine(int v0idx,
             int v1idx)
v0idx - vertex index for start of linev1idx - vertex index for end of linevoid addLines(int... vidxs)
vidxs - vertex indices, in pairs, defining line segments.void addLines(int vStart,
              int vEnd)
vStart - starting vertexvEnd - ending vertexvoid addLines(java.lang.Iterable<int[]> lines)
lines - int pairs of vertex indices defining line segments.void addLineStrip(int... vidxs)
vidxs - vertex indices specifying connectivityvoid addLineStrip(int vStart,
                  int vEnd)
vStart - starting vertexvEnd - ending vertexvoid addLineLoop(int... vidxs)
vidxs - vertex indices specifying connectivityvoid addLineLoop(int vStart,
                 int vEnd)
vStart - starting vertexvEnd - ending vertexvoid addLine(float[] v0,
             float[] v1)
v0 - length 3 array for position of starting vertex (x,y,z)v1 - length 3 array for position of ending vertex (x,y,z)boolean hasLines()
int numLines()
java.util.List<int[]> getLines()
void ensureLineCapacity(int cap)
cap - capacityint createLineGroup()
lineGroup(int)void lineGroup(int setIdx)
setIdx - index of active line group.int getLineGroupIdx()
int numLineGroups()
int numLines(int lgroup)
int[] getLine(int lgroup,
              int lidx)
lgroup - line group indexlidx - line indexjava.util.List<int[]> getLines(int lgroup)
lgroup - line group indexint getLinesVersion()
void addTriangle(int v0idx,
                 int v1idx,
                 int v2idx)
v0idx - first vertexv1idx - second vertexv2idx - third vertexvoid addTriangles(int... vidxs)
vidxs - vertex indices, in triples, defining triangles.void addTriangles(int vStart,
                  int vEnd)
vStart - starting vertex indexvEnd - ending vertex indexvoid addTriangleFan(int... vidxs)
vidxs - vertex indices defining triangles.void addTriangleFan(int vStart,
                    int vEnd)
vStart - starting vertex indexvEnd - ending vertex indexvoid addTriangleStrip(int... vidxs)
vidxs - vertex indices defining triangles.void addTriangleStrip(int vStart,
                      int vEnd)
vStart - starting vertex indexvEnd - ending vertex indexvoid addTriangles(java.lang.Iterable<int[]> tris)
tris - int triples of vertex indices defining triangles (CCW)void addTriangle(float[] v0,
                 float[] v1,
                 float[] v2)
v0 - {x,y,z} position of first vertexv1 - {x,y,z} position of second vertexv2 - {x,y,z} position of third vertexboolean hasTriangles()
int numTriangles()
java.util.List<int[]> getTriangles()
void ensureTriangleCapacity(int cap)
cap - capacityint createTriangleGroup()
triangleGroup(int)void triangleGroup(int setIdx)
setIdx - index of active triangle group.int getTriangleGroupIdx()
int numTriangleGroups()
int numTriangles(int tgroup)
int[] getTriangle(int tgroup,
                  int tidx)
tgroup - triangle group indextidx - triangle indexjava.util.List<int[]> getTriangles(int tgroup)
tgroup - point group indexint getTrianglesVersion()
void clearPrimitives()
void reinitialize()
void commit()
boolean isCommitted()
int getVersion()
void invalidate()
isValid()boolean isValid()
true if this RenderObject is validvoid dispose()
void setStreaming(boolean set)
boolean isStreaming()