de.jreality.geometry
Class AbstractGeometryFactory

java.lang.Object
  extended by de.jreality.geometry.AbstractGeometryFactory
All Implemented Interfaces:
GeometryFactory
Direct Known Subclasses:
AbstractPointSetFactory

public class AbstractGeometryFactory
extends Object
implements GeometryFactory

The grandfather of all the jReality geometry factories.

Allows user to set the ambient metric via setMetric(int).

And provides most general get method with getGeometry().

This class writes itself into the associated Geometry using the call:

 geometry.setGeometryAttributes(GeometryUtility.FACTORY, this);
 
so that later users of geometry can access the factory and use it for editing, etc.

For an introduction to how the factories work, see PointSetFactory.

Author:
gunn

Method Summary
 Geometry getGeometry()
           
 int getMetric()
           
 void setMetric(int metric)
           
 void update()
          This method is the API method for updating the geometry factory.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getGeometry

public Geometry getGeometry()
Specified by:
getGeometry in interface GeometryFactory

getMetric

public int getMetric()

setMetric

public void setMetric(int metric)

update

public void update()
This method is the API method for updating the geometry factory.

Specified by:
update in interface GeometryFactory