C++ main module for gpm Package  1.0
MATH_FullSet.h
Go to the documentation of this file.
1 #ifndef MATH_FullSet_H
2 #define MATH_FullSet_H
3 
4 #include "MATH_Set.h"
5 #include "MATH_kBoxSet.h"
6 
18 class MATH_FullSet : public MATH_Set {
19  SP_OBJECT(MATH_FullSet);
20 
21  // ATTRIBUTES
22 public:
25  static const double BOUND;
26 private:
27 
28 
29 protected:
30  // METHODS
31 
32  // CONSTRUCTORS
33 
36  MATH_FullSet(void);
37 
38 
39 
40  // DESTRUCTORS
41 
42 
45  virtual ~MATH_FullSet(void);
46 
47 
48 private:
49 
50 public:
53  static inline SP::MATH_FullSet New() {
54  SP::MATH_FullSet p(new MATH_FullSet(),MATH_FullSet::Delete());
55  p->setThis(p);
56  p->setSymbol("FULL");
57  return p;
58  }
59 
60 
63  virtual SP::MATH_FunctionNode newInstance() const {
64  return New();
65  }
66  // SET methods
67 
68 
69 
70  // GET methods
71 
72 
73 
74 public:
75  // OTHERS methods
76 
77 
78 
85  virtual void computeBoundingBox(const int& nParameters,const double* parameters,double location[3],double size[3]) const {
86  for (int k=0;k<3;k++) {
87  location[k]=-BOUND;
88  size[k]=2*BOUND;
89  }
90 
91  }
92 
93 
100  virtual tBoolean isInside(const int& nParameters,const double* parameters,const double location[3]) const {
101  return true;
102  }
103 
104 protected:
109  virtual void evaluateParameters(MATH_Environment& symbols,MATH_Variable& var,double *& parameters,int& nParameters) const {
110  }
111 
112 
113 };
114 
115 #endif
This class decribes a variable class for evaluation.
Definition: MATH_Variable.h:16
static SP::MATH_FullSet New()
create a set leaf
Definition: MATH_FullSet.h:53
#define tBoolean
Definition: types.h:35
MATH_FullSet(void)
create
Definition: MATH_FullSet.cpp:6
virtual void evaluateParameters(MATH_Environment &symbols, MATH_Variable &var, double *&parameters, int &nParameters) const
evaluate the arguments
Definition: MATH_FullSet.h:109
virtual void computeBoundingBox(const int &nParameters, const double *parameters, double location[3], double size[3]) const
compute the bounding box of the set defined by the parameters
Definition: MATH_FullSet.h:85
DEFINE_SPTR(MATH_FullSet)
static const double BOUND
bound if the infinite box direction
Definition: MATH_FullSet.h:25
This class decribes an environment class.
Definition: MATH_Environment.h:14
virtual tBoolean isInside(const int &nParameters, const double *parameters, const double location[3]) const
return true if the point at location is inside the set defined buy the parameters ...
Definition: MATH_FullSet.h:100
virtual ~MATH_FullSet(void)
destroy
Definition: MATH_FullSet.cpp:9
This class describes a disk set.
Definition: MATH_Full.h:23
virtual SP::MATH_FunctionNode newInstance() const
create a node expression
Definition: MATH_FullSet.h:63
This class describes a set.
Definition: MATH_Set.h:15
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106