71 void read(std::istream& is);
76 void write(std::ostream& os)
const;
virtual void writeVTK(VTKContainer &vtk) const
virtual MERCURY_DEPRECATED void clear()
A function that removes all data from this BaseWall, so sets handler_ to nullptr. ...
void setIndSpecies(unsigned int indSpecies)
Define the species of this wall using the index of the species in the SpeciesHandler in this DPMBase...
virtual void setHandler(WallHandler *handler)
A function which sets the WallHandler for this BaseWall.
static void addToVTK(const std::vector< Vec3D > &points, VTKContainer &vtk)
void intersectVTK(std::vector< Vec3D > &points, const Vec3D normal, const Vec3D position) const
virtual std::vector< BaseInteraction * > getInteractionWith(BaseParticle *p, Mdouble timeStamp, InteractionHandler *interactionHandler)
#define MERCURY_DEPRECATED
WallHandler * getHandler() const
A function which returns the WallHandler that handles this BaseWall.
virtual bool getDistanceAndNormal(const BaseParticle &P, Mdouble &distance, Vec3D &normal_return) const =0
Pure virtual function that computes the distance of a BaseParticle to this wall and returns the norma...
std::vector< std::vector< double > > triangleStrips
Container to store Interaction objects.
bool isInsideWallVTK(const Vec3D &point, const Vec3D &normal, const Vec3D &position) const
BaseWall()
Default constructor. It makes an empty BaseWall.
Container to store all BaseWall.
std::vector< Vec3D > points
Defines the basic properties that a interactable object can have.
Implementation of a 3D vector (by Vitaliy).
void write(std::ostream &os) const
Function that writes a BaseWall to an output stream, usually a restart file.
void projectOntoWallVTK(Vec3D &point0, const Vec3D &point1, const Vec3D &normal, const Vec3D &position) const
bool getLinePlaneIntersect(Vec3D &intersect, const Vec3D &p0, const Vec3D &p1, const Vec3D &n, const Vec3D &p)
virtual ~BaseWall()
Default destructor.
virtual BaseWall * copy() const =0
Pure virtual function that copies a BaseWall.
void read(std::istream &is)
Function that reads a BaseWall from an input stream, usually a restart file.
void setSpecies(const ParticleSpecies *species)
Define the species of this wall.