Skip to content
Snippets Groups Projects
Commit c54d673f authored by Laurent Van Migroet's avatar Laurent Van Migroet
Browse files

added protected for data members to inherit

parent 5ff49ce9
No related branches found
No related tags found
No related merge requests found
...@@ -95,6 +95,7 @@ public: ...@@ -95,6 +95,7 @@ public:
class gLevelsetSphere : public gLevelsetPrimitive class gLevelsetSphere : public gLevelsetPrimitive
{ {
protected:
double xc, yc, zc, r; double xc, yc, zc, r;
public: public:
gLevelsetSphere (const double &x, const double &y, const double &z, const double &R, int &tag) : gLevelsetPrimitive(tag), xc(x), yc(y), zc(z), r(R) {} gLevelsetSphere (const double &x, const double &y, const double &z, const double &R, int &tag) : gLevelsetPrimitive(tag), xc(x), yc(y), zc(z), r(R) {}
...@@ -105,6 +106,7 @@ public: ...@@ -105,6 +106,7 @@ public:
class gLevelsetPlane : public gLevelsetPrimitive class gLevelsetPlane : public gLevelsetPrimitive
{ {
protected:
double a, b, c, d; double a, b, c, d;
public: public:
// define the plane _a*x+_b*y+_c*z+_d, with outward normal (a,b,c) // define the plane _a*x+_b*y+_c*z+_d, with outward normal (a,b,c)
...@@ -211,6 +213,7 @@ public: ...@@ -211,6 +213,7 @@ public:
class gLevelsetReverse : public gLevelset class gLevelsetReverse : public gLevelset
{ {
protected:
const gLevelset *ls; const gLevelset *ls;
public: public:
gLevelsetReverse (const gLevelset *p) : ls(p){} gLevelsetReverse (const gLevelset *p) : ls(p){}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment