|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jreality.geometry.AbstractGeometryFactory
de.jreality.geometry.ParametricSurfaceFactory
public class ParametricSurfaceFactory
This factory specializes the QuadMeshFactory
further, replacing the explicit definition of the
vertex coordinates with a functional definition. The constructor for this factory
requires a class that implements ParametricSurfaceFactory.Immersion
. To implement this interface for a map
of two variables into three space extend the abstract class ParametricSurfaceFactory.DefaultImmersion
.
The domain of the immersion is a rectangle in (u,v) space specified by the four methods setUMin(double)
, setUMax(double)
, etc.
The number of samples in each direction is specified using the methods inherited from QuadMeshFactory
: AbstractQuadMeshFactory.setULineCount(int)
, etc.
For an example, see this tutorial.
Nested Class Summary | |
---|---|
static class |
ParametricSurfaceFactory.DefaultImmersion
An abstract implementation of the interface Immersion for
a map of two variables into 3-space. |
static interface |
ParametricSurfaceFactory.Immersion
Represents a map of two variables into n--dimensional space. |
Constructor Summary | |
---|---|
ParametricSurfaceFactory()
|
|
ParametricSurfaceFactory(ParametricSurfaceFactory.Immersion immersion)
|
Methods inherited from class de.jreality.geometry.AbstractGeometryFactory |
---|
getGeometry, getMetric, setMetric, update |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParametricSurfaceFactory(ParametricSurfaceFactory.Immersion immersion)
public ParametricSurfaceFactory()
Method Detail |
---|
public double[][] getDomainVertices(double[][] uvpoints)
public double[][] getDomainVertices(double[][] uvpoints, boolean offset)
public ParametricSurfaceFactory.Immersion getImmersion()
public void setImmersion(ParametricSurfaceFactory.Immersion f)
public double getUMax()
public void setUMax(double max)
public double getUMin()
public void setUMin(double min)
public double getVMax()
public void setVMax(double max)
public double getVMin()
public void setVMin(double min)
public void setVertexCount(int count)
public void setFaceCount(int count)
public void setFaceAttribute(Attribute attr, DataList data)
public int getULineCount()
public int getVLineCount()
public void setULineCount(int newU)
public void setVLineCount(int newV)
public boolean isClosedInUDirection()
public boolean isClosedInVDirection()
public void setClosedInUDirection(boolean close)
public void setClosedInVDirection(boolean close)
public boolean isGenerateTextureCoordinates()
public void setGenerateTextureCoordinates(boolean generateTextureCoordinates)
public double getUTextureScale()
public void setUTextureScale(double textureScale)
public double getVTextureScale()
public void setVTextureScale(double textureScale)
public double getUTextureShift()
public void setUTextureShift(double textureShift)
public double getVTextureShift()
public void setVTextureShift(double textureShift)
public boolean isEdgeFromQuadMesh()
public void setEdgeFromQuadMesh(boolean b)
public IndexedFaceSet getIndexedFaceSet()
public boolean isGenerateEdgesFromFaces()
public void setGenerateEdgesFromFaces(boolean generateEdgesFromFaces)
public boolean isGenerateVertexNormals()
public void setGenerateVertexNormals(boolean generateVertexNormals)
public boolean isGenerateFaceNormals()
public void setGenerateFaceNormals(boolean generateFaceNormals)
public boolean isGenerateFaceLabels()
public void setGenerateFaceLabels(boolean generateFaceLabels)
public boolean isGenerateAABBTree()
public void setGenerateAABBTree(boolean generate)
public int getEdgeCount()
public int getLineCount()
setEdgeCount(int)
.
public void setLineCount(int count)
setEdgeCount(int)
.
public IndexedLineSet getIndexedLineSet()
public boolean isGenerateEdgeLabels()
public void setGenerateEdgeLabels(boolean generateEdgeLabels)
public int getVertexCount()
public PointSet getPointSet()
public boolean isGenerateVertexLabels()
public void setGenerateVertexLabels(boolean generateVertexLabels)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |