68 void read(std::istream& is)
override;
70 void write(std::ostream& os)
const override;
72 std::string
getName()
const override;
Stores information about interactions between two interactable objects; often particles but could be ...
Definition: BaseInteraction.h:60
Definition: BaseParticle.h:54
Basic class for walls.
Definition: BaseWall.h:49
Definition: Combtooth.h:34
Vec3D axis_
Definition: Combtooth.h:75
Mdouble radius_
Definition: Combtooth.h:77
Vec3D position_
Definition: Combtooth.h:76
~Combtooth() override
Default destructor.
void set(Vec3D axis, Vec3D position, Mdouble radius)
Set.
Definition: Combtooth.cc:50
void write(std::ostream &os) const override
Function that writes a BaseWall to an output stream, usually a restart file.
Definition: Combtooth.cc:110
BaseInteraction * getInteractionWith(BaseParticle *p, unsigned timeStamp, InteractionHandler *interactionHandler) override
Returns the interaction between this wall and a given particle, nullptr if there is no interaction.
Definition: Combtooth.cc:82
Combtooth * copy() const override
Copy.
Definition: Combtooth.cc:57
bool getDistanceAndNormal(const BaseParticle &p, Mdouble &distance, Vec3D &normal_return) const override
Pure virtual function that computes the distance of a BaseParticle to this wall and returns the norma...
Definition: Combtooth.cc:62
Combtooth()
Default constructor.
Definition: Combtooth.cc:31
std::string getName() const override
A purely virtual function.
Definition: Combtooth.cc:118
void read(std::istream &is) override
Function that reads a BaseWall from an input stream, usually a restart file.
Definition: Combtooth.cc:101
Container to store Interaction objects.
Definition: InteractionHandler.h:45