SPH
Public Member Functions | Public Attributes | List of all members
MaterialInitialContext Struct Reference

Shared data used when creating all bodies in the simulation. More...

#include <IMaterial.h>

Public Member Functions

 MaterialInitialContext ()=default
 
 MaterialInitialContext (const RunSettings &settings)
 Initializes the context using the values provided in the settings. More...
 

Public Attributes

AutoPtr< IRngrng
 Random number generator. More...
 
SharedPtr< ISchedulerscheduler
 
Float kernelRadius = 2._f
 Kernel radius in units of smoothing length. More...
 
AutoPtr< IUvMappinguvMap = nullptr
 If used, texture mapping coordinates are generated provided mapping. More...
 

Detailed Description

Shared data used when creating all bodies in the simulation.

Todo:
possibly generalize, allowing to create generic context as needed by components of the run

Definition at line 89 of file IMaterial.h.

Constructor & Destructor Documentation

◆ MaterialInitialContext() [1/2]

MaterialInitialContext::MaterialInitialContext ( )
default

◆ MaterialInitialContext() [2/2]

MaterialInitialContext::MaterialInitialContext ( const RunSettings settings)
explicit

Initializes the context using the values provided in the settings.

Definition at line 10 of file IMaterial.cpp.

Member Data Documentation

◆ kernelRadius

Float MaterialInitialContext::kernelRadius = 2._f

Kernel radius in units of smoothing length.

Definition at line 96 of file IMaterial.h.

◆ rng

AutoPtr<IRng> MaterialInitialContext::rng

Random number generator.

Definition at line 91 of file IMaterial.h.

◆ scheduler

SharedPtr<IScheduler> MaterialInitialContext::scheduler

Definition at line 93 of file IMaterial.h.

◆ uvMap

AutoPtr<IUvMapping> MaterialInitialContext::uvMap = nullptr

If used, texture mapping coordinates are generated provided mapping.

Definition at line 99 of file IMaterial.h.


The documentation for this struct was generated from the following files: