![]() |
aimsdata
5.1.2
Neuroimaging data handling
|
The template class to manage a mesh with time if needed. More...
#include <aims/mesh/surface.h>
Public Types | |
typedef std::map< int, AimsSurface< D, T > >::iterator | iterator |
typedef std::map< int, AimsSurface< D, T > >::const_iterator | const_iterator |
![]() | |
typedef int | RefCounterType |
Public Member Functions | |
AimsTimeSurface () | |
Constructor does nothing special. More... | |
virtual | ~AimsTimeSurface () |
Destructor does nothing. More... | |
const aims::PythonHeader & | header () const |
Get the header. More... | |
aims::PythonHeader & | header () |
void | setHeader (const aims::PythonHeader &hdr) |
Set the header. More... | |
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... | |
bool | operator== (const AimsTimeSurface< D, T > &) const |
bool | operator!= (const AimsTimeSurface< D, T > &other) const |
void | updateNormals () |
void | updateNormals () |
![]() | |
RCObject () | |
RCObject (const RCObject &) | |
RCObject & | operator= (const RCObject &) |
virtual | ~RCObject () |
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... | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const AimsTimeSurface< D, T > &thing) |
Output stream operator. More... | |
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.
typedef std::map< int , AimsSurface<D,T> >::const_iterator AimsTimeSurface< D, T >::const_iterator |
typedef std::map< int , AimsSurface<D,T> >::iterator AimsTimeSurface< D, T >::iterator |
|
inline |
|
inlinevirtual |
|
inline |
Clear all the meshes.
Definition at line 505 of file surface.h.
Referenced by aims::SurfaceManip::meshMerge(), aims::WavefrontMeshReader< D, T >::read(), and aims::MeshReader< D, T >::read().
|
inline |
|
inline |
Get the header.
Definition at line 328 of file surface.h.
Referenced by aims::SurfaceManip::joinTexturedMesh(), aims::SurfaceManip::meshMerge(), AimsTimeSurface< D, T >::operator==(), aims::SurfaceManip::splitTexturedMesh(), aims::MeshWriter< D, T >::write(), aims::PlyWriter< D, T >::write(), aims::WavefrontMeshWriter< D, T >::write(), aims::WavefrontMeshWriter< D, Void >::write(), and aims::GiftiMeshFormat< D, T >::write().
|
inline |
|
inline |
|
inline |
|
inline |
Get a const reference to the vector of normals of the 0 surface.
Definition at line 350 of file surface.h.
Referenced by aims::SurfaceManip::joinTexturedMesh(), aims::SurfaceManip::meshExtract(), aims::SurfaceManip::meshTransform(), aims::PlyReader< D, T >::read(), aims::GiftiMeshFormat< D, T >::read(), aims::SurfaceManip::splitTexturedMesh(), and aims::PlyWriter< D, T >::write().
|
inline |
|
inline |
Definition at line 540 of file surface.h.
References AimsTimeSurface< D, T >::header().
|
inline |
|
inline |
Get a const reference to the vector of polygons of the 0 surface.
Definition at line 362 of file surface.h.
Referenced by aims::SurfaceManip::joinTexturedMesh(), aims::SurfaceManip::meshExtract(), aims::SurfaceManip::rasterizeMeshWireframe(), aims::PlyReader< D, T >::read(), aims::GiftiMeshFormat< D, T >::read(), aims::SurfaceManip::sortPolygonsAlongDirection(), aims::SurfaceManip::splitTexturedMesh(), aims::SurfaceManip::surfaceNeighbourDistance(), aims::SurfaceManip::surfaceNeighbours(), aims::SurfaceManip::surfaceNeighbours2ndOrder(), aims::PlyWriter< D, T >::write(), aims::WavefrontMeshWriter< D, T >::write(), and aims::WavefrontMeshWriter< D, Void >::write().
|
inline |
Set the header.
Definition at line 332 of file surface.h.
Referenced by aims::PlyReader< D, T >::read(), aims::WavefrontMeshReader< D, T >::read(), aims::MeshReader< D, T >::read(), and aims::GiftiMeshFormat< D, T >::read().
|
inline |
Calculates the superior point of the box containing all the meshes.
Definition at line 487 of file surface.h.
References AimsVector< class, D >::item().
|
inline |
Calculates the inferior point of the box containing all the meshes.
Definition at line 469 of file surface.h.
References AimsVector< class, D >::item().
|
inline |
|
inline |
Get a const reference to the vector of textures of the 0 surface.
Definition at line 356 of file surface.h.
Referenced by aims::SurfaceManip::splitTexturedMesh(), and aims::WavefrontMeshWriter< D, T >::write().
|
inline |
Update/Compute the normals.
Definition at line 514 of file surface.h.
Referenced by aims::PlyReader< D, T >::read(), and aims::WavefrontMeshReader< D, T >::read().
|
inline |
|
inline |
|
inline |
|
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 344 of file surface.h.
Referenced by aims::SurfaceManip::joinTexturedMesh(), aims::SurfaceManip::meshExtract(), aims::SurfaceManip::meshTransform(), aims::SurfaceManip::rasterizeMeshWireframe(), aims::PlyReader< D, T >::read(), aims::GiftiMeshFormat< D, T >::read(), aims::SurfaceManip::sortPolygonsAlongDirection(), aims::SurfaceManip::splitTexturedMesh(), aims::SurfaceManip::surfaceNeighbourDistance(), aims::SurfaceManip::surfaceNeighbours(), aims::SurfaceManip::surfaceNeighbours2ndOrder(), aims::MeshWriter< D, T >::write(), aims::PlyWriter< D, T >::write(), and aims::PovWriter< D, T >::write().
|
friend |
|
protected |
|
protected |
|
protected |