#include <compound.h>
Inheritance diagram for Compound:
Public Member Functions | |
Compound () | |
void | add (const Pointer< Geometry > g) |
virtual bool | operator() (const Particle::vector_t &p) const |
void | add_voxel (const Particle::vector_t &p1, const Particle::vector_t &p2) |
void | add_pyramid (const Particle::vector_t &top, const Particle::vector_t &c1, const Particle::vector_t &c2, const Particle::vector_t &c3, const Particle::vector_t &c4) |
void | reset () |
bool | next () |
bool | at_end () const |
bool | empty () const |
int | size () const |
const Geometry & | get_object () const |
Geometry & | get_object () |
virtual void | to_xml (std::ostream &o) |
|
Constructs an empty compound. |
|
Adds geometric object g. |
|
Adds a pyramid with top and a base surface with edges c1, c2, c3 and c4. |
|
Adds a voxel with opposite corners p1 and p2. |
|
Last next() has returned false. |
|
Returns true iff compound has no elements. |
|
Returns a reference to the current object. |
|
Returns a constant reference to the current object. |
|
Iterator set to next object. Returns false if no next object exists. |
|
True if position p is inside any of the object that have been added. Implements Geometry. |
|
Resets iterator through objects. |
|
Writes the compound as XML into o. Implements Geometry. |