35 #ifndef OPENPSTD_KERNELFACADE_H 36 #define OPENPSTD_KERNELFACADE_H 40 #include "core/Scene.h" 41 #include "KernelInterface.h" 55 std::shared_ptr<PSTDConfiguration> config;
57 std::shared_ptr<PSTDSettings> settings;
59 std::shared_ptr<Kernel::Scene> scene;
61 const float default_alpha = 1.f;
66 void initialize_scene();
69 std::shared_ptr<Kernel::WisdomCache> wnd;
99 std::vector<float> scale_to_grid(QVector2D world_vector);
106 std::vector<float> scale_to_grid(QVector3D world_vector);
111 std::vector<int> round_off(std::vector<float>);
116 std::map<Kernel::Direction, Kernel::EdgeParameters> translate_edge_parameters(
DomainConf domain);
143 std::shared_ptr<Kernel::Scene>
get_scene();
149 #endif //OPENPSTD_KERNELFACADE_H This is the general namespace of the OpenPSTD application.
Definition: Boundary.cpp:33
The kernel API.
Definition: KernelInterface.h:265
The API with methods that run the simulation from a PSTDFile.
Definition: PSTDKernel.h:52
void initialize_kernel(std::shared_ptr< PSTDConfiguration > config) override
Sets the configuration, also initializes the kernel and the scene, constructs the domains and sets th...
Definition: PSTDKernel.cpp:41
void run(KernelCallback *callback) override
Runs the kernel.
Definition: PSTDKernel.cpp:110
Interface representation of the domain.
Definition: KernelInterface.h:166
SimulationMetadata get_metadata() override
Query the kernel for metadata about the simulation that is configured.
Definition: PSTDKernel.cpp:141
Callback interface for communication with the CLI or the GUI.
Definition: KernelInterface.h:212
std::shared_ptr< Kernel::Scene > get_scene()
Return the scene of the simulation.
Definition: PSTDKernel.cpp:137