5 #include "AbstractDetector.h" 18 std::string
name =
"Unnamed Survey Playback";
27 std::shared_ptr<Scanner>
scanner =
nullptr;
36 std::vector<std::shared_ptr<Leg>>
legs;
62 void addLeg(
int insertIndex, std::shared_ptr<Leg> leg);
Base class for all assets.
Definition: Asset.h:10
double length
Distance passing through all legs.
Definition: Survey.h:42
double simSpeedFactor
Simulation speed factor for the survey.
Definition: Survey.h:31
std::string name
Survey name.
Definition: Survey.h:18
void addLeg(int insertIndex, std::shared_ptr< Leg > leg)
Add a leg to the survey at given index.
Definition: Survey.cpp:31
int numRuns
Number of runs for the survey.
Definition: Survey.h:22
Survey()=default
Survey default constructor.
std::shared_ptr< Scanner > scanner
Scanner used by the survey.
Definition: Survey.h:27
Class representing a Helios++ survey.
Definition: Survey.h:11
double getLength()
Obtain survey length (distance passing through all legs)
Definition: Survey.cpp:54
void calculateLength()
Compute survey length (distance passing through all legs)
Definition: Survey.cpp:41
std::vector< std::shared_ptr< Leg > > legs
All legs belonging to the survey.
Definition: Survey.h:36
void removeLeg(int legIndex)
Remove a leg from the survey.
Definition: Survey.cpp:37