|
Magnetoculus
Visualisation de champs en VR avec Oculus
|
Public Member Functions | |
| delegate void | GenerationEventWithArgs (float generationProgress, string generationText) |
| delegate void | GenerationEvent () |
| delegate void | ErrorEvent (string message) |
| void | StartGeneration () |
Protected Member Functions | |
| abstract void | CreateRepresentationInformation () |
| abstract IEnumerator | AsynchronousGeneration () |
| void | FileError (string message) |
| void | TriggerGenerationProgressEvent (float generationProgress, string generationText) |
| void | TriggerGenerationStartEvent () |
| void | TriggerGenerationEndEvent () |
| void | TriggerGenerationErrorEvent (string message) |
Protected Attributes | |
| GameObject | m_ChunkPrefab |
| RepresentationNavigation | m_RepresentationManagerPanel |
| FileInfoManager | m_FileInfoManager |
| string | m_FileName |
| GameObject | m_Representation |
| Mesh | m_Mesh |
Events | |
| static GenerationEvent | GenerationStartEvent |
| static GenerationEventWithArgs | GenerationProgressEvent |
| static GenerationEvent | GenerationEndEvent |
| static ErrorEvent | GenerationErrorEvent |
Abstract super class for field and town generation. It can :
|
protectedpure virtual |
The generation is a coroutine so we can check its state and display it on a progress bar.
Implemented in GenericTownGenerator, IsoSurfaceGenerator, VoxelGenerator, and SurfaceGenerator.
|
protectedpure virtual |
Implemented in GenericTownGenerator, IsoSurfaceGenerator, VoxelGenerator, and SurfaceGenerator.
| delegate void Generator.ErrorEvent | ( | string | message | ) |
|
protected |
| message | the error message to display. |
Should be called if any error is detected in the file in order to stop the generation and warn the user. It sends a GenerationEndEvent and a GenerationErrorEvent.
| delegate void Generator.GenerationEvent | ( | ) |
| delegate void Generator.GenerationEventWithArgs | ( | float | generationProgress, |
| string | generationText | ||
| ) |
| void Generator.StartGeneration | ( | ) |
Start the generation routine and send a GenerationStartEvent.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
The prefab used to create a proper mesh.
|
protected |
The FileInfoManager store all the relevant data about the file and the options chosen by the user.
|
protected |
The full path of the file used for the generation.
|
protected |
The mesh where the computed vertices/triangles/colors will be added
|
protected |
Every generation creates a representation object so the user can enable/disable/delete it.
|
protected |
The representationInformation should belong to this parent.
|
static |
|
static |
|
static |
|
static |