shape_doc 0.1
vertex< C, V, N > Class Template Reference

#include <vertex.hpp>

Inheritance diagram for vertex< C, V, N >:
point< C, V > SHAPE_OFV

List of all members.

Public Types

Public Member Functions


Detailed Description

template<class C, class V, int N>
class mmx::shape::vertex< C, V, N >

Definition at line 33 of file vertex.hpp.


Member Typedef Documentation

typedef point<C,V> Point

Definition at line 37 of file vertex.hpp.

typedef C Scalar

Reimplemented from point< C, V >.

Definition at line 36 of file vertex.hpp.


Constructor & Destructor Documentation

vertex ( void  )

Definition at line 61 of file vertex.hpp.

                 : Point(), m_idx(IDX), m_nf(-1)
{
}
vertex ( Scalar  x,
Scalar  y,
Scalar  z,
int  idx = -1 
)

Definition at line 66 of file vertex.hpp.

                                                  :Point(x,y,z), m_idx(IDX), m_nf(idx)
{
}
vertex ( const Point p)
vertex ( const vertex< C, V, N > &  p)

Definition at line 71 of file vertex.hpp.

                               : Point(other), m_idx(other.index()),  m_nf(other.nface())
{
}

Member Function Documentation

int index ( ) const [inline]

Definition at line 51 of file vertex.hpp.

Referenced by topology2d< C, V >::insert(), and use< vertex_def, V >::point_insertor().

{return m_idx;}
int nface ( ) const [inline]

Definition at line 54 of file vertex.hpp.

{return m_nf;}
bool operator!= ( const vertex< C, V, N > &  other) const

Definition at line 94 of file vertex.hpp.

                                           {
  return ((this->x() != other.x()) || (this->y() != other.y()) || (this->z() != other.z())) ;
}
bool operator!= ( const point< C, V > &  other) const [inherited]

Definition at line 132 of file point.hpp.

                                           {
  return ((m_x != other.x()) || (m_y != other.y()) || (m_z != other.z())) ;
}
vertex< C, V, N > & operator= ( const vertex< C, V, N > &  other)

Definition at line 76 of file vertex.hpp.

{
  if(this == &other)
    return *this ;
  
  this->x() = other.x() ;
  this->y() = other.y() ;
  this->z() = other.z() ;
  
  return * this ;
}
bool operator== ( const vertex< C, V, N > &  other) const

Definition at line 89 of file vertex.hpp.

                                           {
  return ((this->x() == other.x()) && (this->y() == other.y()) && (this->z() == other.z())) ;
}
bool operator== ( const point< C, V > &  other) const [inherited]

Definition at line 127 of file point.hpp.

                                           {
  return ((m_x == other.x()) && (m_y == other.y()) && (m_z == other.z())) ;
}
Scalar operator[] ( const int &  i) const [inherited]
Scalar& operator[] ( const int &  i) [inherited]
int set_index ( int  i) [inline]

Definition at line 52 of file vertex.hpp.

Referenced by topology2d< C, V >::insert(), and use< vertex_def, V >::point_insertor().

{m_idx=i;return m_idx;}
void setx ( Scalar  x) [inline, inherited]

Definition at line 75 of file point.hpp.

References point< C, V, N >::x().

{ this->m_x = x ; }
void sety ( Scalar  y) [inline, inherited]

Definition at line 76 of file point.hpp.

References point< C, V, N >::y().

{ this->m_y = y ; }
void setz ( Scalar  z) [inline, inherited]

Definition at line 77 of file point.hpp.

References point< C, V, N >::z().

{ this->m_z = z ; }
typedef SHAPE_OF ( ) [inherited]
Scalar& x ( void  ) [inline, inherited]

Definition at line 66 of file point.hpp.

{ return m_x ; }
Scalar x ( void  ) const [inline, inherited]

Definition at line 65 of file point.hpp.

{ return m_x ; }
Scalar& y ( void  ) [inline, inherited]

Definition at line 68 of file point.hpp.

{ return m_y ; }
Scalar y ( void  ) const [inline, inherited]

Definition at line 67 of file point.hpp.

{ return m_y ; }
Scalar& z ( void  ) [inline, inherited]

Definition at line 70 of file point.hpp.

{ return m_z ; }
Scalar z ( void  ) const [inline, inherited]

Definition at line 69 of file point.hpp.

{ return m_z ; }

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