LiTe
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
LineTes_halfedge Class Reference

Halfedge class used by the LineTes class. More...

#include <ttessel.h>

Inheritance diagram for LineTes_halfedge:

Public Member Functions

 LineTes_halfedge ()
 Basic constructor. More...
 
LineTes::Halfedge_handle get_prev_hf ()
 Return previous halfedge along the segment.
 
LineTes::Halfedge_handle get_next_hf ()
 Return next halfedge along the segment.
 
bool get_dir ()
 Test halfedge direction against the segment direction. More...
 
double get_length ()
 Return the halfedge length.
 
LineTes::Seg_handle get_segment ()
 Return a handle of the segment containing the halfedge.
 
LineTes::Seg_handle segment ()
 Return a handle of the segment containing the halfedge. More...
 
void set_length ()
 Update the length attribute of a halfedge.
 
void set_length (double l)
 Set the length attribute of an halfedge.
 
void set_prev_hf (LineTes::Halfedge_handle)
 Set the previous halfedge along the segment.
 
void set_next_hf (LineTes::Halfedge_handle)
 Set the next halfedge along the segment.
 
void set_dir ()
 Update the direction attribute of a halfedge. More...
 
void set_dir (bool d)
 Set the direction attribute of a halfedge. More...
 
void set_segment (LineTes::Seg_handle s)
 Define the segment containing the halfedge.
 
bool is_one_edge_segment ()
 Test whether a halfedge starting a segment is also ending the segment. More...
 

Detailed Description

Halfedge class used by the LineTes class.

The LineTes_halfedge class derives from the CGAL class Arr_halfedge_base. Several attributes related to segments have been added.

A segment represented by a LineTes::Seg object is identified by one of its halfedge. It is therefore oriented and its orientation is determined by the orientation of its identifying halfedge.

Constructor & Destructor Documentation

LineTes_halfedge::LineTes_halfedge ( )

Basic constructor.

Invoke the parent constructor, set length to zero and next and previous halfedges along the segment as null halfedges.

Member Function Documentation

bool LineTes_halfedge::get_dir ( )
inline

Test halfedge direction against the segment direction.

Returns
true if the halfedge and the segment have the same direction, false if they are opposite.
bool LineTes_halfedge::is_one_edge_segment ( )
inline

Test whether a halfedge starting a segment is also ending the segment.

Precondition
the halfedge handle should not be null.
LineTes::Seg_handle LineTes_halfedge::segment ( )
inline

Return a handle of the segment containing the halfedge.

Note
Redondant method. Is it really used?
void LineTes_halfedge::set_dir ( )

Update the direction attribute of a halfedge.

Precondition
The halfedge should have either a next or a previous halfedge on the segment.

The direction is inherited from the neighbour halfedges on the segment. Priority given to the next halfedge.

void LineTes_halfedge::set_dir ( bool  d)

Set the direction attribute of a halfedge.

The convention is to set the direction to true if the halfedge and the halfedge identifying the segment have the same direction.


The documentation for this class was generated from the following files: