Neuro-VISOR  0.2.0
Visualize and interact with computational simulations using a virtual reality interface
C2M2.Simulation.PositionFieldSimulation Class Reference

Simulation of type Vector3[] for simulating positional fields More...

Inherits C2M2.Simulation.Simulation< Vector3[], Transform[], VRRaycastableColliders, VRGrabbableColliders >.

Protected Member Functions

override void OnAwakePost (Transform[] viz)
 
override void UpdateVisualization (in Vector3[] simulationValues)
 
virtual void UpdateVisChild (in Vector3[] simulationValues)
 Allow derived classes to implement custom visualization features More...
 
- Protected Member Functions inherited from C2M2.Simulation.Simulation< Vector3[], Transform[], VRRaycastableColliders, VRGrabbableColliders >
abstract VizType BuildVisualization ()
 Simulations must know how to build their visualization and what type the visualization is More...
 
abstract void UpdateVisualization (in ValueType newValues)
 Update the visualization. This will be called once per Update() call More...
 
abstract void SolveStep (int t)
 Method containing simulation code More...
 
virtual void PreSolveStep (int t)
 PreSolveStep is called once per simulation frame, before SolveStep() More...
 
virtual void PostSolveStep (int t)
 PostSolveStep is called once per simulation frame, after SolveStep() More...
 
virtual void OnAwakePre ()
 
virtual void OnAwakePost (VizType viz)
 
virtual void OnStart ()
 
virtual void OnUpdate ()
 
void OnDestroy ()
 
virtual void OnPause ()
 
virtual void OnQuit ()
 
virtual void OnDest ()
 
abstract void PreSolve ()
 Called on the main thread before the Solve thread is launched More...
 
virtual void PostSolve ()
 Called on the solve thread after the simulation for loop is completed More...
 

Additional Inherited Members

- Public Member Functions inherited from C2M2.Simulation.Simulation< Vector3[], Transform[], VRRaycastableColliders, VRGrabbableColliders >
abstract ValueType GetValues ()
 Require derived classes to make simulation values available More...
 
void Initialize ()
 
void FixedUpdate ()
 
void StartSimulation ()
 Launch Solve thread More...
 
sealed override float GetSimulationTime ()
 Return the current timestep for the simulation More...
 
void StopSimulation ()
 Stop current Solve thread More...
 
int[] HitToVertices (RaycastHit hit)
 Given a raycast hit, find the hit 3D vertices More...
 
- Public Attributes inherited from C2M2.Simulation.Simulation< Vector3[], Transform[], VRRaycastableColliders, VRGrabbableColliders >
bool dryRun
 Run solve code without visualization or interaction More...
 
bool paused
 
RaycastEventManager raycastEventManager
 
RaycastPressEvents defaultRaycastEvent
 
int time
 
double timeStep
 
double endTime
 
- Protected Attributes inherited from C2M2.Simulation.Simulation< Vector3[], Transform[], VRRaycastableColliders, VRGrabbableColliders >
Mutex mutex
 Provide mutual exclusion to derived classes More...
 
CustomSampler solveStepSampler
 
- Properties inherited from C2M2.Simulation.Simulation< Vector3[], Transform[], VRRaycastableColliders, VRGrabbableColliders >
VizType Viz [get, protected set]
 
int nT [get, private set]
 

Detailed Description

Simulation of type Vector3[] for simulating positional fields

Member Function Documentation

◆ OnAwakePost()

override void C2M2.Simulation.PositionFieldSimulation.OnAwakePost ( Transform[]  viz)
protected

◆ UpdateVisChild()

virtual void C2M2.Simulation.PositionFieldSimulation.UpdateVisChild ( in Vector3[]  simulationValues)
protectedvirtual

Allow derived classes to implement custom visualization features

◆ UpdateVisualization()

override void C2M2.Simulation.PositionFieldSimulation.UpdateVisualization ( in Vector3[]  simulationValues)
protected

The documentation for this class was generated from the following file: