ArrangementOutputFormatter

A model for the ArrangementOutputFormatter concept supports a set of functions that enable writing an arrangement to an output stream using a specific format.

Types

ArrangementOutputFormatter::Arrangement_2
the type of arrangement to output.

typedef typename Arrangement_2::Point_2
Point_2; the point type.
typedef typename Arrangement_2::X_monotone_curve_2
X_monotone_curve_2; the x-monotone curve type.

typedef typename Arrangement_2::Size
Size;
typedef typename Arrangement_2::Vertex_const_handle
Vertex_const_handle;
typedef typename Arrangement_2::Halfedge_const_handle
Halfedge_const_handle;
typedef typename Arrangement_2::Face_const_handle
Face_const_handle;

Creation

ArrangementOutputFormatter outf;
default constructor.


ArrangementOutputFormatter outf ( std::ostream& os);
constructs a formatter that writes to os.

void outf.set_out ( std::ostream& os) directs outf to write to os.

Access Functions

std::ostream& outf.out () returns the stream that outf writes to.
Precondition: outf is directed to a valid output stream.

Formatted Output Functions

void outf.write_arrangement_begin () writes a message indicating the beginning of the arrangement.
void outf.write_arrangement_end () writes a message indicating the end of the arrangement.

void outf.write_size ( const char *label, Size size)
writes a size value, preceeded by a given label.

void outf.write_vertices_begin () writes a message indicating the beginning of the vertex records.
void outf.write_vertices_end () writes a message indicating the end of the vertex records.

void outf.write_edges_begin () writes a message indicating the beginning of the edge records.
void outf.write_edges_end () writes a message indicating the end of the edge records.

void outf.write_faces_begin () writes a message indicating the beginning of the face records.
void outf.write_faces_end () writes a message indicating the end of the face records.

void outf.write_vertex_begin () writes a message indicating the beginning of a single vertex record.
void outf.write_vertex_end () writes a message indicating the end of a single vertex record.

void outf.write_vertex_index ( std::size_t idx)
writes a vertex index.

void outf.write_point ( Point_2 p) writes a point.

void outf.write_vertex_data ( Vertex_const_handle v)
writes the auxiliary data associated with the vertex.

void outf.write_edge_begin () writes a message indicating the beginning of a single edge record.
void outf.write_edge_end () writes a message indicating the end of a single edge record.

void outf.write_halfedge_index ( std::size_t idx)
writes a halfedge index.

void outf.write_x_monotone_curve ( X_monotone_curve_2 c)
writes an x-monotone curve.

void outf.write_halfegde_data ( Halfedge_const_handle he)
writes the auxiliary data associated with the halfedge.

void outf.write_face_begin () writes a message indicating the beginning of a single face record.
void outf.write_face_end () writes a message indicating the end of a single face record.

void outf.write_outer_ccb_begin () writes a message indicating the beginning of the outer CCB of the current face.
void outf.write_outer_ccb_end () writes a message indicating the end of the outer CCB of the current face.

void outf.write_holes_begin () writes a message indicating the beginning of the container of holes inside the current face.
void outf.write_holes_end () writes a message indicating the end of the container of holes inside the current face.

void outf.write_ccb_halfedges_begin () writes a message indicating the beginning a connected component's boundary.
void outf.write_ccb_halfedges_end () writes a message indicating the end of a connected component's boundary.

void outf.write_isolated_vertices_begin ()
writes a message indicating the beginning of the container of isolated vertices inside the current face.
void outf.write_isolated_vertices_end ()
writes a message indicating the end of the container of isolated vertices inside the current face.

void outf.write_face_data ( Face_const_handle f)
writes the auxiliary data associated with the face.

Has Models

Arr_text_formatter<Arrangement>
Arr_face_extended_text_formatter<Arrangement>
Arr_extended_dcel_text_formatter<Arrangement>