Public Member Functions | Protected Attributes
imesh_vertex_array_base Class Reference

Abstract base class for a collection of vertices. More...

#include <imesh_vertex.h>

Inheritance diagram for imesh_vertex_array_base:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~imesh_vertex_array_base ()
 Destructor.
virtual unsigned int size () const =0
 returns the number of vertices.
virtual unsigned int dim () const =0
 returns the dimension of the vertices.
virtual double operator() (unsigned int v, unsigned int i) const =0
 Access a vertex coordinate by vertex index and coordinate index.
virtual imesh_vertex_array_baseclone () const =0
 Produce a clone of this object (dynamic copy).
virtual void append (const imesh_vertex_array_base &verts)
 Append these vertices (assuming the same type).
bool has_normals () const
 Return true if the vertices have normals.
void set_normals (const vcl_vector< vgl_vector_3d< double > > &n)
 Set the vertex normals.
vgl_vector_3d< double > & normal (unsigned int v)
 Access a vertex normal.
const vgl_vector_3d< double > & normal (unsigned int v) const
const vcl_vector
< vgl_vector_3d< double > > & 
normals () const
 Access the normals.

Protected Attributes

vcl_vector< vgl_vector_3d
< double > > 
normals_

Detailed Description

Abstract base class for a collection of vertices.

Definition at line 143 of file imesh_vertex.h.


Constructor & Destructor Documentation

virtual imesh_vertex_array_base::~imesh_vertex_array_base ( ) [inline, virtual]

Destructor.

Definition at line 147 of file imesh_vertex.h.


Member Function Documentation

virtual void imesh_vertex_array_base::append ( const imesh_vertex_array_base verts) [inline, virtual]

Append these vertices (assuming the same type).

Reimplemented in imesh_vertex_array< d >.

Definition at line 162 of file imesh_vertex.h.

virtual imesh_vertex_array_base* imesh_vertex_array_base::clone ( ) const [pure virtual]

Produce a clone of this object (dynamic copy).

Implemented in imesh_vertex_array< d >.

virtual unsigned int imesh_vertex_array_base::dim ( ) const [pure virtual]

returns the dimension of the vertices.

Implemented in imesh_vertex_array< d >.

bool imesh_vertex_array_base::has_normals ( ) const [inline]

Return true if the vertices have normals.

Definition at line 171 of file imesh_vertex.h.

vgl_vector_3d<double>& imesh_vertex_array_base::normal ( unsigned int  v) [inline]

Access a vertex normal.

Definition at line 178 of file imesh_vertex.h.

const vgl_vector_3d<double>& imesh_vertex_array_base::normal ( unsigned int  v) const [inline]

Definition at line 179 of file imesh_vertex.h.

const vcl_vector<vgl_vector_3d<double> >& imesh_vertex_array_base::normals ( ) const [inline]

Access the normals.

Definition at line 182 of file imesh_vertex.h.

virtual double imesh_vertex_array_base::operator() ( unsigned int  v,
unsigned int  i 
) const [pure virtual]

Access a vertex coordinate by vertex index and coordinate index.

Implemented in imesh_vertex_array< d >.

void imesh_vertex_array_base::set_normals ( const vcl_vector< vgl_vector_3d< double > > &  n) [inline]

Set the vertex normals.

Definition at line 174 of file imesh_vertex.h.

virtual unsigned int imesh_vertex_array_base::size ( ) const [pure virtual]

returns the number of vertices.

Implemented in imesh_vertex_array< d >.


Member Data Documentation

vcl_vector<vgl_vector_3d<double> > imesh_vertex_array_base::normals_ [protected]

Definition at line 185 of file imesh_vertex.h.


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