Main Page | Class Hierarchy | Class List | File List | Class Members

Compound Class Reference

#include <compound.h>

Inheritance diagram for Compound:

Geometry List of all members.

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 Geometryget_object () const
Geometryget_object ()
virtual void to_xml (std::ostream &o)

Detailed Description

Compound geometric object.

Author:
Moritz Franosch


Constructor & Destructor Documentation

Compound::Compound  ) 
 

Constructs an empty compound.


Member Function Documentation

void Compound::add const Pointer< Geometry g  ) 
 

Adds geometric object g.

void Compound::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
 

Adds a pyramid with top and a base surface with edges c1, c2, c3 and c4.

void Compound::add_voxel const Particle::vector_t &  p1,
const Particle::vector_t &  p2
 

Adds a voxel with opposite corners p1 and p2.

bool Compound::at_end  )  const
 

Last next() has returned false.

bool Compound::empty  )  const
 

Returns true iff compound has no elements.

Geometry & Compound::get_object  ) 
 

Returns a reference to the current object.

const Geometry & Compound::get_object  )  const
 

Returns a constant reference to the current object.

bool Compound::next  ) 
 

Iterator set to next object.

Returns false if no next object exists.

bool Compound::operator() const Particle::vector_t &  p  )  const [virtual]
 

True if position p is inside any of the object that have been added.

Implements Geometry.

void Compound::reset  ) 
 

Resets iterator through objects.

void Compound::to_xml std::ostream &  o  )  [virtual]
 

Writes the compound as XML into o.

Implements Geometry.


The documentation for this class was generated from the following files:
Generated on Fri Apr 22 11:06:43 2005 for partsim.kdevelop by doxygen 1.3.6