A.I.M.S


AimsTimeSurface< D, T > Class Template Reference

The template class to manage a mesh with time if needed. More...

#include <aims/mesh/surface.h>

Inheritance diagram for AimsTimeSurface< D, T >:
Collaboration diagram for AimsTimeSurface< D, T >:

Public Types

typedef std::map< int,
AimsSurface< D, T >
>::iterator 
iterator
 
typedef std::map< int,
AimsSurface< D, T >
>::const_iterator 
const_iterator
 

Public Member Functions

 AimsTimeSurface ()
 Constructor does nothing special. More...
 
virtual ~AimsTimeSurface ()
 Destructor does nothing. More...
 
const aims::PythonHeaderheader () const
 Get the header. More...
 
aims::PythonHeaderheader ()
 
void setHeader (const aims::PythonHeader &hdr)
 Set the header. More...
 
template<>
void updateNormals ()
 
template<>
void updateNormals ()
 

Protected Attributes

Data
aims::PythonHeader _header
 Header. More...
 
Point3df _mini
 Inferior point of the box containing all the meshes. More...
 
Point3df _maxi
 Inferior point of the box containing all the meshes. More...
 

Item manipulation and methods

const std::vector< Point3df > & vertex () const
 Get a const reference to the vector of verteces of the surface of index 0. More...
 
std::vector< Point3df > & vertex ()
 Get a non const reference to the vector of verteces of the 0 surface. More...
 
const std::vector< Point3df > & normal () const
 Get a const reference to the vector of normals of the 0 surface. More...
 
std::vector< Point3df > & normal ()
 Get a non const reference to the vector of normals of the 0 surface. More...
 
const std::vector< T > & texture () const
 Get a const reference to the vector of textures of the 0 surface. More...
 
std::vector< T > & texture ()
 Get a non const reference to the vector of textures of the 0 surface. More...
 
const std::vector< AimsVector
< uint, D > > & 
polygon () const
 Get a const reference to the vector of polygons of the 0 surface. More...
 
std::vector< AimsVector< uint,
D > > & 
polygon ()
 Get a non const reference to the vector of polygons of the 0 surface. More...
 
Point3df minimum () const
 Get the inferior point of the box containing all the meshes. More...
 
Point3df maximum () const
 Get the superior point of the box containing all the meshes. More...
 
void setMini ()
 Calculates the inferior point of the box containing all the meshes. More...
 
void setMaxi ()
 Calculates the superior point of the box containing all the meshes. More...
 
void erase ()
 Clear all the meshes. More...
 
void updateNormals ()
 Update/Compute the normals. More...
 
std::ostream & operator<< (std::ostream &out, const AimsTimeSurface< D, T > &thing)
 Output stream operator. More...
 

Detailed Description

template<int D, class T = Void>
class AimsTimeSurface< D, T >

The template class to manage a mesh with time if needed.

The first template argument gives the dimension of the polygons of the mesh. The second template argument provides the type of the texture information. AimsTimeSurface is based upon STL maps of AimsSurface<D,T> items. One can get some more details in STL documentation.

Definition at line 290 of file surface.h.

Member Typedef Documentation

template<int D, class T = Void>
typedef std::map< int , AimsSurface<D,T> >::const_iterator AimsTimeSurface< D, T >::const_iterator

Definition at line 310 of file surface.h.

template<int D, class T = Void>
typedef std::map< int , AimsSurface<D,T> >::iterator AimsTimeSurface< D, T >::iterator

Definition at line 308 of file surface.h.

Constructor & Destructor Documentation

template<int D, class T = Void>
AimsTimeSurface< D, T >::AimsTimeSurface ( )
inline

Constructor does nothing special.

Definition at line 312 of file surface.h.

template<int D, class T = Void>
virtual AimsTimeSurface< D, T >::~AimsTimeSurface ( )
inlinevirtual

Destructor does nothing.

Definition at line 314 of file surface.h.

Member Function Documentation

template<int D, class T >
void AimsTimeSurface< D, T >::erase ( )
inline
template<int D, class T = Void>
aims::PythonHeader& AimsTimeSurface< D, T >::header ( )
inline

Definition at line 318 of file surface.h.

template<int D, class T = Void>
Point3df AimsTimeSurface< D, T >::maximum ( ) const
inline

Get the superior point of the box containing all the meshes.

Definition at line 362 of file surface.h.

template<int D, class T = Void>
Point3df AimsTimeSurface< D, T >::minimum ( ) const
inline

Get the inferior point of the box containing all the meshes.

Definition at line 360 of file surface.h.

template<int D, class T = Void>
const std::vector<Point3df>& AimsTimeSurface< D, T >::normal ( ) const
inline

Get a const reference to the vector of normals of the 0 surface.

Definition at line 341 of file surface.h.

Referenced by aims::SurfaceManip::meshExtract(), aims::SurfaceManip::meshTransform(), aims::GiftiMeshFormat< D, T >::read(), aims::PlyReader< D, T >::read(), and aims::PlyWriter< D, T >::write().

template<int D, class T = Void>
std::vector<Point3df>& AimsTimeSurface< D, T >::normal ( )
inline

Get a non const reference to the vector of normals of the 0 surface.

Definition at line 344 of file surface.h.

template<int D, class T = Void>
std::vector< AimsVector<uint,D> >& AimsTimeSurface< D, T >::polygon ( )
inline

Get a non const reference to the vector of polygons of the 0 surface.

Definition at line 356 of file surface.h.

template<int D, class T = Void>
void AimsTimeSurface< D, T >::setHeader ( const aims::PythonHeader hdr)
inline
template<int D, class T >
void AimsTimeSurface< D, T >::setMaxi ( )
inline

Calculates the superior point of the box containing all the meshes.

Definition at line 473 of file surface.h.

References AimsVector< T, D >::item().

template<int D, class T >
void AimsTimeSurface< D, T >::setMini ( )
inline

Calculates the inferior point of the box containing all the meshes.

Definition at line 455 of file surface.h.

References AimsVector< T, D >::item().

template<int D, class T = Void>
const std::vector<T>& AimsTimeSurface< D, T >::texture ( ) const
inline

Get a const reference to the vector of textures of the 0 surface.

Definition at line 347 of file surface.h.

template<int D, class T = Void>
std::vector<T>& AimsTimeSurface< D, T >::texture ( )
inline

Get a non const reference to the vector of textures of the 0 surface.

Definition at line 350 of file surface.h.

template<int D, class T >
void AimsTimeSurface< D, T >::updateNormals ( )
inline

Update/Compute the normals.

Definition at line 500 of file surface.h.

Referenced by aims::PlyReader< D, T >::read(), and aims::WavefrontMeshReader< D, T >::read().

template<>
void AimsTimeSurface< 3, Void >::updateNormals ( )
inline

Definition at line 508 of file surface.h.

template<>
void AimsTimeSurface< 4, Void >::updateNormals ( )
inline

Definition at line 517 of file surface.h.

template<int D, class T = Void>
const std::vector<Point3df>& AimsTimeSurface< D, T >::vertex ( ) const
inline

Get a const reference to the vector of verteces of the surface of index 0.

The function was redefined to omit time. It is equivalent to write:\ AimsTimeSurface<D,T> surface; \ Point3df item; surface.vertex().push_back(item); \ \ than to write : \ surface[0].vertex().push_back(item); \ \

Definition at line 335 of file surface.h.

Referenced by aims::SurfaceManip::meshExtract(), aims::SurfaceManip::meshTransform(), aims::SurfaceManip::rasterizeMeshWireframe(), aims::GiftiMeshFormat< D, T >::read(), aims::PlyReader< D, T >::read(), aims::SurfaceManip::sortPolygonsAlongDirection(), aims::SurfaceManip::surfaceNeighbourDistance(), aims::SurfaceManip::surfaceNeighbours(), aims::SurfaceManip::surfaceNeighbours2ndOrder(), aims::PlyWriter< D, T >::write(), aims::PovWriter< D, T >::write(), and aims::MeshWriter< D, T >::write().

template<int D, class T = Void>
std::vector<Point3df>& AimsTimeSurface< D, T >::vertex ( )
inline

Get a non const reference to the vector of verteces of the 0 surface.

Definition at line 338 of file surface.h.

Friends And Related Function Documentation

template<int D, class T = Void>
std::ostream& operator<< ( std::ostream &  out,
const AimsTimeSurface< D, T > &  thing 
)
friend

Output stream operator.

Definition at line 526 of file surface.h.

Member Data Documentation

template<int D, class T = Void>
aims::PythonHeader AimsTimeSurface< D, T >::_header
protected

Header.

Definition at line 385 of file surface.h.

template<int D, class T = Void>
Point3df AimsTimeSurface< D, T >::_maxi
protected

Inferior point of the box containing all the meshes.

Definition at line 389 of file surface.h.

template<int D, class T = Void>
Point3df AimsTimeSurface< D, T >::_mini
protected

Inferior point of the box containing all the meshes.

Definition at line 387 of file surface.h.


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