aimsdata 6.0.0
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.
 
 AimsTimeSurface (const AimsTimeSurface< D, T > &other)
 
virtual ~AimsTimeSurface ()
 Destructor does nothing.
 
const aims::PythonHeaderheader () const
 Get the header.
 
aims::PythonHeaderheader ()
 
void setHeader (const aims::PythonHeader &hdr)
 Set the header.
 
const std::vector< Point3df > & vertex () const
 Get a const reference to the vector of verteces of the surface of index 0.
 
std::vector< Point3df > & vertex ()
 Get a non const reference to the vector of verteces of the 0 surface.
 
const std::vector< Point3df > & normal () const
 Get a const reference to the vector of normals of the 0 surface.
 
std::vector< Point3df > & normal ()
 Get a non const reference to the vector of normals of the 0 surface.
 
const std::vector< T > & texture () const
 Get a const reference to the vector of textures of the 0 surface.
 
std::vector< T > & texture ()
 Get a non const reference to the vector of textures of the 0 surface.
 
const std::vector< AimsVector< uint, D > > & polygon () const
 Get a const reference to the vector of polygons of the 0 surface.
 
std::vector< AimsVector< uint, D > > & polygon ()
 Get a non const reference to the vector of polygons of the 0 surface.
 
Point3df minimum () const
 Get the inferior point of the box containing all the meshes.
 
Point3df maximum () const
 Get the superior point of the box containing all the meshes.
 
void setMini ()
 Calculates the inferior point of the box containing all the meshes.
 
void setMaxi ()
 Calculates the superior point of the box containing all the meshes.
 
void erase ()
 Clear all the meshes.
 
void updateNormals ()
 Update/Compute the normals.
 
bool operator== (const AimsTimeSurface< D, T > &) const
 
bool operator!= (const AimsTimeSurface< D, T > &other) const
 
AimsTimeSurface< D, T > & operator= (const AimsTimeSurface< D, T > &other)
 
void updateNormals ()
 
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.
 
Point3df _mini
 Inferior point of the box containing all the meshes.
 
Point3df _maxi
 Inferior point of the box containing all the meshes.
 

Friends

std::ostream & operator<< (std::ostream &out, const AimsTimeSurface< D, T > &thing)
 Output stream operator.
 

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 315 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 321 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 319 of file surface.h.

Constructor & Destructor Documentation

◆ AimsTimeSurface() [1/2]

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

Constructor does nothing special.

Definition at line 323 of file surface.h.

Referenced by operator<<, and operator==().

◆ AimsTimeSurface() [2/2]

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

Definition at line 324 of file surface.h.

◆ ~AimsTimeSurface()

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

Destructor does nothing.

Definition at line 329 of file surface.h.

Member Function Documentation

◆ erase()

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

Clear all the meshes.

Definition at line 519 of file surface.h.

References erase().

Referenced by erase(), aims::SurfaceManip::meshMerge(), aims::MeshReader< D, T >::read(), and aims::WavefrontMeshReader< D, T >::read().

◆ header() [1/2]

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

Definition at line 333 of file surface.h.

◆ header() [2/2]

◆ 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 375 of file surface.h.

Referenced by setMaxi().

◆ 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 373 of file surface.h.

Referenced by setMini().

◆ normal() [1/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 357 of file surface.h.

◆ normal() [2/2]

template<int D, class T>
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 354 of file surface.h.

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

◆ operator!=()

template<int D, class T>
bool AimsTimeSurface< D, T >::operator!= ( const AimsTimeSurface< D, T > & other) const
inline

Definition at line 389 of file surface.h.

◆ operator=()

template<int D, class T>
AimsTimeSurface< D, T > & AimsTimeSurface< D, T >::operator= ( const AimsTimeSurface< D, T > & other)
inline

Definition at line 394 of file surface.h.

◆ operator==()

template<int D, typename T>
bool AimsTimeSurface< D, T >::operator== ( const AimsTimeSurface< D, T > & other) const
inline

Definition at line 554 of file surface.h.

References AimsTimeSurface(), and header().

◆ polygon() [1/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 369 of file surface.h.

◆ polygon() [2/2]

◆ 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 501 of file surface.h.

References _maxi, AimsVector< class T, int D >::item(), maximum(), and setMaxi().

Referenced by setMaxi().

◆ 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 483 of file surface.h.

References _mini, AimsVector< class T, int D >::item(), minimum(), and setMini().

Referenced by setMini().

◆ texture() [1/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 363 of file surface.h.

◆ texture() [2/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 360 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 528 of file surface.h.

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

◆ updateNormals() [2/3]

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

Definition at line 536 of file surface.h.

◆ updateNormals() [3/3]

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

Definition at line 545 of file surface.h.

◆ vertex() [1/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 351 of file surface.h.

◆ vertex() [2/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 348 of file surface.h.

Referenced by aims::SurfaceManip::rasterizeMeshWireframe(), aims::GiftiMeshFormat< D, T >::read(), aims::PlyReader< D, T >::read(), soma::FsSurfFormatReader< D >::readVertices(), aims::SurfaceManip::sortPolygonsAlongDirection(), aims::SurfaceManip::surfaceNeighbourDistance(), aims::SurfaceManip::surfaceNeighbours(), aims::SurfaceManip::surfaceNeighbours2ndOrder(), and aims::PlyWriter< D, T >::write().

Friends And Related Symbol 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 574 of file surface.h.

References AimsTimeSurface().

Member Data Documentation

◆ _header

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

◆ _maxi

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

Inferior point of the box containing all the meshes.

Definition at line 417 of file surface.h.

Referenced by AimsTimeSurface< 2, Void >::operator=(), and setMaxi().

◆ _mini

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

Inferior point of the box containing all the meshes.

Definition at line 415 of file surface.h.

Referenced by AimsTimeSurface< 2, Void >::operator=(), and setMini().


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