OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
#include <Triangle.h>
Public Member Functions | |
Triangle () | |
Triangle (const Triangle &right) | |
virtual | ~Triangle () |
virtual void | print (int indentwidth) |
virtual void | apply (std::vector< std::shared_ptr< Base > > &bfuncs) |
virtual std::shared_ptr< Base > | clone () const |
virtual void | writeGnuplot (std::ofstream &out) const |
virtual void | computeBoundingBox () |
double | crossProduct (const Vector_t &pt, unsigned int nodeNum) const |
virtual bool | isInside (const Vector_t &R) const |
void | orientNodesCCW () |
![]() | |
Base () | |
Base (const Base &right) | |
virtual | ~Base () |
virtual void | divideBy (std::vector< std::shared_ptr< Base > > &divisors) |
![]() | |
virtual | ~Function () |
virtual void | apply (std::vector< std::shared_ptr< Base >> &bfuncs)=0 |
Public Attributes | |
std::vector< Vector_t > | nodes_m |
![]() | |
AffineTransformation | trafo_m |
BoundingBox | bb_m |
std::vector< std::shared_ptr< Base > > | divisor_m |
Additional Inherited Members | |
![]() | |
static bool | parse (iterator &it, const iterator &end, Function *&fun) |
![]() | |
static const std::string | UDouble = "([0-9]+\\.?[0-9]*([Ee][+-]?[0-9]+)?)" |
static const std::string | Double = "(-?[0-9]+\\.?[0-9]*([Ee][+-]?[0-9]+)?)" |
static const std::string | UInt = "([0-9]+)" |
static const std::string | FCall = "([a-z_]*)\\((.*)" |
Definition at line 7 of file Triangle.h.
|
inline |
Definition at line 9 of file Triangle.h.
Referenced by clone().
|
inline |
Definition at line 14 of file Triangle.h.
|
inlinevirtual |
Definition at line 19 of file Triangle.h.
|
virtual |
Definition at line 22 of file Triangle.cpp.
References clone().
|
virtual |
Implements mslang::Base.
Definition at line 26 of file Triangle.cpp.
References mslang::Base::bb_m, mslang::Base::divisor_m, mslang::Base::trafo_m, and Triangle().
Referenced by apply().
|
virtual |
Implements mslang::Base.
Definition at line 57 of file Triangle.cpp.
References mslang::Base::bb_m, mslang::Base::divisor_m, nodes_m, mslang::Base::trafo_m, and mslang::AffineTransformation::transformFrom().
double Triangle::crossProduct | ( | const Vector_t & | pt, |
unsigned int | nodeNum | ||
) | const |
Definition at line 79 of file Triangle.cpp.
References nodes_m.
Referenced by isInside(), and orientNodesCCW().
|
virtual |
Implements mslang::Base.
Definition at line 89 of file Triangle.cpp.
References crossProduct(), mslang::Base::divisor_m, Attrib::Distribution::R, mslang::Base::trafo_m, mslang::AffineTransformation::transformTo(), and X.
void Triangle::orientNodesCCW | ( | ) |
Definition at line 104 of file Triangle.cpp.
References crossProduct(), and nodes_m.
|
virtual |
Implements mslang::Function.
Definition at line 5 of file Triangle.cpp.
References endl(), mslang::AffineTransformation::getAngle(), mslang::AffineTransformation::getOrigin(), nodes_m, Physics::rad2deg, and mslang::Base::trafo_m.
|
virtual |
Implements mslang::Base.
Definition at line 38 of file Triangle.cpp.
References mslang::Base::divisor_m, endl(), nodes_m, mslang::Base::trafo_m, and mslang::AffineTransformation::transformFrom().
std::vector<Vector_t> mslang::Triangle::nodes_m |
Definition at line 8 of file Triangle.h.
Referenced by Mesher::apply(), computeBoundingBox(), crossProduct(), orientNodesCCW(), print(), and writeGnuplot().