|
| PyHeliosSimulation (std::string surveyPath, std::string assetsPath="assets/", std::string outputPath="output/", size_t numThreads=0, bool lasOutput=false, bool las10=false, bool zipOutput=false, bool splitByChannel=false, int kdtFactory=4, size_t kdtJobs=0, size_t kdtSAHLossNodes=32, int parallelizationStrategy=1, int chunkSize=32, int warehouseFactor=1) |
| Build a PyHeliosSimulation instance. More...
|
|
bool | isStarted () |
| Check if the simulation has been started or not. More...
|
|
bool | isPaused () |
| Check if the simulation has been paused or not. More...
|
|
bool | isStopped () |
| Check if the simulation has been stopped or not. More...
|
|
bool | isFinished () |
| Check if the simulation has finished or not. More...
|
|
bool | isRunning () |
| Check if the simulation is running or not. More...
|
|
std::string | getSurveyPath () |
| Obtain the survey path used by the simulation. More...
|
|
std::string | getAssetsPath () |
| Obtain the path to assets directory used by the simulation. More...
|
|
Survey & | getSurvey () |
| Obtain the survey used by the simulation. More...
|
|
PyScannerWrapper * | getScanner () |
| Obtain the scanner used by the simulation. More...
|
|
PyPlatformWrapper * | getPlatform () |
| Obtain the platform used by the simulation. More...
|
|
PySceneWrapper * | getScene () |
|
int | getNumLegs () |
| Obtain the number of legs. More...
|
|
Leg & | getLeg (int index) |
| Obtain leg at given index. More...
|
|
void | removeLeg (int index) |
| Remove leg at given index. More...
|
|
Leg & | newLeg (int index) |
| Create a new empty leg. More...
|
|
PyScanningStripWrapper * | newScanningStrip (std::string const &stripId) |
| Create a new empty scanning strip (with no legs) More...
|
|
bool | assocLegWithScanningStrip (Leg &leg, PyScanningStripWrapper *strip) |
| Associate given leg with given strip. More...
|
|
size_t | getCallbackFrequency () |
| Obtain callback frequency. More...
|
|
size_t | getSimFrequency () |
| Obtain simulation frequency. More...
|
|
size_t | getDynSceneStep () |
| Get the step interval for the dynamic scene. Notice this method will throw an exception if the scene is not dynamic.
|
|
size_t | getNumThreads () |
| Obtain the number of threads. More...
|
|
void | setNumThreads (size_t numThreads) |
| Set the number of threads.
|
|
void | setCallbackFrequency (size_t const callbackFrequency) |
| Set the callback frequency.
|
|
void | setSimFrequency (size_t const simFrequency) |
| Set the simulation frequency.
|
|
void | setDynSceneStep (size_t const stepInterval) |
| Set the step interval for the dynamic scene. Notice this method will throw an exception if the scene is not dynamic.
|
|
void | setCallback (PyObject *pyCallback) |
| Set the simulation callback to specified python object functor.
|
|
void | clearCallback () |
| Clear simulation callback so it will no longer be invoked.
|
|
std::string | getFixedGpsTimeStart () |
|
void | setFixedGpsTimeStart (std::string const fixedGpsTimeStart) |
|
bool | getLasOutput () |
|
void | setLasOutput (double lasOutput_) |
|
bool | getLas10 () |
|
void | setLas10 (double las10_) |
|
bool | getZipOutput () |
|
void | setZipOutput (bool zipOutput_) |
|
bool | getSplitByChannel () |
|
void | setSplitByChannel (bool splitByChannel_) |
|
double | getLasScale () |
|
void | setLasScale (double const lasScale) |
|
int | getKDTFactory () |
|
void | setKDTFactory (int kdtFactory) |
|
size_t | getKDTJobs () |
|
void | setKDTJobs (size_t kdtJobs) |
|
size_t | getKDTSAHLossNodes () |
|
void | setKDTSAHLossNodes (size_t kdtSAHLossNodes) |
|
int | getParallelizationStrategy () |
|
void | setParallelizationStrategy (int parallelizationStrategy) |
|
int | getChunkSize () |
|
void | setChunkSize (int chunkSize) |
|
int | getWarehouseFactor () |
|
void | setWarehouseFactor (int warehouseFactor) |
|
void | start () |
| Start the simulation if possible. Otherwise, PyHeliosException will be thrown.
|
|
void | pause () |
| Pause the simulation if possible. Otherwise, PyHeliosException will be thrown.
|
|
void | stop () |
| Stop the simulation if possible. Otherwise, PyHeliosException will be thrown.
|
|
void | resume () |
| Resume the simulation if possible. Otherwise, PyHeliosException will be thrown.
|
|
PyHeliosOutputWrapper * | join () |
| Cause caller thread to wait until simulation has finished.
|
|
void | loadSurvey (bool legNoiseDisabled=false, bool rebuildScene=false, bool writeWaveform=false, bool calcEchowidth=false, bool fullWaveNoise=false, bool platformNoiseDisabled=true) |
| Load a survey XML file. More...
|
|
void | addRotateFilter (double q0, double q1, double q2, double q3, std::string partId) |
|
void | addScaleFilter (double scaleFactor, std::string partId) |
|
void | addTranslateFilter (double x, double y, double z, std::string partId) |
|
void | buildPulseThreadPool () |
| Build the pulse thread pool to be used by the simulation. More...
|
|
PyHeliosSimulation * | copy () |
|
std::shared_ptr< DynScene > | _getDynScene () |
| Obtain scene as DynScene if possible.
|
|
- Author
- Alberto M. Esmoris Pena
- Version
- 1.0
Helios++ simulation wrapped to be used from Python