|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jreality.geometry.AbstractGeometryFactory
public class AbstractGeometryFactory
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:
so that later users of geometry can access the factory and use it for editing, etc.
geometry.setGeometryAttributes(GeometryUtility.FACTORY, this);
For an introduction to how the factories work, see PointSetFactory
.
Method Summary | |
---|---|
Geometry |
getGeometry()
|
int |
getMetric()
|
void |
setMetric(int metric)
|
static void |
setStoreFactory(boolean b)
Set this to true in order to store the factory as an attribute of the associated geometry for every newly constructed instance of AbstractGeometryFactory . |
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 |
---|
public static void setStoreFactory(boolean b)
AbstractGeometryFactory
. Default is false.
Warning: Use this feature carefully; it may lead to excessive memory usage
b
- public Geometry getGeometry()
getGeometry
in interface GeometryFactory
public int getMetric()
public void setMetric(int metric)
public void update()
update
in interface GeometryFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |