OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Ellipse.h
Go to the documentation of this file.
1 #ifndef MSLANG_ELLIPSE_H
2 #define MSLANG_ELLIPSE_H
3 
4 #include "Utilities/MSLang.h"
5 
6 namespace mslang {
7  struct Ellipse: public Base {
8  double width_m;
9  double height_m;
10 
12  Base(),
13  width_m(0.0),
14  height_m(0.0)
15  { }
16 
17  Ellipse(const Ellipse &right):
18  Base(right),
19  width_m(right.width_m),
20  height_m(right.height_m)
21  { }
22 
23  virtual ~Ellipse() { }
24 
25  virtual void print(int indentwidth);
26  virtual void writeGnuplot(std::ofstream &out) const;
27  virtual void apply(std::vector<std::shared_ptr<Base> > &bfuncs);
28  virtual std::shared_ptr<Base> clone() const;
29  virtual void computeBoundingBox();
30  virtual bool isInside(const Vector_t &R) const;
31  static bool parse_detail(iterator &it, const iterator &end, Function* fun);
32  };
33 }
34 
35 #endif
double width_m
Definition: Ellipse.h:8
virtual std::shared_ptr< Base > clone() const
Definition: Ellipse.cpp:57
Ellipse(const Ellipse &right)
Definition: Ellipse.h:17
static bool parse_detail(iterator &it, const iterator &end, Function *fun)
Definition: Ellipse.cpp:119
virtual void print(int indentwidth)
Definition: Ellipse.cpp:9
virtual void computeBoundingBox()
Definition: Ellipse.cpp:71
virtual void apply(std::vector< std::shared_ptr< Base > > &bfuncs)
Definition: Ellipse.cpp:53
virtual bool isInside(const Vector_t &R) const
Definition: Ellipse.cpp:103
virtual void writeGnuplot(std::ofstream &out) const
Definition: Ellipse.cpp:25
std::string::iterator iterator
Definition: MSLang.h:16
double height_m
Definition: Ellipse.h:9
virtual ~Ellipse()
Definition: Ellipse.h:23