OPAL (Object Oriented Parallel Accelerator Library) 2022.1
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
6namespace 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
PartBunchBase< T, Dim >::ConstIterator end(PartBunchBase< T, Dim > const &bunch)
std::string::iterator iterator
Definition: MSLang.h:16
virtual void computeBoundingBox()
Definition: Ellipse.cpp:72
virtual void print(int indentwidth)
Definition: Ellipse.cpp:10
virtual bool isInside(const Vector_t &R) const
Definition: Ellipse.cpp:104
double width_m
Definition: Ellipse.h:8
virtual std::shared_ptr< Base > clone() const
Definition: Ellipse.cpp:58
Ellipse(const Ellipse &right)
Definition: Ellipse.h:17
virtual void writeGnuplot(std::ofstream &out) const
Definition: Ellipse.cpp:26
virtual void apply(std::vector< std::shared_ptr< Base > > &bfuncs)
Definition: Ellipse.cpp:54
double height_m
Definition: Ellipse.h:9
static bool parse_detail(iterator &it, const iterator &end, Function *fun)
Definition: Ellipse.cpp:120
virtual ~Ellipse()
Definition: Ellipse.h:23