|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.scenegraph.traversal.impl.SGUtils
public class SGUtils
Various useful static methods manipulate the scenegraph.
| Constructor Summary | |
|---|---|
SGUtils()
|
|
| Method Summary | |
|---|---|
static Shape3D |
findFirstShape(Group group)
Finds the first Shape3D in the scenegraph |
static int |
getPolygonCount(Group group)
Returns the count of polygons in the (subgroup of the) scenegraph. |
static int |
getPolygonCount(Node node)
Returns the count of polygons in the (subgroup of the) scenegraph. |
static void |
setAllAppearances(Group group,
Appearance app)
Traverses the scenegraph and applies an Appearance to all Nodes |
static void |
setAllMaterials(Group group,
Material mat)
Traverses the scenegraph and applies a Material to all Nodes |
static void |
setAllPickable(Group group,
boolean pickable)
Traverses the scenegraph and sets the pickable flag on all Nodes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SGUtils()
| Method Detail |
|---|
public static int getPolygonCount(Node node)
node - the node to search : could be a link or a group
public static int getPolygonCount(Group group)
group - the subgroup to search
public static Shape3D findFirstShape(Group group)
group - the group to search
public static void setAllAppearances(Group group,
Appearance app)
group - the group to searchapp - the Appearance to apply to all nodes in the group
public static void setAllMaterials(Group group,
Material mat)
group - the group to searchmat - the Material to apply to all nodes in the group
public static void setAllPickable(Group group,
boolean pickable)
group - the group to searchpickable - the value to set the pickable flag to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||