C++ main module for gpm Package  1.0
MATH_Set.h
Go to the documentation of this file.
1 #ifndef MATH_Set_H
2 #define MATH_Set_H
3 
4 #include "MATH_FunctionNode.h"
5 
15 class MATH_Set : public MATH_FunctionNode {
16  SP_OBJECT(MATH_Set);
17 
18  // ATTRIBUTES
19 public:
20 
21 
22 private:
23 
24 
25 
26 protected:
27  // METHODS
28 
29  // CONSTRUCTORS
30 
33  MATH_Set(void);
34 
35 
36  // DESTRUCTORS
37 
38 
41  virtual ~MATH_Set(void);
42 
43 
44 private:
45 
46 public:
47 
48 
49 
50 
51  // SET methods
52 
53 public:
54  // OTHERS methods
55 
56 
57 
85  virtual int evaluate(const tFlag& action,MATH_Environment& symbols,MATH_Variable& var) const;
86 
87 
94  virtual tBoolean isInside(const int& nParameters,const double* parameters,const double location[3]) const=0;
95 
102  virtual void computeBoundingBox(const int& nParameters,const double* parameters,double location[3],double size[3]) const=0;
103 
104 
105 protected:
110  virtual void evaluateParameters(MATH_Environment& symbols,MATH_Variable& var,double *& parameters,int& nParameters) const=0;
111 };
112 
113 #endif
DEFINE_SPTR(MATH_Set)
virtual void computeBoundingBox(const int &nParameters, const double *parameters, double location[3], double size[3]) const =0
compute the bounding box of the set defined by the parameters
MATH_Set(void)
create
Definition: MATH_Set.cpp:4
This class decribes a variable class for evaluation.
Definition: MATH_Variable.h:16
virtual tBoolean isInside(const int &nParameters, const double *parameters, const double location[3]) const =0
return true if the point at location is inside the set defined by the parameters
#define tBoolean
Definition: types.h:35
DEFINE_SVPTR(MATH_Set)
virtual ~MATH_Set(void)
destroy
Definition: MATH_Set.cpp:7
virtual int evaluate(const tFlag &action, MATH_Environment &symbols, MATH_Variable &var) const
void evaluate the expression
Definition: MATH_Set.cpp:11
This class decribes an environment class.
Definition: MATH_Environment.h:14
virtual void evaluateParameters(MATH_Environment &symbols, MATH_Variable &var, double *&parameters, int &nParameters) const =0
evaluate the parameters of the set
This class decribes a function.
Definition: MATH_FunctionNode.h:21
This class describes a set.
Definition: MATH_Set.h:15
#define tFlag
Definition: types.h:14