A.I.M.S


cartodatavolume.h File Reference
Include dependency graph for cartodatavolume.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AimsData< T >
 
class  carto::DataTypeCode< AimsData< T > >
 
struct  AimsData< T >::Private
 

Namespaces

 carto
 

Macros

#define ForEach4d(thing, x, y, z, t)
 
#define ForEach3d(thing, x, y, z)
 
#define ForEach2d(thing, x, y)
 
#define ForEach1d(thing, x)   for ( x = 0; x < thing.dimX(); x++ )
 
#define ForEach4dp(thing, x, y, z, t)
 
#define ForEach3dp(thing, x, y, z)
 
#define ForEach2dp(thing, x, y)
 
#define ForEach1dp(thing, x)   for ( x = 0; x < thing->dimX(); x++ )
 

Functions

template<typename T >
carto::Object carto::getObjectHeader (AimsData< T > &obj)
 
template<typename T >
AimsData< T > operator+ (const AimsData< T > &firstThing, const AimsData< T > &secondThing)
 
template<typename T >
AimsData< T > operator- (const AimsData< T > &firstThing, const AimsData< T > &secondThing)
 
template<typename T >
AimsData< T > operator* (const AimsData< T > &firstThing, float scale)
 

Macro Definition Documentation

#define ForEach1d (   thing,
 
)    for ( x = 0; x < thing.dimX(); x++ )
#define ForEach1dp (   thing,
 
)    for ( x = 0; x < thing->dimX(); x++ )

Definition at line 1324 of file cartodatavolume.h.

#define ForEach2d (   thing,
  x,
 
)
Value:
for ( y = 0; y < thing.dimY(); y++ ) \
for ( x = 0; x < thing.dimX(); x++ )

Definition at line 1301 of file cartodatavolume.h.

#define ForEach2dp (   thing,
  x,
 
)
Value:
for ( y = 0; y < thing->dimY(); y++ ) \
for ( x = 0; x < thing->dimX(); x++ )

Definition at line 1320 of file cartodatavolume.h.

#define ForEach3dp (   thing,
  x,
  y,
 
)
Value:
for ( z = 0; z < thing->dimZ(); z++ ) \
for ( y = 0; y < thing->dimY(); y++ ) \
for ( x = 0; x < thing->dimX(); x++ )

Definition at line 1315 of file cartodatavolume.h.

#define ForEach4d (   thing,
  x,
  y,
  z,
 
)
Value:
for ( t = 0; t < thing.dimT(); t++ ) \
for ( z = 0; z < thing.dimZ(); z++ ) \
for ( y = 0; y < thing.dimY(); y++ ) \
for ( x = 0; x < thing.dimX(); x++ )

Definition at line 1290 of file cartodatavolume.h.

Referenced by AimsFlip< T >::doXX(), AimsFlip< T >::doXXYY(), AimsFlip< T >::doXXYYZZ(), AimsFlip< T >::doXXZZ(), AimsFlip< T >::doXY(), AimsFlip< T >::doXZ(), AimsFlip< T >::doYY(), AimsFlip< T >::doYYZZ(), AimsFlip< T >::doYZ(), AimsFlip< T >::doZZ(), and aims::SpmWriter< T >::write().

#define ForEach4dp (   thing,
  x,
  y,
  z,
 
)
Value:
for ( t = 0; t < thing->dimT(); t++ ) \
for ( z = 0; z < thing->dimZ(); z++ ) \
for ( y = 0; y < thing->dimY(); y++ ) \
for ( x = 0; x < thing->dimX(); x++ )

Definition at line 1309 of file cartodatavolume.h.

Function Documentation

template<typename T >
AimsData<T> operator* ( const AimsData< T > &  firstThing,
float  scale 
)
inline

Definition at line 1280 of file cartodatavolume.h.

References AimsData< T >::volume().

template<typename T >
AimsData<T> operator+ ( const AimsData< T > &  firstThing,
const AimsData< T > &  secondThing 
)
inline

Definition at line 1259 of file cartodatavolume.h.

References AimsData< T >::volume().

template<typename T >
AimsData<T> operator- ( const AimsData< T > &  firstThing,
const AimsData< T > &  secondThing 
)
inline

Definition at line 1270 of file cartodatavolume.h.

References AimsData< T >::volume().