curve_pl< C, V > Class Template Reference

#include <curve_pl.hpp>

Inheritance diagram for curve_pl< C, V >:
edge_set< C, REF_OF(V) > curve< REF_OF(REF_OF(V)) > point_set< C, N, V > SHAPE_OFV SHAPE_OFV

List of all members.

Public Types

Public Member Functions


Detailed Description

template<class C, class V = default_env>
class mmx::shape::curve_pl< C, V >

Definition at line 32 of file curve_pl.hpp.


Member Typedef Documentation

typedef bounding_box<C, REF_OF(V) > BoundingBox

Reimplemented from edge_set< C, REF_OF(V) >.

Definition at line 38 of file curve_pl.hpp.

typedef curve<V> Curve

Reimplemented from edge_set< C, REF_OF(V) >.

Definition at line 35 of file curve_pl.hpp.

typedef edge<C, REF_OF(V) > Edge

Reimplemented from edge_set< C, REF_OF(V) >.

Definition at line 39 of file curve_pl.hpp.

typedef edge_set<C, REF_OF(V) > EdgeSet

Definition at line 36 of file curve_pl.hpp.

typedef point<C,3, REF_OF(V) > Point

Reimplemented from edge_set< C, REF_OF(V) >.

Definition at line 37 of file curve_pl.hpp.

typedef Seq< Point >::const_iterator PointConstIterator [inherited]

Definition at line 34 of file point_set.hpp.

typedef Seq< Point >::iterator PointIterator [inherited]

Definition at line 33 of file point_set.hpp.

typedef point_set<C ,3, REF_OF(REF_OF(V) ) > PointSet [inherited]

Definition at line 36 of file edge_set.hpp.


Constructor & Destructor Documentation

curve_pl ( void   )  [inline]

Definition at line 66 of file curve_pl.hpp.

00066 : Curve(), EdgeSet() {}

curve_pl ( unsigned  np,
unsigned  ne = 0 
) [inline]

Definition at line 67 of file curve_pl.hpp.

References Seq< C, R >::resize().

00067                                             : Curve(), EdgeSet(np) {
00068   m_edges.resize(ne);
00069 }

curve_pl ( const BoundingBox box  )  [inline]

Definition at line 71 of file curve_pl.hpp.

00071 : Curve(box), EdgeSet() {}

~curve_pl ( void   )  [inline]

Definition at line 73 of file curve_pl.hpp.

00073 {}


Member Function Documentation

PointIterator begin (  )  [inline, inherited]

Definition at line 49 of file point_set.hpp.

00049 { return m_vertices.begin() ; }

PointConstIterator begin (  )  const [inline, inherited]

Definition at line 48 of file point_set.hpp.

00048 { return m_vertices.begin() ; }

void clear ( void   )  [inline]

Reimplemented from edge_set< C, REF_OF(V) >.

Definition at line 92 of file curve_pl.hpp.

References edge_set< C, REF_OF(V) >::clear().

00092                           {
00093   this->EdgeSet::clear() ;
00094 }

bool closed ( void   )  [inline]

Reimplemented from edge_set< C, REF_OF(V) >.

Definition at line 76 of file curve_pl.hpp.

00076                  {
00077   return false ;
00078 }

Seq<Point *> criticalpoints ( void   ) 

Reimplemented from edge_set< C, REF_OF(V) >.

Seq<Edge*> edges ( void   )  const [inline, inherited]

Definition at line 64 of file edge_set.hpp.

00064                                {
00065     return m_edges ;
00066   }

Seq<Edge*>& edges ( void   )  [inline, inherited]

Definition at line 60 of file edge_set.hpp.

00060                                  {
00061     return m_edges ;
00062   }

PointIterator end (  )  [inline, inherited]

Definition at line 51 of file point_set.hpp.

00051 { return m_vertices.end(); }

PointConstIterator end (  )  const [inline, inherited]

Definition at line 50 of file point_set.hpp.

00050 { return m_vertices.end(); }

Seq<Point *> extremalpoints ( void   ) 

Reimplemented from edge_set< C, REF_OF(V) >.

Edge& get_edge ( unsigned  i  )  [inline, inherited]

Definition at line 69 of file edge_set.hpp.

00069 { return *(m_edges[i]) ; }

const Edge& get_edge ( unsigned  i  )  const [inline, inherited]

Definition at line 68 of file edge_set.hpp.

00068 { return *(m_edges[i]) ; }

void link ( void   )  [inline]

Reimplemented from edge_set< C, REF_OF(V) >.

Definition at line 86 of file curve_pl.hpp.

00086                {
00087   //  for(unsigned int i = 0 ; i < m_vertices.size()-1 ; i++)
00088   //    push(new Edge(at(m_vertices, i), at(m_vertices, i+1))) ;
00089 }

unsigned nbe ( void   )  const [inline, inherited]

Definition at line 73 of file edge_set.hpp.

References Seq< C, R >::size().

00073                                   {
00074     return m_edges.size() ;
00075   }

unsigned nbv ( void   )  const [inline, inherited]

Definition at line 61 of file point_set.hpp.

00061 { return m_vertices.size() ; }

bool opened ( void   )  [inline]

Reimplemented from edge_set< C, REF_OF(V) >.

Definition at line 81 of file curve_pl.hpp.

00081                  {
00082   return false ;
00083 }

point_set<C,N, V>& operator<< ( const Point p  )  [inline, inherited]

Definition at line 64 of file point_set.hpp.

00064 { push_back(p); return *this; }

edge_set<C ,REF_OF(V) >& operator<< ( Edge e  )  [inline, inherited]

Definition at line 71 of file edge_set.hpp.

References Seq< C, R >::push_back().

00071 {m_edges.push_back(e); return *this;}

void pop ( Edge edge  ) 

Reimplemented from edge_set< C, REF_OF(V) >.

void pop ( Point vertex  ) 

Reimplemented from edge_set< C, REF_OF(V) >.

point_set<C,N, V>& push ( const Point p  )  [inline, inherited]

Definition at line 65 of file point_set.hpp.

00065 { push_back(p); return *this; }

void push_back ( const Point p  )  [inline, inherited]

Definition at line 77 of file point_set.hpp.

References Seq< C, R >::push_back().

Referenced by point_set< C, 3, REF_OF(REF_OF(V)) >::operator<<(), and point_set< C, 3, REF_OF(REF_OF(V)) >::push().

00077                               {
00078   m_vertices.push_back(p) ;
00079 }

void push_edge ( Edge e  )  [inherited]
typedef SHAPE_OF (  )  [inherited]
Seq<Point *> singularpoints ( void   ) 

Reimplemented from edge_set< C, REF_OF(V) >.

unsigned size ( void   )  const [inline, inherited]

Definition at line 62 of file point_set.hpp.

00062 { return m_vertices.size() ; }

void sort ( void   ) 

Reimplemented from edge_set< C, REF_OF(V) >.

Point& vertex ( unsigned  i  )  [inline, inherited]

Definition at line 57 of file point_set.hpp.

00057                             {
00058     return m_vertices[i] ;
00059   }

const Point& vertex ( unsigned  i  )  const [inline, inherited]

Definition at line 53 of file point_set.hpp.

00053                                         {
00054     return m_vertices[i] ;
00055   }

Seq<Point>& vertices ( void   )  [inline, inherited]

Definition at line 46 of file point_set.hpp.

00046 { return m_vertices ; }


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

Generated on 6 Dec 2012 for shape by  doxygen 1.6.1