C++ main module for gpm Package  1.0
MATH_DiskSet.h
Go to the documentation of this file.
1 #ifndef MATH_DiskSet_H
2 #define MATH_DiskSet_H
3 
4 #include "MATH_Set.h"
5 
23 class MATH_DiskSet : public MATH_Set {
24  SP_OBJECT(MATH_DiskSet);
25 
26  // ATTRIBUTES
27 public:
28  static const tFlag ALL;
29 private:
30  tFlag mOrientation;
31 
32 protected:
33  // METHODS
34 
35  // CONSTRUCTORS
36 
39  MATH_DiskSet(void);
40 
41 
42 
43  // DESTRUCTORS
44 
45 
48  virtual ~MATH_DiskSet(void);
49 
50 
51 private:
52 
53 public:
56  static inline SP::MATH_DiskSet New() {
57  SP::MATH_DiskSet p(new MATH_DiskSet(),MATH_DiskSet::Delete());
58  p->setThis(p);
59  p->setSymbol("DISK");
60  return p;
61  }
62 
63 
66  virtual SP::MATH_FunctionNode newInstance() const {
67  return New();
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 location[3],double size[3]) const;
89 
90 
97  virtual tBoolean isInside(const int& nParameters,const double* parameters,const double location[3]) const;
98 
99 protected:
104  virtual void evaluateParameters(MATH_Environment& symbols,MATH_Variable& var,double *& parameters,int& nParameters) const;
105 
106 
107 };
108 
109 #endif
virtual void evaluateParameters(MATH_Environment &symbols, MATH_Variable &var, double *&parameters, int &nParameters) const
evaluate the arguments
Definition: MATH_DiskSet.cpp:11
This class decribes a variable class for evaluation.
Definition: MATH_Variable.h:16
static SP::MATH_DiskSet New()
create a set leaf
Definition: MATH_DiskSet.h:56
#define tBoolean
Definition: types.h:35
virtual ~MATH_DiskSet(void)
destroy
Definition: MATH_DiskSet.cpp:8
virtual SP::MATH_FunctionNode newInstance() const
create a node expression
Definition: MATH_DiskSet.h:66
static const tFlag ALL
Definition: MATH_DiskSet.h:28
DEFINE_SPTR(MATH_DiskSet)
MATH_DiskSet(void)
create
Definition: MATH_DiskSet.cpp:5
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_DiskSet.cpp:56
This class decribes an environment class.
Definition: MATH_Environment.h:14
This class describes a disk set.
Definition: MATH_DiskSet.h:23
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_DiskSet.cpp:76
This class describes a set.
Definition: MATH_Set.h:15
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106
#define tFlag
Definition: types.h:14