aimsdata  5.0.5
Neuroimaging data handling
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 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::PythonHeaderheader () const
 Get the header. More...
 
aims::PythonHeaderheader ()
 
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 &)
 
RCObjectoperator= (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...
 

Detailed Description

template<int D, class T>
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

◆ const_iterator

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

Definition at line 310 of file surface.h.

◆ iterator

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

Definition at line 308 of file surface.h.

Constructor & Destructor Documentation

◆ AimsTimeSurface()

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

Constructor does nothing special.

Definition at line 312 of file surface.h.

◆ ~AimsTimeSurface()

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

Destructor does nothing.

Definition at line 314 of file surface.h.

Member Function Documentation

◆ erase()

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

◆ header() [1/2]

◆ header() [2/2]

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

Definition at line 318 of file surface.h.

◆ maximum()

template<int D, class T>
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.

◆ minimum()

template<int D, class T>
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.

◆ normal() [1/2]

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

◆ normal() [2/2]

template<int D, class T>
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.

◆ polygon() [1/2]

◆ polygon() [2/2]

template<int D, class T>
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.

◆ setHeader()

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

◆ setMaxi()

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.

◆ setMini()

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.

◆ texture() [1/2]

template<int D, class T>
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.

Referenced by aims::operator>>().

◆ texture() [2/2]

template<int D, class T>
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.

◆ updateNormals() [1/3]

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().

◆ updateNormals() [2/3]

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

Definition at line 508 of file surface.h.

◆ updateNormals() [3/3]

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

Definition at line 517 of file surface.h.

◆ vertex() [1/2]

template<int D, class T>
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::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().

◆ vertex() [2/2]

template<int D, class T>
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

◆ operator<<

template<int D, class T>
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

◆ _header

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

Header.

Definition at line 385 of file surface.h.

◆ _maxi

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

Inferior point of the box containing all the meshes.

Definition at line 389 of file surface.h.

◆ _mini

template<int D, class T>
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: