SpherePackingScenarioGenerator
|
#include <AbstractSpherePacking.h>
Public Member Functions | |
AbstractSpherePacking () | |
AbstractSpherePacking (unsigned int numberOfSpheres, double radius) | |
void | appendSpheres (std::vector< algorithms::geometries::SphereGeometry > &additionalSpheres) |
virtual void | generate ()=0 |
unsigned int | getMaxSphereScaling () const |
unsigned int | getNumberOfSpheres () const |
double | getRadius () const |
void | getSpherePositionsAsDoubleArray (double *array, unsigned int size) const |
void | getSpherePositionsAsSTDVector (std::vector< double > &sphereAttributeVector) const |
const std::vector < algorithms::geometries::SphereGeometry > & | getSpheres () |
virtual bool | isValid () const |
void | plotListOfSpheres () const |
void | setMaxSphereScaling (double number) |
void | setNumberOfSpheres (unsigned int number) |
virtual | ~AbstractSpherePacking () |
Public Attributes | |
unsigned int | _numberOfSpheres |
double | _radius |
std::vector < algorithms::geometries::SphereGeometry > | _spheres |
algorithms::AbstractSpherePacking::AbstractSpherePacking | ( | unsigned int | numberOfSpheres, |
double | radius | ||
) |
void algorithms::AbstractSpherePacking::appendSpheres | ( | std::vector< algorithms::geometries::SphereGeometry > & | additionalSpheres | ) | [inline] |
virtual void algorithms::AbstractSpherePacking::generate | ( | ) | [pure virtual] |
unsigned int algorithms::AbstractSpherePacking::getMaxSphereScaling | ( | ) | const |
unsigned int algorithms::AbstractSpherePacking::getNumberOfSpheres | ( | ) | const |
Gets the number of spheres
double algorithms::AbstractSpherePacking::getRadius | ( | ) | const |
Reimplemented in algorithms::regularpacking::RegularPacking.
void algorithms::AbstractSpherePacking::getSpherePositionsAsDoubleArray | ( | double * | array, |
unsigned int | size | ||
) | const |
void algorithms::AbstractSpherePacking::getSpherePositionsAsSTDVector | ( | std::vector< double > & | sphereAttributeVector | ) | const |
const std::vector< algorithms::geometries::SphereGeometry > & algorithms::AbstractSpherePacking::getSpheres | ( | ) |
bool algorithms::AbstractSpherePacking::isValid | ( | ) | const [virtual] |
void algorithms::AbstractSpherePacking::plotListOfSpheres | ( | ) | const |
void algorithms::AbstractSpherePacking::setMaxSphereScaling | ( | double | number | ) |
void algorithms::AbstractSpherePacking::setNumberOfSpheres | ( | unsigned int | number | ) |
unsigned int algorithms::AbstractSpherePacking::_numberOfSpheres |