|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jreality.scene.SceneGraphNode
de.jreality.scene.Geometry
de.jreality.scene.PointSet
public class PointSet
A set of points in 3 space.
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.
Field Summary |
---|
Fields inherited from class de.jreality.scene.Geometry |
---|
CATEGORY_EDGE, CATEGORY_FACE, CATEGORY_VERTEX |
Constructor Summary | |
---|---|
PointSet()
|
|
PointSet(int numPoints)
|
|
PointSet(java.lang.String name)
|
|
PointSet(java.lang.String name,
int numPoints)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class de.jreality.scene.Geometry |
---|
addGeometryListener, getAttributes, getAttributes, getGeometryAttributeCathegories, getGeometryAttributes, getGeometryAttributes, getNumEntries, removeGeometryListener, setAttributes, setAttributes, setCountAndAttributes, setCountAndAttributes, setGeometryAttributes, setGeometryAttributes, setNumEntries |
Methods inherited from class de.jreality.scene.SceneGraphNode |
---|
getName, getOwner, getThreadSafe, isReadOnly, setName, setOwner, setReadOnly, setThreadSafe, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PointSet()
public PointSet(int numPoints)
public PointSet(java.lang.String name)
public PointSet(java.lang.String name, int numPoints)
Method Detail |
---|
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.
setVertexAttributes(DataListSet)
,
Geometry.getGeometryAttributes()
public DataList getVertexAttributes(Attribute attr)
public void setVertexAttributes(DataListSet dls)
public void setVertexAttributes(Attribute attr, DataList dl)
public void setVertexCountAndAttributes(Attribute attr, DataList dl)
public void setVertexCountAndAttributes(DataListSet dls)
public void accept(SceneGraphVisitor v)
SceneGraphNode
accept
in class Geometry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |