类 PrimitiveTessellator
- java.lang.Object
-
- org.meteoinfo.chart.jogl.tessellator.PrimitiveTessellator
-
public class PrimitiveTessellator extends java.lang.Object
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 classPrimitiveTessellator.TesselationExceptionstatic interfacePrimitiveTessellator.TessellatorListener
-
构造器概要
构造器 构造器 说明 PrimitiveTessellator()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.util.List<Primitive>getPrimitives(org.meteoinfo.geometry.shape.PolygonZ polygon)Tessellate a shape, transform it to a set of triangles.voidgetPrimitives(org.meteoinfo.geometry.shape.PolygonZ polygon, PrimitiveTessellator.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()
-
-
-
方法详细资料
-
getPrimitives
public java.util.List<Primitive> getPrimitives(org.meteoinfo.geometry.shape.PolygonZ polygon) throws PrimitiveTessellator.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.
- 抛出:
PrimitiveTessellator.TesselationException- ThrowsPrimitiveTessellator.TesselationExceptionif the tessellation was unsuccessful, most commonly due to ambiguous shapes
-
getPrimitives
public void getPrimitives(org.meteoinfo.geometry.shape.PolygonZ polygon, PrimitiveTessellator.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 givenPrimitiveTessellator.TessellatorListenerwhenever done.- 参数:
shape- The shape to tessellate.hole- Shape of the hole in the tessellation (optional).listener- Instance ofPrimitiveTessellator.TessellatorListenerthat will be invoked whenever tessellation is done or fails.
-
sendSuccess
protected void sendSuccess()
-
sendError
protected void sendError(java.lang.String message)
-
-