类 TriangleTessellator
- java.lang.Object
-
- org.meteoinfo.chart.jogl.tessellator.TriangleTessellator
-
public class TriangleTessellator extends java.lang.Object
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 classTriangleTessellator.TesselationExceptionstatic interfaceTriangleTessellator.TessellatorListener
-
构造器概要
构造器 构造器 说明 TriangleTessellator()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.util.List<Triangle>getTriangles(org.meteoinfo.geometry.shape.PolygonZ polygon)Tessellate a shape, transform it to a set of triangles.voidgetTriangles(org.meteoinfo.geometry.shape.PolygonZ polygon, TriangleTessellator.TessellatorListener listener)Tessellates a shape that is, tiling of the shape in a pattern of triangles that fills the shape with no overlaps and no gaps.protected voidsendError(java.lang.String message)protected voidsendSuccess()
-
-
-
方法详细资料
-
getTriangles
public java.util.List<Triangle> getTriangles(org.meteoinfo.geometry.shape.PolygonZ polygon) throws TriangleTessellator.TesselationException
Tessellate a shape, transform it to a set of triangles. This method locks until rendering is completed.- 参数:
shape- The shape to tessellate.hole- Shape of the hole in the tessellation (optional).- 返回:
- A list of triangles that constitutes the shape.
- 抛出:
TriangleTessellator.TesselationException- ThrowsTriangleTessellator.TesselationExceptionif the tessellation was unsuccessful, most commonly due to ambiguous shapes
-
getTriangles
public void getTriangles(org.meteoinfo.geometry.shape.PolygonZ polygon, TriangleTessellator.TessellatorListener listener)Tessellates a shape that is, tiling of the shape in a pattern of triangles that fills the shape with no overlaps and no gaps. Returns a set of triangles to the givenTriangleTessellator.TessellatorListenerwhenever done.- 参数:
shape- The shape to tessellate.hole- Shape of the hole in the tessellation (optional).listener- Instance ofTriangleTessellator.TessellatorListenerthat will be invoked whenever tessellation is done or fails.
-
sendSuccess
protected void sendSuccess()
-
sendError
protected void sendError(java.lang.String message)
-
-