Class SpatialWrapper
- java.lang.Object
-
- saf.v3d.scene.VSpatial
-
- saf.v3d.scene.VComposite
-
- repast.simphony.visualizationOGL2D.SpatialWrapper
-
- All Implemented Interfaces:
saf.v3d.scene.TextureRenderable
public class SpatialWrapper extends saf.v3d.scene.VComposite implements saf.v3d.scene.TextureRenderable
Wraps the VSpatial produced by a style. This allows us to avoid edge etc. updates when a VSpatial is changed by the style.- Author:
- Nick Collier
-
-
Constructor Summary
Constructors Constructor Description SpatialWrapper(saf.v3d.scene.VSpatial child)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected saf.v3d.picking.BoundingSphere
doGetBoundingSphere()
void
draw(com.jogamp.opengl.GL2 gl, saf.v3d.render.RenderState state)
saf.v3d.scene.VSpatial
getChild()
Gets the VSpatial that this wraps.saf.v3d.picking.BoundingSphere
getLocalBoundingSphere()
float
getLocalScale()
saf.v3d.render.Texture2D
getTextureData()
void
intersects(org.jogamp.vecmath.Point3f rayOrigin, org.jogamp.vecmath.Vector3f rayDirection, saf.v3d.picking.Accumulator accumulator)
void
intersects(org.jogamp.vecmath.Point3f point, saf.v3d.picking.Accumulator accumulator)
void
setChild(saf.v3d.scene.VSpatial child)
Sets the VSpatial that this wraps.void
setNextChild(saf.v3d.scene.VSpatial child)
org.jogamp.vecmath.Point3f
transform(org.jogamp.vecmath.Point3f pt)
void
updateChild()
void
updateWorldTransformation()
-
Methods inherited from class saf.v3d.scene.VComposite
addChild, addChildren, children, doDraw, getChildCount, invalidate, markAsDirty, markBoundsDirty, removeAllChildren, removeChild
-
Methods inherited from class saf.v3d.scene.VSpatial
getAppearance, getBoundingSphere, getLocalRotation, getLocalTranslation, getParent, getProperty, getWorldRotation, getWorldScale, getWorldToLocalTransform, getWorldTranslation, isVisible, percolateDirtyUp, putProperty, rotate, rotate, rotate2D, scale, setAppearance, setParent, setVisible, translate, translate
-
-
-
-
Method Detail
-
setNextChild
public void setNextChild(saf.v3d.scene.VSpatial child)
-
updateChild
public void updateChild()
-
getTextureData
public saf.v3d.render.Texture2D getTextureData()
- Specified by:
getTextureData
in interfacesaf.v3d.scene.TextureRenderable
-
transform
public org.jogamp.vecmath.Point3f transform(org.jogamp.vecmath.Point3f pt)
- Overrides:
transform
in classsaf.v3d.scene.VSpatial
-
getChild
public saf.v3d.scene.VSpatial getChild()
Gets the VSpatial that this wraps.- Returns:
- the VSpatial that this wraps.
-
setChild
public void setChild(saf.v3d.scene.VSpatial child)
Sets the VSpatial that this wraps.- Parameters:
child
-
-
getLocalScale
public float getLocalScale()
- Overrides:
getLocalScale
in classsaf.v3d.scene.VSpatial
-
draw
public void draw(com.jogamp.opengl.GL2 gl, saf.v3d.render.RenderState state)
- Overrides:
draw
in classsaf.v3d.scene.VSpatial
-
updateWorldTransformation
public void updateWorldTransformation()
- Overrides:
updateWorldTransformation
in classsaf.v3d.scene.VComposite
-
doGetBoundingSphere
protected saf.v3d.picking.BoundingSphere doGetBoundingSphere()
- Overrides:
doGetBoundingSphere
in classsaf.v3d.scene.VComposite
-
getLocalBoundingSphere
public saf.v3d.picking.BoundingSphere getLocalBoundingSphere()
- Overrides:
getLocalBoundingSphere
in classsaf.v3d.scene.VSpatial
-
intersects
public void intersects(org.jogamp.vecmath.Point3f point, saf.v3d.picking.Accumulator accumulator)
- Overrides:
intersects
in classsaf.v3d.scene.VComposite
-
intersects
public void intersects(org.jogamp.vecmath.Point3f rayOrigin, org.jogamp.vecmath.Vector3f rayDirection, saf.v3d.picking.Accumulator accumulator)
- Overrides:
intersects
in classsaf.v3d.scene.VComposite
-
-