[d74077] | 1 | /*
|
---|
| 2 | * TesselPoint.hpp
|
---|
| 3 | *
|
---|
| 4 | * Created on: Jul 30, 2010
|
---|
| 5 | * Author: heber
|
---|
| 6 | */
|
---|
| 7 |
|
---|
| 8 | #ifndef TESSELPOINT_HPP_
|
---|
| 9 | #define TESSELPOINT_HPP_
|
---|
| 10 |
|
---|
[56f73b] | 11 | // include config.h
|
---|
| 12 | #ifdef HAVE_CONFIG_H
|
---|
| 13 | #include <config.h>
|
---|
| 14 | #endif
|
---|
| 15 |
|
---|
| 16 |
|
---|
[6f0841] | 17 | #include "Atom/atom_atominfo.hpp"
|
---|
| 18 | #include "Atom/atom_particleinfo.hpp"
|
---|
[d74077] | 19 |
|
---|
| 20 | class TesselPoint;
|
---|
| 21 |
|
---|
| 22 | class TesselPoint : public virtual ParticleInfo, public virtual AtomInfo
|
---|
| 23 | {
|
---|
| 24 | public:
|
---|
| 25 | TesselPoint();
|
---|
[b1c5ddb] | 26 | virtual ~TesselPoint();
|
---|
[d74077] | 27 |
|
---|
[e2373df] | 28 | /** Pushes back another step in all trajectory vectors.
|
---|
| 29 | *
|
---|
| 30 | * This allows to extend all trajectories contained in different classes
|
---|
| 31 | * consistently. This is implemented by the topmost class which calls the
|
---|
| 32 | * real functions, \sa AppendTrajectoryStep(), by all necessary subclasses.
|
---|
| 33 | *
|
---|
| 34 | * Note that this function is actually not sensible with TesselPoints
|
---|
| 35 | * as they should not have trajectories but is implemented as they can be
|
---|
| 36 | * used stand-alone.
|
---|
| 37 | *
|
---|
| 38 | */
|
---|
[8cc22f] | 39 | virtual void UpdateStep(const unsigned int _step);
|
---|
[e2373df] | 40 |
|
---|
[7e51e1] | 41 | /** Pops the last step in all trajectory vectors.
|
---|
| 42 | *
|
---|
| 43 | * This allows to decrease all trajectories contained in different classes
|
---|
| 44 | * by one consistently. This is implemented by the topmost class which calls
|
---|
[8c6b68] | 45 | * the real functions, \sa removeTrajectorySteps(), by all necessary subclasses.
|
---|
| 46 | *
|
---|
| 47 | * \param _firststep first step in interval to be removed
|
---|
| 48 | * \param _laststep last step in interval to be removed
|
---|
[7e51e1] | 49 | */
|
---|
[8c6b68] | 50 | virtual void removeSteps(const unsigned int _firststep, const unsigned int _laststep);
|
---|
[7e51e1] | 51 |
|
---|
[ba5215] | 52 | /** Getter for this.
|
---|
| 53 | *
|
---|
| 54 | * \note this is only present due to BoundaryPointSet, where TesselPoint is
|
---|
| 55 | * only embedded and PointCloud where we have to access this TesselPoint.
|
---|
| 56 | *
|
---|
| 57 | * @return reference to embedded TesselPoint \a node
|
---|
| 58 | */
|
---|
| 59 | TesselPoint *getTesselPoint();
|
---|
| 60 |
|
---|
[d74077] | 61 | std::ostream & operator << (std::ostream &ost) const;
|
---|
| 62 | };
|
---|
| 63 |
|
---|
| 64 | std::ostream & operator << (std::ostream &ost, const TesselPoint &t);
|
---|
| 65 |
|
---|
| 66 | #endif /* TESSELPOINT_HPP_ */
|
---|