igor::iTaskGenerateVoxels Class Reference

#include <iTaskGenerateVoxels.h>

Inherits igor::iTask.

Public Member Functions

 iTaskGenerateVoxels (iVoxelBlockInfo *voxelBlockInfo, uint32 priority, iVoxelTerrainGenerateDelegate generateVoxelsDelegate)
 
virtual ~iTaskGenerateVoxels ()=default
 
- Public Member Functions inherited from igor::iTask
 iTask (iWindowPtr window=nullptr, uint32 priority=iTask::TASK_PRIORITY_DEFAULT, bool isRepeating=false, iTaskContext taskContext=iTaskContext::Default)
 
virtual ~iTask ()=default
 
virtual void abort ()
 
bool isRunning ()
 
iTaskContext getContext ()
 
uint32 getPriority ()
 
void setPriority (uint32 priority)
 
bool isRepeating ()
 
iTaskID getID ()
 
uint64 getWorldID ()
 
void setWorldID (uint64 worldID)
 
iWindowPtr getWindow ()
 

Protected Member Functions

void run ()
 
- Protected Member Functions inherited from igor::iTask
void setRepeating (bool repeat)
 
virtual void run ()=0
 

Additional Inherited Members

- Static Public Attributes inherited from igor::iTask
static const iTaskID INVALID_TASK_ID = 0
 
static const uint32 TASK_PRIORITY_MAX = 0
 
static const uint32 TASK_PRIORITY_HIGH = 5
 
static const uint32 TASK_PRIORITY_DEFAULT = 10
 
static const uint32 TASK_PRIORITY_LOW = 20
 

Detailed Description

task to generate voxels.

the actual voxel generation happens in the callback function to be implemented by application

Constructor & Destructor Documentation

◆ iTaskGenerateVoxels()

igor::iTaskGenerateVoxels::iTaskGenerateVoxels ( iVoxelBlockInfo voxelBlockInfo,
uint32  priority,
iVoxelTerrainGenerateDelegate  generateVoxelsDelegate 
)

initializes member variables

Parameters
voxelBlockInfothe voxel block to generate the data for
prioritythe priority to run this task with
generateVoxelsDelegatethe delegate to do the actual work
voxelDataGeneratedDelegatethe delegate to be called after generating the voxels

◆ ~iTaskGenerateVoxels()

virtual igor::iTaskGenerateVoxels::~iTaskGenerateVoxels ( )
virtualdefault

does nothing

Member Function Documentation

◆ run()

void igor::iTaskGenerateVoxels::run ( )
protectedvirtual

runs the task

Implements igor::iTask.


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