244 template <
typename TValue>
249 template <
typename TValue>
262 const Interval i = this->get<Interval>(
id);
268 const Vector v = this->get<Vector>(
id);
269 return Rgba(
float(v[
X]),
float(v[
Y]),
float(v[
Z]),
float(v[
H]));
274 this->
set(
id,
Vector(color.
r(), color.
g(), color.
b(), color.
a()));
@ NONE
No collision took place.
@ TOTAL_ENERGY
Sum of kinetic and internal energy for given particle.
Helper object for converting enums to string, listing all available values of enum,...
Generic wrappers of lambdas, functors and other callables.
#define INLINE
Macros for conditional compilation based on selected compiler.
#define NAMESPACE_SPH_END
Basic vector algebra. Computations are accelerated using SIMD.
BasicVector< Float > Vector
INLINE TValue get(const GuiSettingsId id) const
INLINE GuiSettings & set(const GuiSettingsId id, const TValue &value)
Function< void(GuiSettingsId id)> accessor
Object representing a 1D interval of real numbers.
INLINE Float lower() const
Returns lower bound of the interval.
INLINE Float upper() const
Returns upper bound of the interval.
Generic object containing various settings and parameters of the run.
Settings & set(const TEnum idx, TValue &&value, std::enable_if_t<!std::is_enum< std::decay_t< TValue >>::value, int >=0)
Saves a value into the settings.
Generic storage and input/output routines of settings.
@ LINEAR
Constant time between consecutive output times.
@ LOGARITHMIC
Constant ratio between consecutive output times.
@ COLORMAP_LOGARITHMIC_FACTOR
@ RAYTRACE_ITERATION_LIMIT
@ IMAGES_NAME
Mask of the image names, having d where the output number will be placed.
@ SURFACE_RESOLUTION
Size of the grid used in MarchingCubes (in code units, not h).
@ CAMERA_ORTHO_CUTOFF
Max z-coordinate of particle to be displayed by ortho renderer.
@ WINDOW_TITLE
Title of the window appearing on taskbar.
@ IMAGES_PATH
Path of directory where the rendered images will be saved.
@ RENDERER
Selected renderer.
@ VIEW_GRID_SIZE
Size of the grid cell in simulation units (not window units); if zero, no grid is drawn.
@ SURFACE_LEVEL
Value of iso-surface being constructed; lower value means larget bodies.
@ SURFACE_SUN_INTENSITY
Intentity of the sun.
@ IMAGES_SAVE
If true, rendered images are saved to disk.
@ SURFACE_SUN_POSITION
Direction to the sun used for shading.
@ CAMERA_ORTHO_FOV
View field of view (zoom). Special value 0 means the field of view is computed from the bounding box.
@ SURFACE_AMBIENT
Ambient color for surface renderer.
@ TOTAL_MOMENTUM
Evolution of the total momentum in time.
@ SPEED_HISTOGRAM
Speed histogram.
@ INTERNAL_ENERGY
Evolution of the total internal energy in time.
@ SELECTED_PARTICLE
Evolution of the selected quantity for the selected particle in time.
@ TOTAL_ANGULAR_MOMENTUM
Evolution of the total angular momentum in time.
@ KINETIC_ENERGY
Evolution of the total kinetic energy in time.
@ RELATIVE_ENERGY_CHANGE
Relative change of total energy.
@ CURRENT_SFD
Current size-frequency distribution.
@ ANGULAR_HISTOGRAM_OF_VELOCITIES
Angular histogram (in x-y plane) of velocity directions.
@ PREDICTED_SFD
Predicted size-frequency distribution.
@ PARTICLE
2D section showing particles as points
@ MESH
Surfaces of bodies are meshed using Marching cubes and drawed as triangles.
@ RAYMARCHER
Raymarcher that computes intersections with implicit surface.
@ VOLUME
Volumetric renderer.
@ CONTOUR
Draws contours (iso-lines) of quantities.
Simple 2D vector with integer coordinates. Provides conversion from and to wxPoint.