ACG::PolyLineT< PointT > Class Template Reference

#include <AC>

List of all members.

Public Types

typedef PointT Point
typedef Point::value_type Scalar

Public Member Functions

 PolyLineT (bool _closed=false)
 Constructor.
 PolyLineT (const PolyLineT &_line)
 Copy Constructor.
 ~PolyLineT ()
 Destructor.
bool is_closed () const
void set_closed (const bool _c)
unsigned int n_vertices () const
unsigned int n_edges () const
void clear ()
void resize (unsigned int _n)
void add_point (const Point &_p)
void insert_point (int _idx, const Point &_p)
void delete_point (int _idx)
Point & point (unsigned int _i)
const Point & point (unsigned int _i) const
std::vector< Point > & points ()
const std::vector< Point > & points () const
Point & front ()
const Point & front () const
Point & back ()
const Point & back () const
Scalar length () const
void subdivide (Scalar _largest)
void collapse (Scalar _smallest)
void subdivide_old (Scalar _largest)
void collapse_old (Scalar _smallest)
void invert ()
void append (const PolyLineT< PointT > &_pl)
void prepend (const PolyLineT< PointT > &_pl)
void split_closed (unsigned int _split_idx)
void split (unsigned int _split_idx, PolyLineT< PointT > &_new_pl)
void smooth_uniform_laplace ()
void smooth_uniform_laplace2 ()
void smooth_uniform_laplace3 ()
template<class MeshT , class SpatialSearchT >
void project_to_mesh (const MeshT &_mesh, SpatialSearchT *_ssearch=0)
template<class MeshT , class SpatialSearchT >
void project_to_mesh (const std::vector< MeshT * > _mesh, std::vector< SpatialSearchT * > *_ssearch=0)
template<class MeshT , class SpatialSearchT >
void resample_on_mesh_edges (MeshT &_mesh, SpatialSearchT *_ssearch=0)
template<class MeshT >
void add_boundary_points (MeshT &_mesh)
template<class LineNodeT >
LineNodeT * get_line_node (LineNodeT *&_line_node, int _mode=0)
template<class LineNodeT >
void set_line_node (LineNodeT *&_line_node, int _mode=0)
void print () const
void load (const char *_filename)
void save (const char *_filename) const
void request_vertex_normals ()
void request_vertex_colors ()
void request_vertex_scalars ()
void request_vertex_selections ()
void request_vertex_vhandles ()
void request_vertex_ehandles ()
void request_vertex_fhandles ()
void request_edge_normals ()
void request_edge_colors ()
void request_edge_scalars ()
void request_edge_selections ()
void release_vertex_normals ()
void release_vertex_colors ()
void release_vertex_scalars ()
void release_vertex_selections ()
void release_vertex_vhandles ()
void release_vertex_ehandles ()
void release_vertex_fhandles ()
void release_edge_normals ()
void release_edge_colors ()
void release_edge_scalars ()
void release_edge_selections ()
bool vertex_normals_available () const
bool vertex_colors_available () const
bool vertex_scalars_available () const
bool vertex_selections_available () const
bool vertex_vhandles_available () const
bool vertex_ehandles_available () const
bool vertex_fhandles_available () const
bool edge_normals_available () const
bool edge_colors_available () const
bool edge_scalars_available () const
bool edge_selections_available () const
Point & vertex_normal (unsigned int _i)
const Point & vertex_normal (unsigned int _i) const
Point & vertex_color (unsigned int _i)
const Point & vertex_color (unsigned int _i) const
Scalar & vertex_scalar (unsigned int _i)
const Scalar & vertex_scalar (unsigned int _i) const
unsigned char & vertex_selection (unsigned int _i)
const unsigned char & vertex_selection (unsigned int _i) const
int & vertex_vhandle (unsigned int _i)
const int & vertex_vhandle (unsigned int _i) const
int & vertex_ehandle (unsigned int _i)
const int & vertex_ehandle (unsigned int _i) const
int & vertex_fhandle (unsigned int _i)
const int & vertex_fhandle (unsigned int _i) const
Point & edge_normal (unsigned int _i)
const Point & edge_normal (unsigned int _i) const
Point & edge_color (unsigned int _i)
const Point & edge_color (unsigned int _i) const
Scalar & edge_scalar (unsigned int _i)
const Scalar & edge_scalar (unsigned int _i) const
unsigned char & edge_selection (unsigned int _i)
const unsigned char & edge_selection (unsigned int _i) const
void copy_vertex_complete (const PolyLineT< PointT > &_pl, unsigned int _i, unsigned int _j)
void copy_edge_complete (const PolyLineT< PointT > &_pl, unsigned int _i, unsigned int _j)

Private Member Functions

template<class MeshT , class SpatialSearchT >
Point find_nearest_point (const MeshT &_mesh, const Point &_point, typename MeshT::FaceHandle &_fh, SpatialSearchT *_ssearch=0, double *_dbest=0)
template<class PropT >
void request_prop (unsigned int &_ref_count, PropT &_prop)
template<class PropT >
void release_prop (unsigned int &_ref_count, PropT &_prop)
template<class IPoint >
bool plane_line_intersection (const IPoint &_p_plane, const IPoint &_n_plane, const IPoint &_p0, const IPoint &_p1, IPoint &_p_int)
template<class MeshT >
void edge_points_in_segment (const MeshT &_mesh, const Point &_p0, const Point &_p1, const typename MeshT::FaceHandle _fh0, const typename MeshT::FaceHandle _fh1, std::vector< Point > &_points, std::vector< typename MeshT::EdgeHandle > &_ehandles)

Private Attributes

std::vector< Point > points_
bool closed_
std::vector< Point > vnormals_
std::vector< Point > vcolors_
std::vector< Scalar > vscalars_
std::vector< unsigned char > vselections_
std::vector< int > vvhandles_
std::vector< int > vehandles_
std::vector< int > vfhandles_
std::vector< Point > enormals_
std::vector< Point > ecolors_
std::vector< Scalar > escalars_
std::vector< unsigned char > eselections_
unsigned int ref_count_vnormals_
unsigned int ref_count_vcolors_
unsigned int ref_count_vscalars_
unsigned int ref_count_vselections_
unsigned int ref_count_vvhandles_
unsigned int ref_count_vehandles_
unsigned int ref_count_vfhandles_
unsigned int ref_count_enormals_
unsigned int ref_count_ecolors_
unsigned int ref_count_escalars_
unsigned int ref_count_eselections_

Detailed Description

template<class PointT>
class ACG::PolyLineT< PointT >

/.../PolyLineT.hh>

Brief Description.

A more elaborate description follows.

Definition at line 81 of file PolyLineT.hh.


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

acg pic Project OpenFlipper, ©  Computer Graphics Group, RWTH Aachen. Documentation generated using doxygen .