src.gov.nasa.worldwind.ogc.collada.ColladaInstanceVisualScene Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of worldwindx Show documentation
Show all versions of worldwindx Show documentation
World Wind is a collection of components that interactively display 3D geographic information within Java applications or applets.
/*
* Copyright (C) 2012 United States Government as represented by the Administrator of the
* National Aeronautics and Space Administration.
* All Rights Reserved.
*/
package gov.nasa.worldwind.ogc.collada;
import gov.nasa.worldwind.geom.Box;
import gov.nasa.worldwind.ogc.collada.impl.*;
import gov.nasa.worldwind.render.DrawContext;
/**
* Represents the COLLADA instance_visual_scene element and provides access to its contents.
*
* @author pabercrombie
* @version $Id: ColladaInstanceVisualScene.java 1696 2013-10-31 18:46:55Z tgaskins $
*/
public class ColladaInstanceVisualScene extends ColladaAbstractInstance implements ColladaRenderable
{
public ColladaInstanceVisualScene(String ns)
{
super(ns);
}
@Override
public Box getLocalExtent(ColladaTraversalContext tc)
{
ColladaVisualScene instance = this.get();
return instance != null ? instance.getLocalExtent(tc) : null;
}
/** {@inheritDoc} Renders the target of the instance pointer, if the target can be resolved. */
public void preRender(ColladaTraversalContext tc, DrawContext dc)
{
ColladaVisualScene instance = this.get();
if (instance != null)
instance.preRender(tc, dc);
}
/** {@inheritDoc} Renders the target of the instance pointer, if the target can be resolved. */
public void render(ColladaTraversalContext tc, DrawContext dc)
{
ColladaVisualScene instance = this.get();
if (instance != null)
instance.render(tc, dc);
}
}