Magnetoculus
Visualisation de champs en VR avec Oculus
VoxelGenerator Class Reference
Inheritance diagram for VoxelGenerator:
FieldGenerator Generator

Protected Member Functions

override void CreateRepresentationInformation ()
 
override IEnumerator AsynchronousGeneration ()
 
- Protected Member Functions inherited from FieldGenerator
virtual void Awake ()
 
- Protected Member Functions inherited from Generator
void FileError (string message)
 
void TriggerGenerationProgressEvent (float generationProgress, string generationText)
 
void TriggerGenerationStartEvent ()
 
void TriggerGenerationEndEvent ()
 
void TriggerGenerationErrorEvent (string message)
 

Additional Inherited Members

- Public Member Functions inherited from Generator
delegate void GenerationEventWithArgs (float generationProgress, string generationText)
 
delegate void GenerationEvent ()
 
delegate void ErrorEvent (string message)
 
void StartGeneration ()
 
- Protected Attributes inherited from FieldGenerator
int m_MaxVerticesPerChunk = 30000
 
Field m_Field
 
FieldInfoManager m_FieldInfoManager
 
- Protected Attributes inherited from Generator
GameObject m_ChunkPrefab
 
RepresentationNavigation m_RepresentationManagerPanel
 
FileInfoManager m_FileInfoManager
 
string m_FileName
 
GameObject m_Representation
 
Mesh m_Mesh
 
- Events inherited from Generator
static GenerationEvent GenerationStartEvent
 
static GenerationEventWithArgs GenerationProgressEvent
 
static GenerationEvent GenerationEndEvent
 
static ErrorEvent GenerationErrorEvent
 

Detailed Description

Script to generate voxel representation of a regular grid:

  • the grid needs to be regular and increase first in y, then in z.

Member Function Documentation

◆ AsynchronousGeneration()

override IEnumerator VoxelGenerator.AsynchronousGeneration ( )
protectedvirtual

The generation is a coroutine so we can check its state and display it on a progress bar.

Implements Generator.

◆ CreateRepresentationInformation()

override void VoxelGenerator.CreateRepresentationInformation ( )
protectedvirtual

Implements Generator.


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