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

Friends

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

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

Constructor does nothing special.

Definition at line 323 of file surface.h.

◆ ~AimsTimeSurface()

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

Destructor does nothing.

Definition at line 325 of file surface.h.

Member Function Documentation

◆ erase()

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

◆ header() [1/2]

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

Definition at line 329 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 371 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 369 of file surface.h.

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

◆ normal() [2/2]

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

◆ operator!=()

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

Definition at line 385 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 540 of file surface.h.

References AimsTimeSurface< D, T >::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 365 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 487 of file surface.h.

References AimsVector< class, D >::item().

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

References AimsVector< class, D >::item().

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

Referenced by aims::SurfaceManip::splitTexturedMesh(), and aims::WavefrontMeshWriter< D, T >::write().

◆ updateNormals() [1/3]

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

◆ updateNormals() [2/3]

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

Definition at line 522 of file surface.h.

◆ updateNormals() [3/3]

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

Definition at line 531 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 347 of file surface.h.

◆ vertex() [2/2]

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

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

Member Data Documentation

◆ _header

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

Header.

Definition at line 399 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 403 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 401 of file surface.h.


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