public class TinRenderingUtility extends Object
| Constructor and Description |
|---|
TinRenderingUtility() |
| Modifier and Type | Method and Description |
|---|---|
static void |
drawTin(org.tinfour.common.IIncrementalTin tin,
int width,
int height,
File file)
Provides a convenience method for rendering a TIN and writing the
results to an image file
|
AffineTransform |
initTransform(int width,
int height,
double x0,
double x1,
double y0,
double y1)
Initializes an affine transform for Cartesian coordinates
from a TIN to pixel coordinates for rendering an image.
|
public AffineTransform initTransform(int width, int height, double x0, double x1, double y0, double y1)
width - the width of the output imageheight - the height of the output imagex0 - the x coordinate of the left side of the data areax1 - the x coordinate of the right side of the data areay0 - the y coordinate of the lower side of the data areay1 - the y coordinate of the upper side of the data areapublic static void drawTin(org.tinfour.common.IIncrementalTin tin,
int width,
int height,
File file)
throws IOException
tin - a valid TIN.width - the width of the output imageheight - the height of the output imagefile - the file for outputIOException - in the event of an unsuccessful write operationCopyright © 2019. All rights reserved.