Overture  Version 25
Macros | Variables
contourOpt.C File Reference
#include "Overture.h"
#include "GL_GraphicsInterface.h"
#include "ParallelUtility.h"
#include "DataPointMapping.h"
#include "interpPoints.h"
#include "conversion.h"
#include "UnstructuredMapping.h"
#include "display.h"
#include "CompositeGrid.h"
#include "PlotIt.h"
#include <float.h>
Include dependency graph for contourOpt.C:

Macros

#define FOR_3(i1, i2, i3, I1, I2, I3)   i1Bound=I1.getBound(); i2Bound=I2.getBound(); i3Bound=I3.getBound(); for( i3=I3.getBase(); i3<=i3Bound; i3++ ) for( i2=I2.getBase(); i2<=i2Bound; i2++ ) for( i1=I1.getBase(); i1<=i1Bound; i1++ )
 
#define FOR_3WithStride(i1, i2, i3, m1, m2, m3, I1, I2, I3)   i1Bound=I1.getBound(); i2Bound=I2.getBound(); i3Bound=I3.getBound(); for( i3=I3.getBase(); i3<=i3Bound; i3+=m3 ) for( i2=I2.getBase(); i2<=i2Bound; i2+=m2 ) for( i1=I1.getBase(); i1<=i1Bound; i1+=m1 )
 
#define ForBoundary(side, axis)   for( axis=0; axis<gc.numberOfDimensions(); axis++ ) for( side=0; side<=1; side++ )
 
#define COLOUR_INDEX(uVal)   min(max(int((uVal-uMin)*delta255+.5),0),255)
 
#define MASK(i0, i1, i2)   maskp[i0+maskDim0*(i1+maskDim1*(i2))]
 
#define CMASK(i1, i2, i3)   (MASK(i1,i2,i3)!=0 && MASK(i1+1,i2,i3)!=0 && MASK(i1,i2+1,i3)!=0 && MASK(i1+1,i2+1,i3)!=0 && (!plotRefinements || (!(MASK(i1 ,i2 ,i3) & isHiddenByRefinement) && !(MASK(i1+1,i2 ,i3) & isHiddenByRefinement) && !(MASK(i1 ,i2+1,i3) & isHiddenByRefinement) && !(MASK(i1+1,i2+1,i3) & isHiddenByRefinement) )))
 
#define U(i0, i1, i2, c)   up[(i0)*d0+(i1)*d1+(i2)*d2+(c)*dc]
 
#define XSCALE(x)   (psp.xScaleFactor*(x))
 
#define YSCALE(y)   (psp.yScaleFactor*(y))
 
#define ZSCALE(z)   (psp.zScaleFactor*(z))
 
#define COORD0(i0, i1, i2)   XSCALE((xa+dx0*(i0-i0a)))
 
#define COORD1(i0, i1, i2)   YSCALE((ya+dy0*(i1-i1a)))
 
#define COORD2(i0, i1, i2)   ZSCALE((za+dz0*(i2-i2a)))
 
#define XC(i, j)   xc[i+2*(j)]
 
#define COORD(i0, i1, i2, i3)   coordp[i0+coordDim0*(i1+coordDim1*(i2+coordDim2*(i3)))]
 
#define COORD0(i0, i1, i2)   XSCALE(coordp[i0+coordDim0*(i1+coordDim1*(i2+coordDim2*(0)))])
 
#define COORD1(i0, i1, i2)   YSCALE(coordp[i0+coordDim0*(i1+coordDim1*(i2+coordDim2*(1)))])
 
#define COORD2(i0, i1, i2)   ZSCALE(coordp[i0+coordDim0*(i1+coordDim1*(i2+coordDim2*(2)))])
 
#define XC(i, j)   xc[i+2*(j)]
 
#define X(i0, i1)   xp[i0+xDim0*(i1)]
 
#define U(i0, i1)   up[i0+uDim0*(i1)]
 
#define ELEMENT(i0, i1)   elementp[i0+elementDim0*(i1)]
 

Variables

int colourTable [256][3]
 

Macro Definition Documentation

#define CMASK (   i1,
  i2,
  i3 
)    (MASK(i1,i2,i3)!=0 && MASK(i1+1,i2,i3)!=0 && MASK(i1,i2+1,i3)!=0 && MASK(i1+1,i2+1,i3)!=0 && (!plotRefinements || (!(MASK(i1 ,i2 ,i3) & isHiddenByRefinement) && !(MASK(i1+1,i2 ,i3) & isHiddenByRefinement) && !(MASK(i1 ,i2+1,i3) & isHiddenByRefinement) && !(MASK(i1+1,i2+1,i3) & isHiddenByRefinement) )))
#define COLOUR_INDEX (   uVal)    min(max(int((uVal-uMin)*delta255+.5),0),255)

Referenced by PlotIt::contourOpt2d().

#define COORD (   i0,
  i1,
  i2,
  i3 
)    coordp[i0+coordDim0*(i1+coordDim1*(i2+coordDim2*(i3)))]
#define COORD0 (   i0,
  i1,
  i2 
)    XSCALE((xa+dx0*(i0-i0a)))
#define COORD0 (   i0,
  i1,
  i2 
)    XSCALE(coordp[i0+coordDim0*(i1+coordDim1*(i2+coordDim2*(0)))])
#define COORD1 (   i0,
  i1,
  i2 
)    YSCALE((ya+dy0*(i1-i1a)))
#define COORD1 (   i0,
  i1,
  i2 
)    YSCALE(coordp[i0+coordDim0*(i1+coordDim1*(i2+coordDim2*(1)))])
#define COORD2 (   i0,
  i1,
  i2 
)    ZSCALE((za+dz0*(i2-i2a)))
#define COORD2 (   i0,
  i1,
  i2 
)    ZSCALE(coordp[i0+coordDim0*(i1+coordDim1*(i2+coordDim2*(2)))])
#define ELEMENT (   i0,
  i1 
)    elementp[i0+elementDim0*(i1)]

Referenced by PlotIt::contourOpt2d().

#define FOR_3 (   i1,
  i2,
  i3,
  I1,
  I2,
  I3 
)    i1Bound=I1.getBound(); i2Bound=I2.getBound(); i3Bound=I3.getBound(); for( i3=I3.getBase(); i3<=i3Bound; i3++ ) for( i2=I2.getBase(); i2<=i2Bound; i2++ ) for( i1=I1.getBase(); i1<=i1Bound; i1++ )
#define FOR_3WithStride (   i1,
  i2,
  i3,
  m1,
  m2,
  m3,
  I1,
  I2,
  I3 
)    i1Bound=I1.getBound(); i2Bound=I2.getBound(); i3Bound=I3.getBound(); for( i3=I3.getBase(); i3<=i3Bound; i3+=m3 ) for( i2=I2.getBase(); i2<=i2Bound; i2+=m2 ) for( i1=I1.getBase(); i1<=i1Bound; i1+=m1 )

Referenced by PlotIt::contourOpt2d().

#define ForBoundary (   side,
  axis 
)    for( axis=0; axis<gc.numberOfDimensions(); axis++ ) for( side=0; side<=1; side++ )
#define MASK (   i0,
  i1,
  i2 
)    maskp[i0+maskDim0*(i1+maskDim1*(i2))]
#define U (   i0,
  i1,
  i2,
  c 
)    up[(i0)*d0+(i1)*d1+(i2)*d2+(c)*dc]
#define U (   i0,
  i1 
)    up[i0+uDim0*(i1)]
#define X (   i0,
  i1 
)    xp[i0+xDim0*(i1)]
#define XC (   i,
 
)    xc[i+2*(j)]
#define XC (   i,
 
)    xc[i+2*(j)]
#define XSCALE (   x)    (psp.xScaleFactor*(x))
#define YSCALE (   y)    (psp.yScaleFactor*(y))
#define ZSCALE (   z)    (psp.zScaleFactor*(z))

Variable Documentation

int colourTable[256][3]