|
||||||||||
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
public abstract class Geometry
A geometry leaf. Supports arbitrary attributes (setGeometryAttributes(String, Object)
),
and registering instances of GeometryListener
.
Field Summary | |
---|---|
static String |
CATEGORY_EDGE
|
static String |
CATEGORY_FACE
|
static String |
CATEGORY_VERTEX
|
Constructor Summary | |
---|---|
Geometry(String name)
|
Method Summary | |
---|---|
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 |
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 |
Field Detail |
---|
public static final String CATEGORY_VERTEX
public static final String CATEGORY_EDGE
public static final String CATEGORY_FACE
Constructor Detail |
---|
public Geometry(String name)
Method Detail |
---|
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 Object getGeometryAttributes(String name)
public void setGeometryAttributes(Map<String,Object> attrSet)
public void setGeometryAttributes(String attr, Object value)
public void addGeometryListener(GeometryListener listener)
public void removeGeometryListener(GeometryListener listener)
public Set<String> getGeometryAttributeCathegories()
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 DataList getAttributes(String attributeCategory, Attribute attr)
public void setAttributes(String attributeCategory, DataListSet dls)
public void setAttributes(String attributeCategory, Attribute attr, DataList dl)
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |