OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
mslang::Rectangle Struct Reference

#include <Rectangle.h>

Inheritance diagram for mslang::Rectangle:
Collaboration diagram for mslang::Rectangle:

Public Member Functions

 Rectangle ()
 Rectangle (const Rectangle &right)
virtual ~Rectangle ()
virtual void print (int indentwidth)
virtual void computeBoundingBox ()
virtual bool isInside (const Vector_t &R) const
virtual void writeGnuplot (std::ofstream &out) const
virtual void apply (std::vector< std::shared_ptr< Base > > &bfuncs)
virtual std::shared_ptr< Baseclone () const
virtual void divideBy (std::vector< std::shared_ptr< Base > > &divisors)

Static Public Member Functions

static bool parse_detail (iterator &it, const iterator &end, Function *fun)
static bool parse (iterator &it, const iterator &end, Function *&fun)

Public Attributes

double width_m
double height_m
AffineTransformation trafo_m
BoundingBox2D bb_m
std::vector< std::shared_ptr< Base > > divisor_m

Static Public Attributes

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_]*)\\‍((.*)"

Detailed Description

Definition at line 7 of file Rectangle.h.

Constructor & Destructor Documentation

◆ Rectangle() [1/2]

mslang::Rectangle::Rectangle ( )
inline

Definition at line 11 of file Rectangle.h.

References mslang::Base::Base(), height_m, and width_m.

Referenced by clone(), parse_detail(), and Rectangle().

Here is the call graph for this function:

◆ Rectangle() [2/2]

mslang::Rectangle::Rectangle ( const Rectangle & right)
inline

Definition at line 17 of file Rectangle.h.

References mslang::Base::Base(), height_m, Rectangle(), and width_m.

Here is the call graph for this function:

◆ ~Rectangle()

virtual mslang::Rectangle::~Rectangle ( )
inlinevirtual

Definition at line 23 of file Rectangle.h.

Member Function Documentation

◆ apply()

void mslang::Rectangle::apply ( std::vector< std::shared_ptr< Base > > & bfuncs)
virtual

Implements mslang::Function.

Definition at line 89 of file Rectangle.cpp.

References clone().

Here is the call graph for this function:

◆ clone()

std::shared_ptr< Base > mslang::Rectangle::clone ( ) const
virtual

Implements mslang::Base.

Definition at line 93 of file Rectangle.cpp.

References mslang::Base::bb_m, mslang::Base::divisor_m, height_m, Rectangle(), mslang::Base::trafo_m, and width_m.

Referenced by apply().

Here is the call graph for this function:

◆ computeBoundingBox()

void mslang::Rectangle::computeBoundingBox ( )
virtual

◆ divideBy()

virtual void mslang::Base::divideBy ( std::vector< std::shared_ptr< Base > > & divisors)
inlinevirtualinherited

Definition at line 64 of file MSLang.h.

References bb_m, and divisor_m.

◆ isInside()

bool mslang::Rectangle::isInside ( const Vector_t & R) const
virtual

Implements mslang::Base.

Definition at line 50 of file Rectangle.cpp.

References mslang::Base::bb_m, mslang::Base::divisor_m, height_m, mslang::Base::trafo_m, width_m, and X.

◆ parse()

◆ parse_detail()

bool mslang::Rectangle::parse_detail ( iterator & it,
const iterator & end,
Function * fun )
static

Definition at line 107 of file Rectangle.cpp.

References end(), mslang::ArgumentExtractor::get(), mslang::ArgumentExtractor::getLengthConsumed(), height_m, mslang::parseMathExpression(), Rectangle(), mslang::Function::UDouble, and width_m.

Referenced by mslang::Function::parse().

Here is the call graph for this function:

◆ print()

void mslang::Rectangle::print ( int indentwidth)
virtual

Implements mslang::Function.

Definition at line 9 of file Rectangle.cpp.

References height_m, Units::rad2deg, mslang::Base::trafo_m, and width_m.

◆ writeGnuplot()

void mslang::Rectangle::writeGnuplot ( std::ofstream & out) const
virtual

Implements mslang::Base.

Definition at line 66 of file Rectangle.cpp.

References mslang::Base::divisor_m, height_m, mslang::Base::trafo_m, and width_m.

Member Data Documentation

◆ bb_m

◆ divisor_m

◆ Double

const std::string mslang::Function::Double = "(-?[0-9]+\\.?[0-9]*([Ee][+-]?[0-9]+)?)"
staticinherited

Definition at line 34 of file MSLang.h.

◆ FCall

const std::string mslang::Function::FCall = "([a-z_]*)\\‍((.*)"
staticinherited

Definition at line 36 of file MSLang.h.

Referenced by parse().

◆ height_m

double mslang::Rectangle::height_m

◆ trafo_m

◆ UDouble

const std::string mslang::Function::UDouble = "([0-9]+\\.?[0-9]*([Ee][+-]?[0-9]+)?)"
staticinherited

Definition at line 33 of file MSLang.h.

Referenced by mslang::Rectangle::parse_detail().

◆ UInt

const std::string mslang::Function::UInt = "([0-9]+)"
staticinherited

Definition at line 35 of file MSLang.h.

◆ width_m

double mslang::Rectangle::width_m

The documentation for this struct was generated from the following files: