Package org.xj3d.sai
Interface Xj3DCADView
public interface Xj3DCADView
Wrapper interface for the internal viewpoint representation, to allow
abstraction of the user interface description of viewpoints from the
underlying node representation.
This class deliberately does not give access to the SAI X3DNode that represents the viewpoint.
- Version:
- $Revision: 1.1 $
- Author:
- Justin Couch
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a listener for CAD-style changes.X3DNode[]
Get the list of layers declared in the current scene.X3DNode[]
Get the list of layers declared in the current scene.void
highlightPart
(X3DNode structureNode, X3DNode material) Highlight the given part or assembly using the given alternate appearance attributes.void
Remove a listener for CAD-style changes.
-
Method Details
-
getCADLayers
X3DNode[] getCADLayers()Get the list of layers declared in the current scene. If the scene does not contain any layers, it will return null.- Returns:
-
getCADAssemblies
X3DNode[] getCADAssemblies()Get the list of layers declared in the current scene. If the scene does not contain any layers, it will return null.- Returns:
-
highlightPart
Highlight the given part or assembly using the given alternate appearance attributes. This will temporarily override the appearance on all sub-children until one of the following conditions are met:- The world is replaced
- The parent scene graph containing this structure node is removed
- Another part or structure is requested to be highlighted
- This same node is requested, but with a null material parameter
- Parameters:
structureNode
- A X3DProductStructureNode to be highlighted (or PROTO wrapper of one)material
- A X3DmaterialNode to use as the highlight colour, or null to clear the current highlighted object
-
addCADViewListener
Add a listener for CAD-style changes. Adding the same listener instance more than once will be silently ignored. Null values are ignored.- Parameters:
l
- The listener instance to add
-
removeCADViewListener
Remove a listener for CAD-style changes. If this listener is not currently registered, the request will be silently ignored.- Parameters:
l
- The listener instance to remove
-