Class GObject

java.lang.Object
com.j3d.engine.react.events.EventEmitter
com.j3d.engine.scene.nodes.geometry.GObject
All Implemented Interfaces:
EventEmitterInterface, EventListener, CanCopy, SceneObject, HasProperties
Direct Known Subclasses:
GCurve, GLine, GPoint, GTri

public abstract class GObject extends EventEmitter implements EventListener, CanCopy, SceneObject
Graphics Object is an abstract class that represents any actual tangible Geometry in the 3d space (Cartesian space) that a user can see and interact with. This only has 3 extenders, GPoint, GLine and GTri as these form the base objects and cannot be broken down further.

Any GObject also has event listening and emitting capabilities as an extender of EventEmitter and an implementor of EventListener. It is up to the child classes to decide which events it wants to listen to or emit.

Author:
Lehlogonolo Poole
See Also:
  • Field Details

    • col

      protected Color col
    • pivot

      private Vector3 pivot
      The pivot point of this geometry. Unless a GPoint where this represents the actual location of the point.
    • Id

      private UUID Id
      A Unique UUID to identify this geometry.
    • properties

      protected ArrayList<Property<?,?>> properties
    • pivotProperty

      protected Property<Vector3,GObject> pivotProperty
  • Constructor Details

    • GObject

      public GObject()
      Default Constructor.
    • GObject

      public GObject(Color colour)
      Default Constructor. with color
      Parameters:
      colour - The colour.
  • Method Details