38 vector < unsigned int >
shape ( 3 );
61 double x = x_range.
low () + 0.5 * dx;
64 double y_low = y_range.
low () + 0.5 * dy;
66 vector < double > coord ( 2 );
72 for (
unsigned int i = 0; i <
m_steps; i++, x += dx ) {
75 for (
unsigned int j = 0; j <
m_steps; j++, y += dy ) {
77 double value =
function -> operator() ( coord );
hippodraw::FunctionBase class interface
A namespace to set the standard for indexing into 2 dimension data point tuple.
A PointRep class that draws a contour lines.
ContourFunctionRep class interface.
NTuple * m_ntuple
The table of function values from which to build the contours.
double length() const
Returns the length of the range object.
hippodraw::NTuple class interface.
void drawProjectedValues(const Range &x_range, const Range &y_range, const FunctionBase *function, TransformBase *transform, ViewBase *view)
Draws a two dimension; function as contour lines.
double low() const
Returns the minimum of the range object.
A DataSource class implemented with std::vector<double> to store the column data. ...
Expresses a range of values.
virtual void setValueTransform(BinToColor *)
Sets the value transform.
A function that can be added to a DataRep and used in a fitter.
A transform that transforms coordinates from one coordinate system to another.
The abstract base class for views.
hippodraw::DataPointTuple namespace interface
unsigned int m_steps
The number of steps taken to calculate function values.
A namespace to set the standard for indexing into 3 dimension data point tuple.
error on X or half bin width
The class derived from the BinToColor class.
ContourFunctionRep()
The default constructor.
BinToBlack class interface.
virtual void drawProjectedValues(const DataSource *ntuple, TransformBase *transform, ViewBase *view)
Draws the projected values.
~ContourFunctionRep()
The destructor.
std::vector< intptr_t > shape(numeric::array arr)