public abstract class Geometry extends SceneGraphNode
setGeometryAttributes(String, Object)
),
and registering instances of GeometryListener
.Modifier and Type | Field and Description |
---|---|
static String |
CATEGORY_EDGE |
static String |
CATEGORY_FACE |
static String |
CATEGORY_VERTEX |
Modifier and Type | Method and Description |
---|---|
void |
accept(SceneGraphVisitor v)
The accept method for a SceneGraphVisitor.
|
void |
addGeometryListener(GeometryListener listener) |
DataListSet |
getAttributes(String attributeCategory)
Returns a read-only view to all currently defined target geometry attributes.
|
DataList |
getAttributes(String attributeCategory,
Attribute attr) |
Set<String> |
getGeometryAttributeCathegories() |
Map<String,Object> |
getGeometryAttributes()
Returns a read-only view to all currently defined geometry attributes.
|
Object |
getGeometryAttributes(String name) |
int |
getNumEntries(String attributeCategory)
The number of entries defines the length of all data lists associated
with the target geometry attributes.
|
void |
removeGeometryListener(GeometryListener listener) |
void |
setAttributes(String attributeCategory,
Attribute attr,
DataList dl) |
void |
setAttributes(String attributeCategory,
DataListSet dls) |
void |
setCountAndAttributes(String attributeCategory,
Attribute attr,
DataList dl) |
void |
setCountAndAttributes(String attributeCategory,
DataListSet dls) |
void |
setGeometryAttributes(Map<String,Object> attrSet) |
void |
setGeometryAttributes(String attr,
Object value) |
void |
setNumEntries(String attributeCategory,
int numEntries)
Sets the number of entries, implies removal of all previously defined
such geometries attributes
|
getName, getOwner, getThreadSafe, isReadOnly, setName, setOwner, setReadOnly, setThreadSafe, toString
public static final String CATEGORY_VERTEX
public static final String CATEGORY_EDGE
public static final String CATEGORY_FACE
public Geometry(String name)
public Map<String,Object> getGeometryAttributes()
target.setGeometryAttributes(source.getGeometryAttributes())
These attributes are copied then, not shared. Thus modifying either
source or target afterwards will not affect the other.setGeometryAttributes(DataListSet)
public void addGeometryListener(GeometryListener listener)
public void removeGeometryListener(GeometryListener listener)
public int getNumEntries(String attributeCategory)
attributeCategory
- key for target data list setpublic void setNumEntries(String attributeCategory, int numEntries)
attributeCategory
- key for target data list setnumEntries
- the number of vertices to set >=0public DataListSet getAttributes(String attributeCategory)
attributeCategory
- key for target data list setsetVertexAttributes(DataListSet)
,
getGeometryAttributes()
public void setAttributes(String attributeCategory, DataListSet dls)
public void setCountAndAttributes(String attributeCategory, Attribute attr, DataList dl)
public void setCountAndAttributes(String attributeCategory, DataListSet dls)
public void accept(SceneGraphVisitor v)
SceneGraphNode
accept
in class SceneGraphNode