aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2012-06-26 23:43:52 -0700
committerHarvey Harrison <[email protected]>2012-06-26 23:43:52 -0700
commitf5a734ce3ca680dbdc4862f3004aa0639271c348 (patch)
treed34dbee968d3761dbe777015991b21afed56a7bd
parentfa58e4791e07014cdc62815d9c8326885bf3a4e1 (diff)
j3dcore: GeometryAtom.source is a Shape3DRetained, remove unneeded casts
Signed-off-by: Harvey Harrison <[email protected]>
-rw-r--r--src/classes/share/javax/media/j3d/RenderingEnvironmentStructure.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/classes/share/javax/media/j3d/RenderingEnvironmentStructure.java b/src/classes/share/javax/media/j3d/RenderingEnvironmentStructure.java
index 338edff..6c5a001 100644
--- a/src/classes/share/javax/media/j3d/RenderingEnvironmentStructure.java
+++ b/src/classes/share/javax/media/j3d/RenderingEnvironmentStructure.java
@@ -741,8 +741,8 @@ private int processLights(ArrayList<LightRetained> globalLights, RenderAtom ra,
if (light.lightOn && light.switchState.currentSwitchOn &&
(ra.geometryAtom.source.inBackgroundGroup || bounds.intersect(light.region))){
// Get the mirror Shape3D node
- n = ((Shape3DRetained)ra.geometryAtom.source).numlights;
- shapeScopedLt = ((Shape3DRetained)ra.geometryAtom.source).lights;
+ n = ra.geometryAtom.source.numlights;
+ shapeScopedLt = ra.geometryAtom.source.lights;
// System.err.println("numLights per shape= "+n);
// scoped Fog/light is kept in the original
@@ -831,8 +831,8 @@ FogRetained getInfluencingFog(RenderAtom ra, View view) {
// Note : There is no enable check for fog
if (fog.region != null && fog.switchState.currentSwitchOn &&
(ra.geometryAtom.source.inBackgroundGroup || fog.region.intersect(bounds))) {
- n = ((Shape3DRetained)ra.geometryAtom.source).numfogs;
- shapeScopedFog = ((Shape3DRetained)ra.geometryAtom.source).fogs;
+ n = ra.geometryAtom.source.numfogs;
+ shapeScopedFog = ra.geometryAtom.source.fogs;
if (fog.isScoped) {
for (k = 0; k < n; k++) {
@@ -904,8 +904,8 @@ int processModelClips(ArrayList<ModelClipRetained> globalModelClips, RenderAtom
if (modelClip.enableFlag == true &&
modelClip.region != null && modelClip.switchState.currentSwitchOn) {
if (modelClip.region.intersect(bounds) == true) {
- n = ((Shape3DRetained)ra.geometryAtom.source).numModelClips;
- shapeScopedModelClip = ((Shape3DRetained)ra.geometryAtom.source).modelClips;
+ n = ra.geometryAtom.source.numModelClips;
+ shapeScopedModelClip = ra.geometryAtom.source.modelClips;
if (modelClip.isScoped) {
for (k = 0; k < n; k++) {
@@ -1386,8 +1386,8 @@ int processModelClips(ArrayList<ModelClipRetained> globalModelClips, RenderAtom
// Note : There is no enable check for fog
if (altApp.region != null && altApp.switchState.currentSwitchOn) {
if (altApp.region.intersect(bounds) == true) {
- n = ((Shape3DRetained)ra.geometryAtom.source).numAltApps;
- shapeScopedAltApp = ((Shape3DRetained)ra.geometryAtom.source).altApps;
+ n = ra.geometryAtom.source.numAltApps;
+ shapeScopedAltApp = ra.geometryAtom.source.altApps;
if (altApp.isScoped) {
for (k = 0; k < n; k++) {
// then check if the light is scoped to