Removed drawing infrastructure

This commit is contained in:
2025-10-13 13:19:23 +02:00
parent 21ad9cd30a
commit 31c2b230a9
15 changed files with 32 additions and 670 deletions
+1 -18
View File
@@ -59,7 +59,6 @@ class TrackedSpecie : public Specie {
std::string name,
double mass_kg,
double charge_C,
bool explicitly_stored,
std::shared_ptr<Mover> mover,
std::shared_ptr<Terminator> terminator,
std::shared_ptr<Reflector> reflector,
@@ -88,19 +87,11 @@ class TrackedSpecie : public Specie {
std::vector<std::shared_ptr<interaction::Interaction>> interactions();
void addInteraction(std::shared_ptr<interaction::Interaction> interaction);
// getter for the raw pointer to the positionDistributionFromDensity object
PositionDistributionFromDensity* positionDistributionFromDensity();
// getter for the raw pointer to the VelocityDistributionFromDensityField object
VelocityDistributionFromDensityField* velocityDistributionFromDensityField();
// getter for the raw pointer to the RandomIndex object
RandomIndex* randomIndex();
bool explicitlyStored();
private:
std::shared_ptr<DynamicDensityField> density_field_;
std::shared_ptr<VelocityDistribution> velocity_distribution_;
std::shared_ptr<DriftVelocity> drift_velocity_;
std::shared_ptr<Mover> mover_;
@@ -112,17 +103,9 @@ class TrackedSpecie : public Specie {
std::vector<std::shared_ptr<interaction::Interaction>> interactions_;
std::shared_ptr<DynamicDensityField> density_for_drawing_;
std::shared_ptr<PositionDistributionFromDensity>
position_distribution_from_density_;
// necessary for interactions between TrackedSpecies
std::shared_ptr<VelocityDistributionFromDensityField>
velocity_distribution_from_density_;
std::shared_ptr<RandomIndex> random_index_;
// should work if it changes from true -> false (after a restart)
// however, it should not work in the opposite case (in which the
// old density would be lost)
const bool explicitly_stored_;
};
class BackgroundSpecie : public Specie {