aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/contourpy/src/mpl2005.h
blob: e112880765b1852ba884d71d553aa1897dadd71e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef CONTOURPY_MPL_2005_H
#define CONTOURPY_MPL_2005_H

#include "contour_generator.h"
#include "mpl2005_original.h"

namespace contourpy {

class Mpl2005ContourGenerator : public ContourGenerator
{
public:
    Mpl2005ContourGenerator(
        const CoordinateArray& x, const CoordinateArray& y, const CoordinateArray& z,
        const MaskArray& mask, index_t x_chunk_size, index_t y_chunk_size);

    ~Mpl2005ContourGenerator();

    py::tuple filled(const double& lower_level, const double& upper_level);

    py::tuple get_chunk_count() const;  // Return (y_chunk_count, x_chunk_count)
    py::tuple get_chunk_size() const;   // Return (y_chunk_size, x_chunk_size)

    py::tuple lines(const double& level);

private:
    CoordinateArray _x, _y, _z;
    Csite *_site;
};

} // namespace contourpy

#endif // CONTOURPY_MPL_2005_H