#include <AShape.hpp>
Class defining the generic shape of the objects for Boolean Model
Public Member Functions | |
AShape () | |
AShape (const AShape &r) | |
AShape & | operator= (const AShape &r) |
virtual | ~AShape () |
virtual String | toString (const AStringFormat *strfmt=nullptr) const override |
Interface to AStringable. More... | |
virtual EShape | getType () const =0 |
Interface for AShape. More... | |
virtual int | getNParams () const =0 |
virtual bool | getFlagCutZ () const =0 |
virtual BooleanObject * | generateObject (int ndim=3)=0 |
virtual bool | belongObject (const VectorDouble &coor, const BooleanObject *object) const =0 |
double | getFactorX2Y () const |
double | getFactorX2Z () const |
double | getFactorY2Z () const |
double | getProportion () const |
String | getParamName (int ipar) const |
double | getParam (int ipar, int iarg) const |
const ShapeParameter & | getParam (int ipar) const |
void | setFactorX2Y (double factorX2Y) |
void | setFactorX2Z (double factorX2Z) |
void | setFactorY2Z (double factorY2Z) |
void | setProportion (double proportion) |
void | setParamName (int ipar, const String &name) |
void | setParam (int ipar, int iarg, double value) |
void | setParamDefault (int ipar, const String &name, double value) |
void | setLaw (int ipar, const ELaw &law) |
void | initParams (int count) |
double | generateParam (int ipar) const |
Public Member Functions inherited from AStringable | |
AStringable () | |
AStringable (const AStringable &r) | |
AStringable & | operator= (const AStringable &r) |
virtual | ~AStringable () |
virtual void | display (const AStringFormat *strfmt=nullptr) const final |
virtual void | display (int level) const final |
Public Member Functions inherited from ICloneable | |
ICloneable () | |
virtual | ~ICloneable () |
virtual ICloneable * | clone () const =0 |
AShape::AShape | ( | ) |
AShape::AShape | ( | const AShape & | r | ) |
|
virtual |
|
pure virtual |
Implemented in ShapeParallelepiped, ShapeParaboloid, ShapeHalfSinusoid, ShapeHalfParaboloid, ShapeHalfEllipsoid, and ShapeEllipsoid.
|
pure virtual |
Implemented in ShapeParallelepiped, ShapeParaboloid, ShapeHalfSinusoid, ShapeHalfParaboloid, ShapeHalfEllipsoid, and ShapeEllipsoid.
double AShape::generateParam | ( | int | ipar | ) | const |
|
inline |
|
inline |
|
inline |
|
pure virtual |
Implemented in ShapeParallelepiped, ShapeParaboloid, ShapeHalfSinusoid, ShapeHalfParaboloid, ShapeHalfEllipsoid, and ShapeEllipsoid.
|
pure virtual |
Implemented in ShapeParallelepiped, ShapeParaboloid, ShapeHalfSinusoid, ShapeHalfParaboloid, ShapeHalfEllipsoid, and ShapeEllipsoid.
const ShapeParameter & AShape::getParam | ( | int | ipar | ) | const |
double AShape::getParam | ( | int | ipar, |
int | iarg | ||
) | const |
String AShape::getParamName | ( | int | ipar | ) | const |
|
inline |
|
pure virtual |
Interface for AShape.
Implemented in ShapeParallelepiped, ShapeParaboloid, ShapeHalfSinusoid, ShapeHalfParaboloid, ShapeHalfEllipsoid, and ShapeEllipsoid.
void AShape::initParams | ( | int | count | ) |
|
inline |
|
inline |
|
inline |
void AShape::setLaw | ( | int | ipar, |
const ELaw & | law | ||
) |
void AShape::setParam | ( | int | ipar, |
int | iarg, | ||
double | value | ||
) |
void AShape::setParamDefault | ( | int | ipar, |
const String & | name, | ||
double | value | ||
) |
void AShape::setParamName | ( | int | ipar, |
const String & | name | ||
) |
|
inline |
|
overridevirtual |
Interface to AStringable.
Reimplemented from AStringable.