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 Details

    • centre

      protected Point3d centre
    • firstFrame

      protected int firstFrame
    • lastFrame

      protected int lastFrame
  • Constructor Details

    • Object3dAdaptor

      public Object3dAdaptor()
  • Method Details

    • id

      public java.lang.String id()
      Specified by:
      id in interface Object3d
    • setCentre

      public void setCentre​(Point3d c)
      Specified by:
      setCentre in interface Object3d
    • centre

      public Point3d centre()
      Specified by:
      centre in interface Object3d
    • setFirstFrame

      public void setFirstFrame​(int f)
      Specified by:
      setFirstFrame in interface Object3d
    • getFirstFrame

      public int getFirstFrame()
      Specified by:
      getFirstFrame in interface Object3d
    • setLastFrame

      public void setLastFrame​(int f)
      Specified by:
      setLastFrame in interface Object3d
    • getLastFrame

      public int getLastFrame()
      Specified by:
      getLastFrame in interface Object3d
    • select

      public void select​(int n)
      Specified by:
      select in interface Object3d
    • getSelectFrame

      public int getSelectFrame()
      Specified by:
      getSelectFrame in interface Object3d
    • visible

      public boolean visible​(int frame)
      Description copied from interface: Object3d
      Is this object visible in specified frame ?
      Specified by:
      visible in interface Object3d
    • depthBias

      public double depthBias​(View3d v)
      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
      Specified by:
      depthBias in interface Object3d
    • getColorIndex

      public int getColorIndex​(View3d v, int col)
    • render

      public void render​(View3d v)
      Description copied from interface: Object3d
      render this object3d
      Specified by:
      render in interface Object3d
    • transform

      public void transform​(au.edu.unsw.cse.Matrix3D T)
      Specified by:
      transform in interface Object3d
    • 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

      public java.lang.String toVRMLBody​(VRMLState v)
    • toVRML

      public void toVRML​(VRMLState v)
      Description copied from interface: Object3d
      turn into VRML
      Specified by:
      toVRML in interface Object3d