Class SAIAnchor
java.lang.Object
org.web3d.vrml.scripting.external.sai.SAINode
org.xj3d.sai.external.node.networking.SAIAnchor
- All Implemented Interfaces:
Anchor
,X3DBoundedObject
,X3DChildNode
,X3DGroupingNode
,X3DNode
A concrete implementation of the Anchor node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Constructor Summary
ConstructorsConstructorDescriptionSAIAnchor
(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChildren
(X3DNode[] val) Set the addChildren field.double
Get the autoRefresh value to associate with the link.double
Get the autoRefreshTimeLimit value to associate with the link.void
getBboxCenter
(float[] val) Return the bboxCenter value in the argument float[]void
getBboxSize
(float[] val) Return the bboxSize value in the argument float[]void
getChildren
(X3DNode[] val) Return the children value in the argument X3DNode[]Return the description String value.int
Return the number of MFNode items in the children field.int
Return the number of MFString items in the parameter field.int
Return the number of MFString items in the url field.void
getParameter
(String[] val) Return the parameter value in the argument String[]void
Return the url value in the argument String[]void
removeChildren
(X3DNode[] val) Set the removeChildren field.void
setAutoRefresh
(double newValue) Set the autoRefresh value for this link.void
setAutoRefreshTimeLimit
(double newValue) Set the autoRefreshTimeLimit value for this link.void
setBboxCenter
(float[] val) Set the bboxCenter field.void
setBboxSize
(float[] val) Set the bboxSize field.void
setChildren
(X3DNode[] val) Set the children field.void
setDescription
(String val) Set the description field.void
setParameter
(String[] val) Set the parameter field.void
Set the url field.Methods inherited from class org.web3d.vrml.scripting.external.sai.SAINode
dispose, equals, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, hashCode, isRealized, realize, setMetadata
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Constructor Details
-
SAIAnchor
public SAIAnchor(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor- Parameters:
node
-nodeFactory
-fieldFactory
-queue
-
-
-
Method Details
-
getNumChildren
public int getNumChildren()Return the number of MFNode items in the children field.- Specified by:
getNumChildren
in interfaceX3DGroupingNode
- Returns:
- the number of MFNode items in the children field.
-
getChildren
Return the children value in the argument X3DNode[]- Specified by:
getChildren
in interfaceX3DGroupingNode
- Parameters:
val
- The X3DNode[] to initialize.
-
setChildren
Set the children field.- Specified by:
setChildren
in interfaceX3DGroupingNode
- Parameters:
val
- The X3DNode[] to set.
-
addChildren
Set the addChildren field.- Specified by:
addChildren
in interfaceX3DGroupingNode
- Parameters:
val
- The X3DNode[] to set.
-
removeChildren
Set the removeChildren field.- Specified by:
removeChildren
in interfaceX3DGroupingNode
- Parameters:
val
- The X3DNode[] to set.
-
getBboxCenter
public void getBboxCenter(float[] val) Return the bboxCenter value in the argument float[]- Specified by:
getBboxCenter
in interfaceX3DBoundedObject
- Parameters:
val
- The float[] to initialize.
-
setBboxCenter
public void setBboxCenter(float[] val) Set the bboxCenter field.- Specified by:
setBboxCenter
in interfaceX3DBoundedObject
- Parameters:
val
- The float[] to set.
-
getBboxSize
public void getBboxSize(float[] val) Return the bboxSize value in the argument float[]- Specified by:
getBboxSize
in interfaceX3DBoundedObject
- Parameters:
val
- The float[] to initialize.
-
setBboxSize
public void setBboxSize(float[] val) Set the bboxSize field.- Specified by:
setBboxSize
in interfaceX3DBoundedObject
- Parameters:
val
- The float[] to set.
-
getDescription
Return the description String value.- Specified by:
getDescription
in interfaceAnchor
- Returns:
- The description String value.
-
setDescription
Set the description field.- Specified by:
setDescription
in interfaceAnchor
- Parameters:
val
- The String to set.
-
getNumParameter
public int getNumParameter()Return the number of MFString items in the parameter field.- Specified by:
getNumParameter
in interfaceAnchor
- Returns:
- the number of MFString items in the parameter field.
-
getParameter
Return the parameter value in the argument String[]- Specified by:
getParameter
in interfaceAnchor
- Parameters:
val
- The String[] to initialize.
-
setParameter
Set the parameter field.- Specified by:
setParameter
in interfaceAnchor
- Parameters:
val
- The String[] to set.
-
getNumUrl
-
getUrl
-
setUrl
-
getAutoRefresh
public double getAutoRefresh()Get the autoRefresh value to associate with the link.- Specified by:
getAutoRefresh
in interfaceAnchor
- Returns:
- The current autoRefresh value
-
setAutoRefresh
public void setAutoRefresh(double newValue) Set the autoRefresh value for this link.- Specified by:
setAutoRefresh
in interfaceAnchor
- Parameters:
newValue
- The new autoRefresh value to set
-
getAutoRefreshTimeLimit
public double getAutoRefreshTimeLimit()Get the autoRefreshTimeLimit value to associate with the link.- Specified by:
getAutoRefreshTimeLimit
in interfaceAnchor
- Returns:
- The current TimeLimit value
-
setAutoRefreshTimeLimit
public void setAutoRefreshTimeLimit(double newValue) Set the autoRefreshTimeLimit value for this link.- Specified by:
setAutoRefreshTimeLimit
in interfaceAnchor
- Parameters:
newValue
- The new autoRefreshTimeLimit value to set
-