[89] | 1 | #ifndef qwt3d_parametricsurface_h__2004_03_05_23_43_begin_guarded_code
|
---|
| 2 | #define qwt3d_parametricsurface_h__2004_03_05_23_43_begin_guarded_code
|
---|
| 3 |
|
---|
| 4 | #include "qwt3d_gridmapping.h"
|
---|
| 5 |
|
---|
| 6 | namespace Qwt3D
|
---|
| 7 | {
|
---|
| 8 |
|
---|
| 9 | class SurfacePlot;
|
---|
| 10 |
|
---|
| 11 |
|
---|
| 12 | //! Abstract base class for parametric surfaces
|
---|
| 13 | /**
|
---|
| 14 |
|
---|
| 15 | */
|
---|
| 16 | class QWT3D_EXPORT ParametricSurface : public GridMapping
|
---|
| 17 | {
|
---|
| 18 |
|
---|
| 19 | public:
|
---|
| 20 | ParametricSurface(); //!< Constructs ParametricSurface object w/o assigned SurfacePlot.
|
---|
| 21 | //! Constructs ParametricSurface object and assigns a SurfacePlot
|
---|
| 22 | explicit ParametricSurface(Qwt3D::SurfacePlot& plotWidget);
|
---|
| 23 | //! Constructs ParametricSurface object and assigns a SurfacePlot
|
---|
| 24 | explicit ParametricSurface(Qwt3D::SurfacePlot* plotWidget);
|
---|
| 25 | //! Overwrite this
|
---|
| 26 | virtual Qwt3D::Triple operator()(double u, double v) = 0;
|
---|
| 27 | //! Assigns a new SurfacePlot and creates a data representation for it.
|
---|
| 28 | virtual bool create(Qwt3D::SurfacePlot& plotWidget);
|
---|
| 29 | //! Creates data representation for the actual assigned SurfacePlot.
|
---|
| 30 | virtual bool create();
|
---|
| 31 | //! Assigns the object to another widget. To see the changes, you have to call this function before create().
|
---|
| 32 | void assign(Qwt3D::SurfacePlot& plotWidget);
|
---|
| 33 | //! Assigns the object to another widget. To see the changes, you have to call this function before create().
|
---|
| 34 | void assign(Qwt3D::SurfacePlot* plotWidget);
|
---|
| 35 | //! Provide information about periodicity of the 'u' resp. 'v' domains.
|
---|
| 36 | void setPeriodic(bool u, bool v);
|
---|
| 37 |
|
---|
| 38 | private:
|
---|
| 39 | bool uperiodic_, vperiodic_;
|
---|
| 40 | };
|
---|
| 41 |
|
---|
| 42 | } // ns
|
---|
| 43 |
|
---|
| 44 | #endif /* include guarded */
|
---|