C++ main module for gpm Package  1.0
MATH_ParableSet.h
Go to the documentation of this file.
1 #ifndef MATH_ParableSet_H
2 #define MATH_ParableSet_H
3 
4 #include "MATH_Set.h"
5 
22 class MATH_ParableSet : public MATH_Set {
23  SP_OBJECT(MATH_ParableSet);
24 
25  // ATTRIBUTES
26 public:
27 
28 
29 protected:
30  // METHODS
31 
32  // CONSTRUCTORS
33 
36  MATH_ParableSet(void);
37 
38 
39 
40  // DESTRUCTORS
41 
42 
45  virtual ~MATH_ParableSet(void);
46 
47 
48 private:
49 
50 public:
53  static inline SP::MATH_ParableSet New() {
54  SP::MATH_ParableSet p(new MATH_ParableSet(),MATH_ParableSet::Delete());
55  p->setThis(p);
56  p->setSymbol("PARABLE");
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 
87 
94  virtual tBoolean isInside(const int& nParameters,const double* parameters,const double location[3]) const;
95 
96 protected:
101  virtual void evaluateParameters(MATH_Environment& symbols,MATH_Variable& var,double *& parameters,int& nParameters) const;
102 
103 
104 };
105 
106 #endif
MATH_ParableSet(void)
create
Definition: MATH_ParableSet.cpp:5
This class decribes a variable class for evaluation.
Definition: MATH_Variable.h:16
virtual SP::MATH_FunctionNode newInstance() const
create a node expression
Definition: MATH_ParableSet.h:63
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_ParableSet.cpp:53
#define tBoolean
Definition: types.h:35
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_ParableSet.cpp:73
DEFINE_SPTR(MATH_ParableSet)
This class describes a parable set.
Definition: MATH_ParableSet.h:22
static SP::MATH_ParableSet New()
create a set leaf
Definition: MATH_ParableSet.h:53
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
evaluate the arguments
Definition: MATH_ParableSet.cpp:11
virtual ~MATH_ParableSet(void)
destroy
Definition: MATH_ParableSet.cpp:8
This class describes a set.
Definition: MATH_Set.h:15
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106