begin of advanced section  advanced  begin of advanced section

CGAL::Pm_file_scanner<Planar_map>

Definition

The Pm_file_scanner<Planar_map> class is inherited from the File_header class. This class contains functions for reading the Planar map components from a given input stream. Users have to make sure that methods for reading Point_2 and X_curve_2 defined in the Planar map traits class are provided when using the input stream they choose to work with. This class is templated with Planar map, and hence the user can work with Pm_file_scanner<Planar_map> with its own Planar map.

Types

Pm_file_scanner<Planar_map>::Traits
Representation of a bounded curve.

Pm_file_scanner<Planar_map>::Point
A type to hold the location of a vertex in the plane.

Pm_file_scanner<Planar_map>::X_curve
A type to hold an x-monotone curve in the plane.

Pm_file_scanner<Planar_map>::D_vertex
The Dcel vertex type.

Pm_file_scanner<Planar_map>::D_halfedge
The Dcel halfedge type.

Pm_file_scanner<Planar_map>::D_face
The Dcel face type.

Creation

Pm_file_scanner<Planar_map> pm_file_scanner ( istream& in);
A constructor for a given input stream.


Pm_file_scanner<Planar_map> pm_file_scanner ( istream& in,
File_header header);
A constructor for a given input stream and File header.

Operations

void pm_file_scanner.scan_pm_vhf_sizes ()
scans the number of vertices, halfedges and faces of the Planar map from the input stream.

void pm_file_scanner.scan_index ( size_t& index)
scans one index from the input stream.

istream& pm_file_scanner.in ()
returns the input stream the Planar map is scanned from.

void pm_file_scanner.scan_vertex ( D_vertex* v)
scans a vertex of the Dcel from the input stream.

X_curve pm_file_scanner.scan_halfedge ( D_halfedge* h)
scans an halfedge of the Dcel from the input stream. This function also returns the scanned curve. The reason for returning that value is because the Arrangement class does not update its halfedge with the curve.

void pm_file_scanner.scan_face ( D_face* f)
scans a face of the Dcel from the input stream.

end of advanced section  advanced  end of advanced section