Public Member Functions | Protected Attributes
imesh_vertex< 3 > Class Reference

A 3d vertex specialization with extra capabilities. More...

#include <imesh_vertex.h>

List of all members.

Public Member Functions

 imesh_vertex ()
 Default Constructor.
 imesh_vertex (double x, double y, double z)
 Constructor (from 2 doubles).
 imesh_vertex (const vgl_point_3d< double > &pt)
 Constructor (from vgl point).
 imesh_vertex (const vcl_vector< double > &coords)
 Constructor from a vector.
 operator vgl_point_3d< double > () const
 convert to a vgl point.
unsigned int dim () const
 return the dimension of the vertex.
double operator[] (unsigned int i) const
 Accessor.
double & operator[] (unsigned int i)

Protected Attributes

double coords_ [3]

Detailed Description

A 3d vertex specialization with extra capabilities.

Definition at line 93 of file imesh_vertex.h.


Constructor & Destructor Documentation

imesh_vertex< 3 >::imesh_vertex ( ) [inline]

Default Constructor.

Definition at line 97 of file imesh_vertex.h.

imesh_vertex< 3 >::imesh_vertex ( double  x,
double  y,
double  z 
) [inline]

Constructor (from 2 doubles).

Definition at line 100 of file imesh_vertex.h.

imesh_vertex< 3 >::imesh_vertex ( const vgl_point_3d< double > &  pt) [inline]

Constructor (from vgl point).

Definition at line 108 of file imesh_vertex.h.

imesh_vertex< 3 >::imesh_vertex ( const vcl_vector< double > &  coords) [inline]

Constructor from a vector.

Definition at line 116 of file imesh_vertex.h.


Member Function Documentation

unsigned int imesh_vertex< 3 >::dim ( ) const [inline]

return the dimension of the vertex.

Definition at line 131 of file imesh_vertex.h.

imesh_vertex< 3 >::operator vgl_point_3d< double > ( ) const [inline]

convert to a vgl point.

Definition at line 125 of file imesh_vertex.h.

double imesh_vertex< 3 >::operator[] ( unsigned int  i) const [inline]

Accessor.

Definition at line 134 of file imesh_vertex.h.

double& imesh_vertex< 3 >::operator[] ( unsigned int  i) [inline]

Definition at line 135 of file imesh_vertex.h.


Member Data Documentation

double imesh_vertex< 3 >::coords_[3] [protected]

Definition at line 138 of file imesh_vertex.h.


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