29 #ifndef CDPL_SHAPE_GAUSSIANSHAPE_HPP
30 #define CDPL_SHAPE_GAUSSIANSHAPE_HPP
59 position(pos), radius(radius), hardness(hardness), color(color) {}
78 this->radius = radius;
98 this->hardness = hardness;
109 typedef std::vector<Element> ElementList;
148 ElementList elements;
Definition of the class CDPL::Base::PropertyContainer.
Definition of the preprocessor macro CDPL_SHAPE_API.
#define CDPL_SHAPE_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Definition of vector data types.
A class providing methods for the storage and lookup of object properties.
Definition: PropertyContainer.hpp:75
Definition: GaussianShape.hpp:55
std::size_t getColor() const
Definition: GaussianShape.hpp:81
void setRadius(double radius)
Definition: GaussianShape.hpp:76
void setHardness(double hardness)
Definition: GaussianShape.hpp:96
const Math::Vector3D & getPosition() const
Definition: GaussianShape.hpp:61
void setPosition(const Math::Vector3D &pos)
Definition: GaussianShape.hpp:66
Element(const Math::Vector3D &pos, double radius, std::size_t color=0, double hardness=2.7)
Definition: GaussianShape.hpp:58
double getHardness() const
Definition: GaussianShape.hpp:91
double getRadius() const
Definition: GaussianShape.hpp:71
void setColor(std::size_t color)
Definition: GaussianShape.hpp:86
A data type for the descripton of arbitrary shapes composed of spheres approximated by gaussian funct...
Definition: GaussianShape.hpp:51
Element & getElement(std::size_t idx)
ElementList::iterator ElementIterator
Definition: GaussianShape.hpp:115
ConstElementIterator begin() const
ConstElementIterator getElementsBegin() const
ConstElementIterator end() const
void removeElement(std::size_t idx)
void addElement(const Element &elem)
void addElement(const Math::Vector3D &pos, double radius, std::size_t color=0, double hardness=2.7)
ElementList::const_iterator ConstElementIterator
Definition: GaussianShape.hpp:114
ElementIterator getElementsBegin()
ConstElementIterator getElementsEnd() const
std::size_t getNumElements() const
const Element & getElement(std::size_t idx) const
ElementIterator getElementsEnd()
std::shared_ptr< GaussianShape > SharedPointer
Definition: GaussianShape.hpp:112
CVector< double, 3 > Vector3D
A bounded 3 element vector holding floating point values of type double.
Definition: Vector.hpp:1637
The namespace of the Chemical Data Processing Library.