From f333c37aa322f3f15e35fa90125734f7695e7b0b Mon Sep 17 00:00:00 2001 From: Jean-Francois Remacle <jean-francois.remacle@uclouvain.be> Date: Mon, 19 Mar 2001 14:15:58 +0000 Subject: [PATCH] *** empty log message *** --- Plugin/CutMap.h | 25 +++++++++++++++++++++++++ Plugin/CutPlane.h | 25 +++++++++++++++++++++++++ Plugin/CutSphere.h | 24 ++++++++++++++++++++++++ Plugin/LevelsetPlugin.h | 11 +++++++++++ 4 files changed, 85 insertions(+) create mode 100644 Plugin/CutMap.h create mode 100644 Plugin/CutPlane.h create mode 100644 Plugin/CutSphere.h create mode 100644 Plugin/LevelsetPlugin.h diff --git a/Plugin/CutMap.h b/Plugin/CutMap.h new file mode 100644 index 0000000000..84b004ff3f --- /dev/null +++ b/Plugin/CutMap.h @@ -0,0 +1,25 @@ +#ifndef _CUTMAP_H_ +#define _CUTMAP_H +#include "LevelsetPlugin.h" +extern "C" +{ + GMSH_Plugin *GMSH_RegisterCutMapPlugin (); +} + +class GMSH_CutMapPlugin : public GMSH_LevelsetPlugin +{ + /*we cut the othe map by the iso A of the View iView */ + double A; + int iView; + virtual double levelset (double x, double y, double z) const; +public: + GMSH_CutMapPlugin(double A, int IVIEW); + virtual void getName (char *name) const; + virtual void getInfos (char *author, + char *copyright, + char *help_text) const; + virtual void CatchErrorMessage (char *errorMessage) const; + virtual int getNbOptions() const; + virtual void GetOption (int iopt, StringXNumber *option) const; +}; +#endif diff --git a/Plugin/CutPlane.h b/Plugin/CutPlane.h new file mode 100644 index 0000000000..784c5fdcae --- /dev/null +++ b/Plugin/CutPlane.h @@ -0,0 +1,25 @@ +#ifndef _CUTPLANE_H_ +#define _CUTPLANE_H +#include "LevelsetPlugin.h" + +extern "C" +{ + GMSH_Plugin *GMSH_RegisterCutPlanePlugin (); +} + +class GMSH_CutPlanePlugin : public GMSH_LevelsetPlugin +{ + /*Plane a x + b y + c z + d = 0*/ + double a,b,c,d; + virtual double levelset (double x, double y, double z) const; +public: + GMSH_CutPlanePlugin(double A, double B, double C, double D); + virtual void getName (char *name) const; + virtual void getInfos (char *author, + char *copyright, + char *help_text) const; + virtual void CatchErrorMessage (char *errorMessage) const; + virtual int getNbOptions() const; + virtual void GetOption (int iopt, StringXNumber *option) const; +}; +#endif diff --git a/Plugin/CutSphere.h b/Plugin/CutSphere.h new file mode 100644 index 0000000000..2bd20a206e --- /dev/null +++ b/Plugin/CutSphere.h @@ -0,0 +1,24 @@ +#ifndef _CUTSPHERE_H_ +#define _CUTSPHERE_H +#include "LevelsetPlugin.h" +extern "C" +{ + GMSH_Plugin *GMSH_RegisterCutSpherePlugin (); +} + +class GMSH_CutSpherePlugin : public GMSH_LevelsetPlugin +{ + /*Sphere (x-a)^2 + (y-b)^2 + (z-c)^2 - r^2 = 0*/ + double a,b,c,r; + virtual double levelset (double x, double y, double z) const; +public: + GMSH_CutSpherePlugin(double A, double B, double C, double R); + virtual void getName (char *name) const; + virtual void getInfos (char *author, + char *copyright, + char *help_text) const; + virtual void CatchErrorMessage (char *errorMessage) const; + virtual int getNbOptions() const; + virtual void GetOption (int iopt, StringXNumber *option) const; +}; +#endif diff --git a/Plugin/LevelsetPlugin.h b/Plugin/LevelsetPlugin.h new file mode 100644 index 0000000000..f4fa0d0e9e --- /dev/null +++ b/Plugin/LevelsetPlugin.h @@ -0,0 +1,11 @@ +#ifndef _LEVELSETPLUGIN_H_ +#define _LEVELSETPLUGIN_H_ +#include "Plugin.h" + +class GMSH_LevelsetPlugin : public GMSH_Post_Plugin +{ + virtual double levelset (double x, double y, double z) const = 0; +public: + virtual Post_View *execute (Post_View *); +}; +#endif -- GitLab