|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmaspack.render.RenderableUtils
public class RenderableUtils
Provides utility routines for Renderable objects.
Constructor Summary | |
---|---|
RenderableUtils()
|
Method Summary | |
---|---|
static void |
cloneRenderProps(Renderable r)
Sets the RenderProps of a Renderable object to a copy of its existing RenderProps. |
static void |
getBounds(Renderable r,
Point3d min,
Point3d max)
Computes the bounds for a Renderable. |
static double |
getRadius(GLRenderable r)
Returns a "radius" for a Renderable. |
static double |
getRadiusAndCenter(Point3d center,
GLRenderable r)
Returns a "radius" and a center for a Renderable. |
static boolean |
isVisible(HasRenderProps renderable)
Returns true if a Renderable is visible. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RenderableUtils()
Method Detail |
---|
public static boolean isVisible(HasRenderProps renderable)
public static void cloneRenderProps(Renderable r)
getRenderProps
returns null
),
then this method does nothing.
This routine is used to prevent side-effects when the existing RenderProps are shared by more than one object.
r
- Renderable objects whose RenderProps are to be cloned.public static double getRadius(GLRenderable r)
public static double getRadiusAndCenter(Point3d center, GLRenderable r)
public static void getBounds(Renderable r, Point3d min, Point3d max)
r
- Renderable to compute bounds formin
- minimum coordinate values (optional)max
- maximum coordinate values (optional)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |