summaryrefslogtreecommitdiffstats
path: root/lib/tqwtplot3d/include/qwt3d_parametricsurface.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tqwtplot3d/include/qwt3d_parametricsurface.h')
-rw-r--r--lib/tqwtplot3d/include/qwt3d_parametricsurface.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/lib/tqwtplot3d/include/qwt3d_parametricsurface.h b/lib/tqwtplot3d/include/qwt3d_parametricsurface.h
new file mode 100644
index 0000000..9bcdb9f
--- /dev/null
+++ b/lib/tqwtplot3d/include/qwt3d_parametricsurface.h
@@ -0,0 +1,44 @@
+#ifndef qwt3d_parametricsurface_h__2004_03_05_23_43_begin_guarded_code
+#define qwt3d_parametricsurface_h__2004_03_05_23_43_begin_guarded_code
+
+#include "qwt3d_gridmapping.h"
+
+namespace Qwt3D
+{
+
+class SurfacePlot;
+
+
+//! Abstract base class for parametric surfaces
+/**
+
+*/
+class QWT3D_EXPORT ParametricSurface : public GridMapping
+{
+
+public:
+ ParametricSurface(); //!< Constructs ParametricSurface object w/o assigned SurfacePlot.
+ //! Constructs ParametricSurface object and assigns a SurfacePlot
+ explicit ParametricSurface(Qwt3D::SurfacePlot& plotWidget);
+ //! Constructs ParametricSurface object and assigns a SurfacePlot
+ explicit ParametricSurface(Qwt3D::SurfacePlot* plotWidget);
+ //! Overwrite this
+ virtual Qwt3D::Triple operator()(double u, double v) = 0;
+ //! Assigns a new SurfacePlot and creates a data representation for it.
+ virtual bool create(Qwt3D::SurfacePlot& plotWidget);
+ //! Creates data representation for the actual assigned SurfacePlot.
+ virtual bool create();
+ //! Assigns the object to another widget. To see the changes, you have to call this function before create().
+ void assign(Qwt3D::SurfacePlot& plotWidget);
+ //! Assigns the object to another widget. To see the changes, you have to call this function before create().
+ void assign(Qwt3D::SurfacePlot* plotWidget);
+ //! Provide information about periodicity of the 'u' resp. 'v' domains.
+ void setPeriodic(bool u, bool v);
+
+private:
+ bool uperiodic_, vperiodic_;
+};
+
+} // ns
+
+#endif /* include guarded */