public class TextBoundaryWriteHandler3D extends AbstractTextBoundaryWriteHandler3D
BoundaryWriteHandler3D
implementation for the non-standard TXT
format. Output is
written using the UTF-8 charset by default.BoundaryWriteHandler3D
,
TextFacetDefinitionWriter
Constructor and Description |
---|
TextBoundaryWriteHandler3D() |
Modifier and Type | Method and Description |
---|---|
protected TextFacetDefinitionWriter |
getFacetDefinitionWriter(GeometryOutput out)
Get a configured
TextFacetDefinitionWriter for writing output. |
int |
getFacetVertexCount()
Get the number of vertices required per facet or
-1 if no specific
number is required. |
GeometryFormat |
getFormat() |
String |
getVertexComponentSeparator()
Get the string used to separate vertex components (ie, individual x, y, z values).
|
String |
getVertexSeparator()
Get the string used to separate facet vertices.
|
void |
setFacetVertexCount(int vertexCount)
Set the number of vertices required per facet.
|
void |
setVertexComponentSeparator(String sep)
Set the string used to separate vertex components (ie, individual x, y, z values).
|
void |
setVertexSeparator(String sep)
Set the string used to separate facet vertices.
|
getDefaultCharset, getDoubleFormat, getLineSeparator, setDefaultCharset, setDoubleFormat, setLineSeparator, write, writeFacets
write, writeFacets
public TextBoundaryWriteHandler3D()
public String getVertexComponentSeparator()
TextFacetDefinitionWriter.getVertexComponentSeparator()
public void setVertexComponentSeparator(String sep)
sep
- string used to separate vertex componentsTextFacetDefinitionWriter.setVertexComponentSeparator(String)
public String getVertexSeparator()
TextFacetDefinitionWriter.getVertexSeparator()
public void setVertexSeparator(String sep)
sep
- string used to separate facet verticesTextFacetDefinitionWriter.setVertexSeparator(String)
public int getFacetVertexCount()
-1
if no specific
number is required.-1
if any geometricallly
valid number is allowed (ie, any number greater than or equal to 3)TextFacetDefinitionWriter.getFacetVertexCount()
public void setFacetVertexCount(int vertexCount)
-1
to allow any geometrically valid number of vertices
(ie, any number greater than or equal to 3).vertexCount
- number of vertices required per facet or -1
to allow any numberTextFacetDefinitionWriter.setFacetVertexCount(int)
public GeometryFormat getFormat()
protected TextFacetDefinitionWriter getFacetDefinitionWriter(GeometryOutput out)
TextFacetDefinitionWriter
for writing output.getFacetDefinitionWriter
in class AbstractTextBoundaryWriteHandler3D
out
- output stream to write toCopyright © 2016–2021 The Apache Software Foundation. All rights reserved.