Class IsoSurface
- java.lang.Object
-
- org.noise_planet.noisemodelling.jdbc.utils.IsoSurface
-
public class IsoSurface extends Object
Create isosurfaces- Author:
- Nicolas Fortin, Université Gustave Eiffel
-
-
Field Summary
Fields Modifier and Type Field Description static List<Double>NF31_133_ISO
-
Constructor Summary
Constructors Constructor Description IsoSurface(List<Double> isoLevels, int srid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateTable(Connection connection)voidcreateTable(Connection connection, String pkField)doublegetEpsilon()StringgetOutputTable()StringgetPointTable()StringgetPointTableField()doublegetSmoothCoefficient()StringgetTriangleTable()booleanisMergeTriangles()voidsetEpsilon(double epsilon)voidsetIsoLabels(List<String> isoLabels)voidsetMergeTriangles(boolean mergeTriangles)voidsetOutputTable(String outputTable)voidsetPointTable(String pointTable)Point table where primary key is referenced by triangle table PK_1, PK_2, PK_3voidsetPointTableField(String pointTableField)voidsetSmooth(boolean smooth)voidsetSmoothCoefficient(double smoothCoefficient)voidsetTriangleTable(String triangleTable)Triangle table with fields THE_GEOM, PK_1, PK_2, PK_3, CELL_ID
-
-
-
Method Detail
-
setSmooth
public void setSmooth(boolean smooth)
- Parameters:
smooth- If true smooth generated polygons
-
getSmoothCoefficient
public double getSmoothCoefficient()
-
isMergeTriangles
public boolean isMergeTriangles()
- Returns:
- True if triangles will be merged using isolevel attribute
-
setMergeTriangles
public void setMergeTriangles(boolean mergeTriangles)
- Parameters:
mergeTriangles- True if triangles will be merged using isolevel attribute, Z ordinate will be lost
-
setSmoothCoefficient
public void setSmoothCoefficient(double smoothCoefficient)
- Parameters:
smoothCoefficient- Coefficient of polygons smoothing [0-1]
-
setEpsilon
public void setEpsilon(double epsilon)
- Parameters:
epsilon- Merge distance of polygons vertices
-
getEpsilon
public double getEpsilon()
-
getPointTableField
public String getPointTableField()
-
setPointTableField
public void setPointTableField(String pointTableField)
- Parameters:
pointTableField- Field with level in dB(A)
-
getPointTable
public String getPointTable()
-
setPointTable
public void setPointTable(String pointTable)
Point table where primary key is referenced by triangle table PK_1, PK_2, PK_3- Parameters:
pointTable- table name
-
getTriangleTable
public String getTriangleTable()
-
setTriangleTable
public void setTriangleTable(String triangleTable)
Triangle table with fields THE_GEOM, PK_1, PK_2, PK_3, CELL_ID
-
getOutputTable
public String getOutputTable()
-
setOutputTable
public void setOutputTable(String outputTable)
-
createTable
public void createTable(Connection connection) throws SQLException
- Parameters:
connection-- Throws:
SQLException
-
createTable
public void createTable(Connection connection, String pkField) throws SQLException
- Parameters:
connection-pkField- Field name in point table to join with Triangle table and point table- Throws:
SQLException
-
-