C++ main module for gpm Package  1.0
MATH_RectangleSet.h
Go to the documentation of this file.
1 #ifndef MATH_RectangleSet_H
2 #define MATH_RectangleSet_H
3 
4 #include "MATH_Set.h"
5 
23 class MATH_RectangleSet : public MATH_Set{
24  SP_OBJECT(MATH_RectangleSet);
25 
26  // ATTRIBUTES
27 
28 
29 private:
30 
31 
32 protected:
33  // METHODS
34 
35  // CONSTRUCTORS
36 
39  MATH_RectangleSet(void);
40 
41 
42 
43  // DESTRUCTORS
44 
45 
48  virtual ~MATH_RectangleSet(void);
49 
50 
51 private:
52 
53 public:
56  static inline SP::MATH_RectangleSet New() {
57  SP::MATH_RectangleSet p(new MATH_RectangleSet(),MATH_RectangleSet::Delete());
58  p->setThis(p);
59  p->setSymbol("BOX");
60  return p;
61  }
62 
65  virtual SP::MATH_FunctionNode newInstance() const {
66  return New();
67  }
68 
69  // SET methods
70 
71 
72 
73  // GET methods
74 
75 
76 
77 public:
78  // OTHERS methods
79 
80 
81 
88  virtual void computeBoundingBox(const int& nParameters,const double* parameters,double minPoint[3],double size[3]) const;
89 
96  virtual tBoolean isInside(const int& nParameters,const double* parameters,const double p[3]) const;
97 
98 
99 protected:
104  virtual void evaluateParameters(MATH_Environment& symbols,MATH_Variable& var,double *& parameters,int& nParameters) const;
105 
106 };
107 
108 #endif
virtual SP::MATH_FunctionNode newInstance() const
create a node expression
Definition: MATH_RectangleSet.h:65
This class decribes a variable class for evaluation.
Definition: MATH_Variable.h:16
virtual void computeBoundingBox(const int &nParameters, const double *parameters, double minPoint[3], double size[3]) const
compute the bounding box of the set defined by the parameters
Definition: MATH_RectangleSet.cpp:51
#define tBoolean
Definition: types.h:35
DEFINE_SPTR(MATH_RectangleSet)
static SP::MATH_RectangleSet New()
create a set leaf
Definition: MATH_RectangleSet.h:56
virtual tBoolean isInside(const int &nParameters, const double *parameters, const double p[3]) const
return true if the point at location is inside the set defined buy the parameters ...
Definition: MATH_RectangleSet.cpp:59
virtual ~MATH_RectangleSet(void)
destroy
Definition: MATH_RectangleSet.cpp:7
This class describes a rectangle set.
Definition: MATH_RectangleSet.h:23
MATH_RectangleSet(void)
create
Definition: MATH_RectangleSet.cpp:4
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_RectangleSet.cpp:10
This class describes a set.
Definition: MATH_Set.h:15
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106