22 namespace dp = hippodraw::DataPoint3DTuple;
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 );
BinToBlack class interface.
A PointRep class that draws a contour lines.
A transform that transforms coordinates from one coordinate system to another.
~ContourFunctionRep()
The destructor.
unsigned int m_steps
The number of steps taken to calculate function values.
virtual void setValueTransform(BinToColor *)
Sets the value transform.
std::vector< intptr_t > shape(numeric::array arr)
NTuple * m_ntuple
The table of function values from which to build the contours.
hippodraw::NTuple class interface.
error on X or half bin width
double length() const
Returns the length of the range object.
The class derived from the BinToColor class.
ContourFunctionRep class interface.
A DataSource class implemented with std::vector<double> to store the column data. ...
The abstract base class for views.
A function that can be added to a DataRep and used in a fitter.
double low() const
Returns the minimum of the range object.
virtual void drawProjectedValues(const DataSource *ntuple, TransformBase *transform, ViewBase *view)
Draws the projected values.
Expresses a range of values.
hippodraw::FunctionBase class interface
hippodraw::DataPointTuple namespace 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.
ContourFunctionRep()
The default constructor.