Xj3D 2.0 VRML/X3D Code API

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
 void addCADViewListener(Xj3DCADViewListener l)
          Add a listener for CAD-style changes.
 X3DNode[] getCADAssemblies()
          Get the list of layers declared in the current scene.
 X3DNode[] getCADLayers()
          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 removeCADViewListener(Xj3DCADViewListener l)
          Remove a listener for CAD-style changes.
 

Method Detail

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.


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.


highlightPart

void highlightPart(X3DNode structureNode,
                   X3DNode material)
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: Once highlighting has stopped, the ordinary material values are returned.

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

void addCADViewListener(Xj3DCADViewListener l)
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

void removeCADViewListener(Xj3DCADViewListener l)
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

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium