aimsdata
5.0.5
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 |
Public Types inherited from carto::RCObject | |
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... | |
template<> | |
void | updateNormals () |
template<> | |
void | updateNormals () |
Public Member Functions inherited from carto::RCObject | |
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... | |
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... | |
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 491 of file surface.h.
Referenced by aims::SurfaceManip::meshMerge(), aims::MeshReader< D, T >::read(), and aims::WavefrontMeshReader< D, T >::read().
|
inline |
Get the header.
Definition at line 317 of file surface.h.
Referenced by aims::SurfaceManip::meshMerge(), aims::GiftiMeshFormat< D, T >::write(), aims::PlyWriter< D, T >::write(), aims::MeshWriter< D, T >::write(), aims::WavefrontMeshWriter< D, T >::write(), and aims::WavefrontMeshWriter< D, Void >::write().
|
inline |
|
inline |
|
inline |
|
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::operator>>(), aims::GiftiMeshFormat< D, T >::read(), aims::PlyReader< D, T >::read(), and aims::PlyWriter< D, T >::write().
|
inline |
|
inline |
Get a const reference to the vector of polygons of the 0 surface.
Definition at line 353 of file surface.h.
Referenced by aims::SurfaceManip::meshExtract(), aims::operator>>(), 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(), and aims::PlyWriter< D, T >::write().
|
inline |
|
inline |
Set the header.
Definition at line 321 of file surface.h.
Referenced by aims::GiftiMeshFormat< D, T >::read(), aims::PlyReader< D, T >::read(), aims::MeshReader< D, T >::read(), and aims::WavefrontMeshReader< D, T >::read().
|
inline |
|
inline |
|
inline |
Get a const reference to the vector of textures of the 0 surface.
Definition at line 347 of file surface.h.
Referenced by aims::operator>>().
|
inline |
|
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().
|
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 335 of file surface.h.
Referenced by aims::SurfaceManip::meshExtract(), aims::SurfaceManip::meshTransform(), aims::operator>>(), 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::PovWriter< D, T >::write(), aims::PlyWriter< D, T >::write(), and aims::MeshWriter< D, T >::write().
|
inline |
|
friend |
|
protected |
|
protected |
|
protected |