36 #define TF_AFFPGPLOT_CC_VERSION \ 37 "TF_AFFPGPLOT_CC V1.1" 38 #define TF_AFFPGPLOT_CC_CVSID \ 43 #include<aff/fortranshape.h> 44 #include<aff/lib/collector.h> 57 aff::FortranArray<Tarray> fa(a,
true);
58 float* pa=fa.castedpointer<
float>();
65 dev.
gray(pa, d1, d2, f1, l1, f2, l2,
96 gray(dev,a,vrange,xisfirst);
104 const bool& xisfirst)
107 Tarray::Tshape shape(a.shape());
108 shape.setfirst(Tarray::Tshape::TIndexVec(1));
110 int ix,iy,ibx,iby,nx,ny,fx,fy;
135 retval[ibx]=xrange.
min-retval[ix]*(float(fx)-0.5);
136 retval[iby]=yrange.
min-retval[iy]*(float(fy)-0.5);
166 return(aff::func::util::collect<Tarray::Tcoc, util::Extractrange>(a));
171 return(aff::func::util::collect<Tseries::Tcoc, util::Extractrange>(a));
basic_device & qwin(float *x1, float *x2, float *y1, float *y2)
inquire window boundary coordinates
contains all pgplot stuff
Trange array_value_range(const Tarray::Tcoc &a)
return range of values
pgplot functions supporting aff containers (prototypes)
pgplot::basic_device & gray(pgplot::basic_device &dev, const Tarray &a, const pgplot::Trange &range, const Ttransform &tr)
function to plot gray image
Trange x
coordinate ranges
Trange & extend(const Trange &range)
extend this range if argument range is larger
float fullrange() const
return absolute range
aff::Array< float > Tarray
array type to be passed to gray function
Trange series_value_range(const Tseries::Tcoc &a)
aff::SimpleRigidArray< float, 6 > Ttransform
transform matrix for gray shade plot function
basic_device & gray(const float *a, int idim, int jdim, int i1, int i2, int j1, int j2, float fg, float bg, const float *tr)
plot gray scale image
float min
range [min....max]
Ttransform create_transform(const Tarray::Tcoc &a, const pgplot::Trect &rect, const bool &xisfirst)
create standard transform array