![]() |
aimsdata
5.0.5
Neuroimaging data handling
|
The template class to manage a mesh. More...
#include <aims/mesh/surface.h>
Public Member Functions | |
AimsSurface () | |
Constructor does nothing special. More... | |
virtual | ~AimsSurface () |
Destructor does nothing. More... | |
const std::vector< Point3df > & | vertex () const |
Get a const reference to the vector of vertices. More... | |
std::vector< Point3df > & | vertex () |
Get a non const reference to the vector of verteces. More... | |
const std::vector< Point3df > & | normal () const |
Get a const reference to the vector of normals. More... | |
std::vector< Point3df > & | normal () |
Get a non const reference to the vector of normals. More... | |
const std::vector< T > & | texture () const |
Get a const reference to the vector of textures. More... | |
std::vector< T > & | texture () |
Get a non const reference to the vector of textures. More... | |
const std::vector< AimsVector< uint, D > > & | polygon () const |
Get a const reference to the vector of polygons. More... | |
std::vector< AimsVector< uint, D > > & | polygon () |
Get a non const reference to the vector of polygons. More... | |
Point3df | minimum () const |
Get the inferior point of the box containing the mesh. More... | |
Point3df | maximum () const |
Get the superior point of the box containing the mesh. More... | |
void | setMini () |
Calculate the inferior point of the box containing the mesh. More... | |
void | setMaxi () |
Calculate the superior point of the box containing the mesh. More... | |
void | erase () |
Clear the mesh. More... | |
void | updateNormals () |
Update/Compute the normals. More... | |
template<> | |
void | updateNormals () |
template<> | |
void | updateNormals () |
Protected Types | |
typedef std::vector< AimsVector< uint, D > > | Polygons |
Vector of polygons. More... | |
Protected Attributes | |
std::vector< Point3df > | _vertex |
Vector of vertices. More... | |
std::vector< Point3df > | _normal |
Vector of normals. More... | |
std::vector< T > | _texture |
Vector of textures. More... | |
Polygons | _polygon |
Point3df | _mini |
Inferior point of a box containing the whole mesh in the 3D space. More... | |
Point3df | _maxi |
Superior point of a box containing the whole mesh in the 3D space. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const AimsSurface< D, T > &thing) |
Output stream operator. More... | |
The template class to manage a mesh.
The first template argument gives the dimension of the polygons of the mesh. The second template argument provides the type of the texture information.
|
protected |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
Get a const reference to the vector of normals.
Definition at line 98 of file surface.h.
Referenced by aims::SurfaceManip::meshExtract(), aims::SurfaceManip::meshMerge(), aims::GiftiMeshFormat< D, T >::read(), aims::MeshReader< D, T >::read(), and aims::GiftiMeshFormat< D, T >::write().
|
inline |
|
inline |
Get a const reference to the vector of polygons.
Definition at line 108 of file surface.h.
Referenced by aims::SurfaceManip::invertSurfacePolygons(), aims::SurfaceManip::meshDensity(), aims::SurfaceManip::meshEdgeLengthRatioTexture(), aims::SurfaceManip::meshExtract(), aims::SurfaceManip::meshMerge(), aims::SurfaceManip::meshTextureBoundary(), aims::GiftiMeshFormat< D, T >::read(), aims::MeshReader< D, T >::read(), aims::SurfaceManip::surfaceNeighbours(), and aims::GiftiMeshFormat< D, T >::write().
|
inline |
|
inline |
|
inline |
|
inline |
Get a const reference to the vector of textures.
Definition at line 103 of file surface.h.
Referenced by aims::MeshReader< D, T >::read(), and aims::GiftiMeshFormat< D, T >::write().
|
inline |
|
inline |
Update/Compute the normals.
Definition at line 177 of file surface.h.
Referenced by aims::GiftiMeshFormat< D, T >::read(), and aims::MeshReader< D, T >::read().
|
inline |
|
inline |
|
inline |
Get a const reference to the vector of vertices.
Definition at line 93 of file surface.h.
Referenced by aims::SurfaceManip::meshDensity(), aims::SurfaceManip::meshEdgeLengthRatioTexture(), aims::SurfaceManip::meshExtract(), aims::SurfaceManip::meshMerge(), aims::SurfaceManip::meshTextureBoundary(), aims::GiftiMeshFormat< D, T >::read(), aims::MeshReader< D, T >::read(), SiteIterator< AimsSurface< D, Void > >::SiteIterator(), aims::SurfaceManip::surfaceNeighbours(), and aims::GiftiMeshFormat< D, T >::write().
|
inline |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |