Class OGLPointProperties
java.lang.Object
org.web3d.vrml.renderer.common.nodes.AbstractNode
org.web3d.vrml.renderer.common.nodes.shape.BasePointProperties
org.web3d.vrml.renderer.ogl.nodes.shape.OGLPointProperties
- All Implemented Interfaces:
org.j3d.aviatrix3d.NodeUpdateListener,VRMLNode,FrameStateListener,VRMLAppearanceChildNodeType,VRMLNodeType,VRMLPointPropertiesNodeType,OGLVRMLNode
public class OGLPointProperties
extends BasePointProperties
implements OGLVRMLNode, org.j3d.aviatrix3d.NodeUpdateListener
Aviatrix3D renderer implementation of an PointProperties node.
- Version:
- $Revision: 1.2 $
- Author:
- Justin Couch
-
Field Summary
FieldsFields inherited from class org.web3d.vrml.renderer.common.nodes.shape.BasePointProperties
colorMode, FIELD_COLOR_MODE, FIELD_POINTSIZE_ATTENUATION, FIELD_POINTSIZE_MAX_VALUE, FIELD_POINTSIZE_MIN_VALUE, FIELD_POINTSIZE_SCALE_FACTOR, NUM_FIELDS, POINT_COLORMODE, TEXTURE_AND_POINT_COLORMODE, TEXTURE_COLORMODE, vfColorMode, vfPointsizeAttenuation, vfPointsizeMaxValue, vfPointsizeMinValue, vfPointsizeScaleFactorFields inherited from class org.web3d.vrml.renderer.common.nodes.AbstractNode
errorReporter, FIELD_METADATA, fieldLocalData, hasChanged, inSetup, isDEF, isStatic, LAST_NODE_INDEX, layerIds, nodeName, pMetadata, refCounts, removedLayerIds, stateManager, STATIC_SCENE_GRAPH, vfMetadata, vrmlMajorVersion, vrmlMinorVersionFields inherited from interface org.web3d.vrml.nodes.VRMLPointPropertiesNodeType
DISABLE_COLOR_MODE, POINT_COLOR_MODE, TEXTURE_AND_POINT_COLOR_MODE, TEXTURE_COLOR_MODE -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Construct a new instance of this node based on the details from the given node. -
Method Summary
Modifier and TypeMethodDescriptionorg.j3d.aviatrix3d.SceneGraphObjectGet the OpenGL scene graph object representation of this node.voidsetColorMode(String value) Set the color mode to the new value.protected voidsetPointSizeAttenuation(float[] factor) Set the attenuation factor of the point size.protected voidsetPointSizeMax(float value) Set the point size max value to the new value.protected voidsetPointSizeMin(float value) Set the point size min value to the new value.protected voidsetPointSizeScale(float value) Override the base setting to update the Java3D representation of the point style.voidNotification that the construction phase of this node has finished.voidNotification that its safe to update the node now with any operations that could potentially effect the node's bounds.voidNotification that its safe to update the node now with any operations that only change the node's properties, but do not change the bounds.Methods inherited from class org.web3d.vrml.renderer.common.nodes.shape.BasePointProperties
getColorMode, getFieldDeclaration, getFieldIndex, getFieldValue, getNodeFieldIndices, getNumFields, getPrimaryType, sendRoute, setColorMode, setValue, setValue, setValueMethods inherited from class org.web3d.vrml.renderer.common.nodes.AbstractNode
addNodeListener, allEventsComplete, checkNodeType, checkSecondaryType, checkSecondaryType, clearRemovedLayerIds, fireFieldChanged, getLayerIds, getMetadataObject, getRefCount, getRemovedLayerIds, getSecondaryType, getUserData, getVRMLNodeName, hasFieldChanged, isDEF, isSetupFinished, notifyExternProtoLoaded, removeNodeListener, setDEF, setErrorReporter, setFrameStateManager, setMetadataObject, setUserData, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setVersion, throwInitOnlyWriteException, throwInputOnlyWriteException, throwInvalidNodeException, throwInvalidProtoException, throwOutputOnlyWriteException, updateRefCount, updateRefsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.web3d.vrml.nodes.FrameStateListener
allEventsCompleteMethods inherited from interface org.web3d.vrml.lang.VRMLNode
getFieldDeclaration, getFieldIndex, getNodeFieldIndices, getNumFields, getPrimaryType, getSecondaryType, getUserData, getVRMLNodeName, isDEF, setErrorReporter, setUserData, setVersionMethods inherited from interface org.web3d.vrml.nodes.VRMLNodeType
addNodeListener, clearRemovedLayerIds, getFieldValue, getLayerIds, getMetadataObject, getRefCount, getRemovedLayerIds, hasFieldChanged, isSetupFinished, notifyExternProtoLoaded, removeNodeListener, sendRoute, setDEF, setFrameStateManager, setMetadataObject, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, updateRefCount
-
Field Details
-
defColorMode
public int defColorModeDefault value of colorMode
-
-
Constructor Details
-
OGLPointProperties
public OGLPointProperties()Default constructor. -
OGLPointProperties
Construct a new instance of this node based on the details from the given node. If the node is not a PointAttributes node, an exception will be thrown.- Parameters:
node- The node to copy- Throws:
IllegalArgumentException- The node is not a Group node
-
-
Method Details
-
getSceneGraphObject
public org.j3d.aviatrix3d.SceneGraphObject getSceneGraphObject()Get the OpenGL scene graph object representation of this node. Scripts always return null.- Specified by:
getSceneGraphObjectin interfaceOGLVRMLNode- Returns:
- null
-
setupFinished
public void setupFinished()Notification that the construction phase of this node has finished. If the node would like to do any internal processing, such as setting up geometry, then go for it now.- Specified by:
setupFinishedin interfaceVRMLNodeType- Overrides:
setupFinishedin classAbstractNode
-
updateNodeBoundsChanges
Notification that its safe to update the node now with any operations that could potentially effect the node's bounds.- Specified by:
updateNodeBoundsChangesin interfaceorg.j3d.aviatrix3d.NodeUpdateListener- Parameters:
src- The node or Node Component that is to be updated.
-
updateNodeDataChanges
Notification that its safe to update the node now with any operations that only change the node's properties, but do not change the bounds.- Specified by:
updateNodeDataChangesin interfaceorg.j3d.aviatrix3d.NodeUpdateListener- Parameters:
src- The node or Node Component that is to be updated.
-
setPointSizeScale
Override the base setting to update the Java3D representation of the point style.- Overrides:
setPointSizeScalein classBasePointProperties- Parameters:
value- The scale value to check- Throws:
InvalidFieldValueException- One of the colour components are out of range
-
setPointSizeMin
Description copied from class:BasePointPropertiesSet the point size min value to the new value.- Overrides:
setPointSizeMinin classBasePointProperties- Parameters:
value- The min value to set- Throws:
InvalidFieldValueException- The submitted value is out of range
-
setPointSizeMax
Description copied from class:BasePointPropertiesSet the point size max value to the new value.- Overrides:
setPointSizeMaxin classBasePointProperties- Parameters:
value- The max value to set- Throws:
InvalidFieldValueException- The submitted value is out of range
-
setPointSizeAttenuation
Description copied from class:BasePointPropertiesSet the attenuation factor of the point size.- Overrides:
setPointSizeAttenuationin classBasePointProperties- Parameters:
factor- The new attenuation factor to use- Throws:
InvalidFieldValueException- Attenuation was not [0,1]
-
setColorMode
Description copied from class:BasePointPropertiesSet the color mode to the new value.- Specified by:
setColorModein interfaceVRMLPointPropertiesNodeType- Overrides:
setColorModein classBasePointProperties- Parameters:
value- The color mode to set- Throws:
InvalidFieldValueException- The submitted value is out of range
-