Package au.edu.unsw.cse
Class Point3dObject3d
java.lang.Object
au.edu.unsw.cse.Point3d
au.edu.unsw.cse.Point3dObject3d
- All Implemented Interfaces:
Object3d
public class Point3dObject3d extends Point3d implements Object3d
A Point3d that is also an Object 3d so that it can be rendered
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Point3dObject3d(Point3d p)
Point3dObject3d(Point3d p, int frame)
-
Method Summary
Modifier and Type Method Description Point3d
centre()
double
depthBias(View3d v)
Depth bias - used to adjust depth in depth sort so that front facing faces appear in front of back facesint
getFirstFrame()
int
getLastFrame()
int
getSelectFrame()
java.lang.String
id()
void
render(View3d v)
render this object3dvoid
select(int n)
void
setCentre(Point3d c)
void
setFirstFrame(int f)
void
setLastFrame(int f)
void
toVRML(VRMLState state)
turn into VRMLvoid
transform(au.edu.unsw.cse.Matrix3D T)
boolean
visible(int frame)
Is this object visible in specified frame ?Methods inherited from class au.edu.unsw.cse.Point3d
add, cross, dot, fromCylindrical, fromSpherical, fromString, length, normalize, r, random, randomGaussian, randomInCircle, randomInSphere, randomOnCircle, randomOnSphere, scale, scale, setSeed, subtract, theta, toString, toVRML, x, y, z
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
Point3dObject3d
-
Point3dObject3d
-
-
Method Details
-
id
public java.lang.String id() -
setCentre
-
centre
-
setFirstFrame
public void setFirstFrame(int f)- Specified by:
setFirstFrame
in interfaceObject3d
-
setLastFrame
public void setLastFrame(int f)- Specified by:
setLastFrame
in interfaceObject3d
-
select
public void select(int n) -
getSelectFrame
public int getSelectFrame()- Specified by:
getSelectFrame
in interfaceObject3d
-
getFirstFrame
public int getFirstFrame()- Specified by:
getFirstFrame
in interfaceObject3d
-
getLastFrame
public int getLastFrame()- Specified by:
getLastFrame
in interfaceObject3d
-
visible
public boolean visible(int frame)Description copied from interface:Object3d
Is this object visible in specified frame ? -
depthBias
Description copied from interface:Object3d
Depth bias - used to adjust depth in depth sort so that front facing faces appear in front of back faces -
render
Description copied from interface:Object3d
render this object3d -
transform
public void transform(au.edu.unsw.cse.Matrix3D T) -
toVRML
Description copied from interface:Object3d
turn into VRML
-