Package org.tinfour.voronoi
Class BoundedVoronoiBuildOptions
- java.lang.Object
-
- org.tinfour.voronoi.BoundedVoronoiBuildOptions
-
public class BoundedVoronoiBuildOptions extends Object
Specifies options for building a bounded Voronoi Diagram
-
-
Field Summary
Fields Modifier and Type Field Description protected Rectangle2Dboundsprotected booleanenableAutomaticColorAssignment
-
Constructor Summary
Constructors Constructor Description BoundedVoronoiBuildOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenableAutomaticColorAssignment(boolean status)Enable the automatic assignment of color values to input vertices.voidsetBounds(Rectangle2D bounds)Sets the bounds for the Bounded Voronoi Diagram.
-
-
-
Field Detail
-
bounds
protected Rectangle2D bounds
-
enableAutomaticColorAssignment
protected boolean enableAutomaticColorAssignment
-
-
Method Detail
-
setBounds
public void setBounds(Rectangle2D bounds)
Sets the bounds for the Bounded Voronoi Diagram. The domain of a true Voronoi Diagram is the entire coordinate plane. For practical purposes the bounded Voronoi Diagram class limits the bounds to a finite domain. By default, the constructor will create bounds that are slightly larger than the bounds of the input sample data set. However, if an application has a specific need, it can specify an alternate bounds.Note: The alternate bounds must be at least as large as the size of the sample data set.
- Parameters:
bounds- a valid rectangle.
-
enableAutomaticColorAssignment
public void enableAutomaticColorAssignment(boolean status)
Enable the automatic assignment of color values to input vertices.- Parameters:
status- true if automatic coloring is enabled; otherwise false.
-
-