public class PointSet extends Geometry
Vertices can be specified with either 3- or 4-D coordinates. The point set is represented as set of
attribute/value pairs. The values are typically arrays of data, with one vector or scalar per point.
Every point set must contain a value for the
.
Other built-in attributes include:
Attribute.COORDINATES
DataList
. Users who prefer to
avoid this are recommended to use PointSetFactory
to construct instances of this class.
CATEGORY_EDGE, CATEGORY_FACE, CATEGORY_VERTEX
Constructor and Description |
---|
PointSet() |
PointSet(int numPoints) |
PointSet(String name) |
PointSet(String name,
int numPoints) |
Modifier and Type | Method and Description |
---|---|
void |
accept(SceneGraphVisitor v)
The accept method for a SceneGraphVisitor.
|
int |
getNumPoints()
The number of vertices defines the length of all data lists associated
with vertex attributes.
|
DataListSet |
getVertexAttributes()
Returns a read-only view to all currently defined vertex attributes.
|
DataList |
getVertexAttributes(Attribute attr) |
void |
setNumPoints(int numVertices)
Sets the number of vertices, implies removal of all previously defined
vertex attributes.
|
void |
setVertexAttributes(Attribute attr,
DataList dl) |
void |
setVertexAttributes(DataListSet dls) |
void |
setVertexCountAndAttributes(Attribute attr,
DataList dl) |
void |
setVertexCountAndAttributes(DataListSet dls) |
addGeometryListener, getAttributes, getAttributes, getGeometryAttributeCathegories, getGeometryAttributes, getGeometryAttributes, getNumEntries, removeGeometryListener, setAttributes, setAttributes, setCountAndAttributes, setCountAndAttributes, setGeometryAttributes, setGeometryAttributes, setNumEntries
getName, getOwner, getThreadSafe, isReadOnly, setName, setOwner, setReadOnly, setThreadSafe, toString
public PointSet()
public PointSet(int numPoints)
public PointSet(String name)
public PointSet(String name, int numPoints)
public int getNumPoints()
public void setNumPoints(int numVertices)
numVertices
- the number of vertices to set >=0public DataListSet getVertexAttributes()
target.setVertexAttributes(source.getVertexAttributes())
These attributes are copied then, not shared. Thus modifying either
source or target afterwards will not affect the other.public void setVertexAttributes(DataListSet dls)
public void setVertexCountAndAttributes(DataListSet dls)
public void accept(SceneGraphVisitor v)
SceneGraphNode