a48  2.0.2
a48::BaseItemsPolicy< Traits > Class Template Reference

Base mesh items policy. More...

#include <mesht.hh>

List of all members.

Public Member Functions

virtual void set_vertex_attributes (vertex_type *v1, const vertex_type *v0)=0
virtual void set_vertex_attributes (const unsigned int &i, vertex_type *v)=0
 Set vertex attributes function.
virtual void set_halfedge_attributes (halfedge_type *h1, const halfedge_type *h0)=0
virtual void set_halfedge_attributes (halfedge_type *h, halfedge_type *o)=0
virtual void set_halfedge_attributes (const unsigned int &i, const unsigned int &j, const unsigned int &hi, halfedge_type *h)=0
 Set halfedge attributes function.
virtual void set_face_attributes (face_type *f1, const face_type *f0)=0
virtual void set_face_attributes (const unsigned int &i, face_type *f)=0
 Set face attributes function.

Detailed Description

template<class Traits = DefaultTraits>
class a48::BaseItemsPolicy< Traits >

Base mesh items policy.

This abstract class defines virtual methods to set attributes of items from a mesh. Derive a class to define your own policy such as shown in the example: example_itemspolicy::cc

Template Parameters:
Traitstemplate argument to define mesh traits

Definition at line 59 of file mesht.hh.


Member Function Documentation

template<class Traits = DefaultTraits>
void a48::BaseItemsPolicy< Traits >::set_vertex_attributes ( vertex_type *  v1,
const vertex_type *  v0 
) [pure virtual]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters:
[out]v1Newly-inserted vertex without attributes
[in]v0Existing vertex with attributes to copy from
template<class Traits = DefaultTraits>
virtual void a48::BaseItemsPolicy< Traits >::set_vertex_attributes ( const unsigned int &  i,
vertex_type *  v 
) [pure virtual]

Set vertex attributes function.

Used to specify vertex attributes (base class sets no attributes), the vertex is not supposed to have any mesh information (such as its incident halfedge).

Parameters:
[in]iVertex one-dimension index based on mesh connectivity
[out]vVertex just inserted in the mesh
template<class Traits = DefaultTraits>
void a48::BaseItemsPolicy< Traits >::set_halfedge_attributes ( halfedge_type *  h1,
const halfedge_type *  h0 
) [pure virtual]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters:
[out]h1Newly-inserted halfedge without attributes
[in]h0Existing halfedge with attributes to copy from
template<class Traits = DefaultTraits>
void a48::BaseItemsPolicy< Traits >::set_halfedge_attributes ( halfedge_type *  h,
halfedge_type *  o 
) [pure virtual]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters:
[out]hHalfedge just inserted in the mesh
[in,out]oOpposed halfedge previously setted by the first function
template<class Traits = DefaultTraits>
virtual void a48::BaseItemsPolicy< Traits >::set_halfedge_attributes ( const unsigned int &  i,
const unsigned int &  j,
const unsigned int &  hi,
halfedge_type *  h 
) [pure virtual]

Set halfedge attributes function.

Used to specify halfedge attributes (base class sets no attributes), the halfedge has limited mesh information (such as its face).

Parameters:
[in]i,jHalfedge one-dimension indices based on mesh connectivity
[in]hiHalfedge index inside its face
[out]hHalfedge just inserted in the mesh
template<class Traits = DefaultTraits>
void a48::BaseItemsPolicy< Traits >::set_face_attributes ( face_type *  f1,
const face_type *  f0 
) [pure virtual]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters:
[out]f1Newly-inserted face without attributes
[in]f0Existing face with attributes to copy from
template<class Traits = DefaultTraits>
virtual void a48::BaseItemsPolicy< Traits >::set_face_attributes ( const unsigned int &  i,
face_type *  f 
) [pure virtual]

Set face attributes function.

Used to specify face attributes (base class sets no attributes), the face is not supposed to have any mesh information (such as its halfedge).

Parameters:
[in]iFace one-dimension index based on mesh connectivity
[out]fFace just inserted in the mesh

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Typedefs