public class IndexedLineSet extends PointSet
Accessing instances of this class directly requires use of the class DataList
. Users who prefer to
avoid this are recommended to use IndexedLineSetFactory
to construct instances of this class.
CATEGORY_EDGE, CATEGORY_FACE, CATEGORY_VERTEX
Constructor and Description |
---|
IndexedLineSet() |
IndexedLineSet(int numPoints) |
IndexedLineSet(int numPoints,
int numEdges) |
IndexedLineSet(String name) |
IndexedLineSet(String name,
int numPoints) |
IndexedLineSet(String name,
int numPoints,
int numEdges) |
Modifier and Type | Method and Description |
---|---|
void |
accept(SceneGraphVisitor v)
The accept method for a SceneGraphVisitor.
|
DataListSet |
getEdgeAttributes()
Returns a read-only view to all currently defined edge attributes.
|
DataList |
getEdgeAttributes(Attribute attr) |
int |
getNumEdges()
The number of edges defines the length of all data lists associated
with edge attributes.
|
void |
setEdgeAttributes(Attribute attr,
DataList dl) |
void |
setEdgeAttributes(DataListSet dls) |
void |
setEdgeCountAndAttributes(Attribute attr,
DataList dl) |
void |
setEdgeCountAndAttributes(DataListSet dls) |
void |
setNumEdges(int numEdges)
Sets the number of edges, implies removal of all previously defined
edge attributes.
|
getNumPoints, getVertexAttributes, getVertexAttributes, setNumPoints, setVertexAttributes, setVertexAttributes, setVertexCountAndAttributes, setVertexCountAndAttributes
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 IndexedLineSet()
public IndexedLineSet(String name)
public IndexedLineSet(int numPoints)
public IndexedLineSet(String name, int numPoints)
public IndexedLineSet(int numPoints, int numEdges)
public IndexedLineSet(String name, int numPoints, int numEdges)
public int getNumEdges()
public void setNumEdges(int numEdges)
numEdges
- the number of edges to set >=0public DataListSet getEdgeAttributes()
target.setEdgeAttributes(source.getEdgeAttributes())
These attributes are copied then, not shared. Thus modifying either
source or target afterwards will not affect the other.public void setEdgeAttributes(DataListSet dls)
public void setEdgeCountAndAttributes(DataListSet dls)
public void accept(SceneGraphVisitor v)
SceneGraphNode