public class IndexedFaceSet extends IndexedLineSet
PointSet
).
Accessing instances of this class directly requires use of the class DataList
. Users who prefer to
avoid this are recommended to use IndexedFaceSetFactory
and its subclasses
to construct instances of this class.
CATEGORY_EDGE, CATEGORY_FACE, CATEGORY_VERTEX
Constructor and Description |
---|
IndexedFaceSet() |
IndexedFaceSet(int numVertices,
int numFaces) |
IndexedFaceSet(String name) |
IndexedFaceSet(String name,
int numVertices,
int numFaces) |
Modifier and Type | Method and Description |
---|---|
void |
accept(SceneGraphVisitor v)
The accept method for a SceneGraphVisitor.
|
DataListSet |
getFaceAttributes()
Returns a read-only view to all currently defined face attributes.
|
DataList |
getFaceAttributes(Attribute attr) |
int |
getNumFaces() |
void |
setFaceAttributes(Attribute attr,
DataList dl) |
void |
setFaceAttributes(DataListSet dls) |
void |
setFaceCountAndAttributes(Attribute attr,
DataList dl) |
void |
setFaceCountAndAttributes(DataListSet dls) |
void |
setNumFaces(int numFaces)
Sets the number of face, implies removal of all previously defined
face attributes.
|
getEdgeAttributes, getEdgeAttributes, getNumEdges, setEdgeAttributes, setEdgeAttributes, setEdgeCountAndAttributes, setEdgeCountAndAttributes, setNumEdges
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 IndexedFaceSet(int numVertices, int numFaces)
public IndexedFaceSet(String name, int numVertices, int numFaces)
public IndexedFaceSet()
public IndexedFaceSet(String name)
public int getNumFaces()
public void setNumFaces(int numFaces)
numVertices
- the number of vertices to set >=0public DataListSet getFaceAttributes()
target.setFaceAttributes(source.getFaceAttributes())
These attributes are copied then, not shared. Thus modifying either
source or target afterwards will not affect the other.public void setFaceAttributes(DataListSet dls)
public void setFaceCountAndAttributes(DataListSet dls)
public void accept(SceneGraphVisitor v)
SceneGraphNode
accept
in class IndexedLineSet