- All Known Implementing Classes:
AvoidIntersection
,LightModel
,LightModelD
,Scanner
public interface VolumeListener
A
VolumeListener
is informed from a
SceneVisitor
about the mappings
from graph objects to volumes via invocations of the method
volumeCreated
.- Author:
- Ole Kniemeyer
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
beginGroup
(Object object, boolean asNode) This method is invoked by aSceneVisitor
when subsequent volumes shall be grouped into a single compound object.void
endGroup()
This method is invoked by aSceneVisitor
when the current group ends.void
volumeCreated
(Object object, boolean asNode, Volume volume) This method is invoked by aSceneVisitor
when avolume
is created as representation of the geometry ofobject
.
-
Method Details
-
volumeCreated
This method is invoked by aSceneVisitor
when avolume
is created as representation of the geometry ofobject
. By storing the information provided by the parameters, the link from graph objects (nodes and edges) to volumes can be established.- Parameters:
object
- an object of the graphasNode
- isobject
a node or an edge?volume
- the volume which has been created as geometrical representation ofobject
-
beginGroup
This method is invoked by aSceneVisitor
when subsequent volumes shall be grouped into a single compound object. The group extends until the corresponding invocation ofendGroup()
. These invocations may be nested, i.e., there may be groups within groups.Each group starts at
object
in the graph. Ifobject
has a geometric representation itself, the corresponding invocation ofvolumeCreated(java.lang.Object, boolean, de.grogra.vecmath.geom.Volume)
may be either immediately before of afterbeginGroup
.- Parameters:
object
- the object of the graph which represents the root of the groupasNode
- isobject
a node or an edge?- See Also:
-
endGroup
void endGroup()This method is invoked by aSceneVisitor
when the current group ends.- See Also:
-