Package au.edu.unsw.cse
Class Object3dAdaptor
java.lang.Object
au.edu.unsw.cse.Object3dAdaptor
- All Implemented Interfaces:
Object3d
- Direct Known Subclasses:
Axes
,Cube
,Edge3d
,Object3dList
,Points3d
,Polygon3d
,QuadMesh3d
,Site3d
,Triangle3d
public class Object3dAdaptor extends java.lang.Object implements Object3d
Adaptor class for Object3d - provides default implementation for all the methods
-
Field Summary
Fields Modifier and Type Field Description protected Point3d
centre
protected int
firstFrame
protected int
lastFrame
-
Constructor Summary
Constructors Constructor Description Object3dAdaptor()
-
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
getColorIndex(View3d v, int col)
int
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 v)
turn into VRMLjava.lang.String
toVRMLBody(VRMLState v)
void
transform(au.edu.unsw.cse.Matrix3D T)
boolean
visible(int frame)
Is this object visible in specified frame ?java.lang.String
vrmlPROTO()
java.lang.String
vrmlPROTOBody()
java.lang.String
vrmlPROTOExtraFields()
java.lang.String
vrmlPROTOFields()
java.lang.String
vrmlPROTOINBody()
java.lang.String
vrmlPROTOINFields()
java.lang.String[]
vrmlPROTOMaterials()
java.lang.String
vrmlPROTOName()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
centre
-
firstFrame
protected int firstFrame -
lastFrame
protected int lastFrame
-
-
Constructor Details
-
Object3dAdaptor
public Object3dAdaptor()
-
-
Method Details
-
id
public java.lang.String id() -
setCentre
-
centre
-
setFirstFrame
public void setFirstFrame(int f)- Specified by:
setFirstFrame
in interfaceObject3d
-
getFirstFrame
public int getFirstFrame()- Specified by:
getFirstFrame
in interfaceObject3d
-
setLastFrame
public void setLastFrame(int f)- Specified by:
setLastFrame
in interfaceObject3d
-
getLastFrame
public int getLastFrame()- Specified by:
getLastFrame
in interfaceObject3d
-
select
public void select(int n) -
getSelectFrame
public int getSelectFrame()- Specified by:
getSelectFrame
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 -
getColorIndex
-
render
Description copied from interface:Object3d
render this object3d -
transform
public void transform(au.edu.unsw.cse.Matrix3D T) -
vrmlPROTO
public java.lang.String vrmlPROTO() -
vrmlPROTOName
public java.lang.String vrmlPROTOName() -
vrmlPROTOINFields
public java.lang.String vrmlPROTOINFields() -
vrmlPROTOINBody
public java.lang.String vrmlPROTOINBody() -
vrmlPROTOExtraFields
public java.lang.String vrmlPROTOExtraFields() -
vrmlPROTOFields
public java.lang.String vrmlPROTOFields() -
vrmlPROTOMaterials
public java.lang.String[] vrmlPROTOMaterials() -
vrmlPROTOBody
public java.lang.String vrmlPROTOBody() -
toVRMLBody
-
toVRML
Description copied from interface:Object3d
turn into VRML
-