tec::VoxelVolume

#include <voxel-volume.hpp>

Inherits from tec::CommandQueue< VoxelVolume >

Public Functions

Name
VoxelVolume(std::weak_ptr< MeshFile > mesh)
~VoxelVolume()
void Update(double delta)
void Out(proto::Component * )
void UpdateMesh()
std::weak_ptr< MeshFile > GetMesh()
void AddVoxel(const std::int16_t row, const std::int16_t column, const std::int16_t slice)
void RemoveVoxel(const std::int16_t row, const std::int16_t column, const std::int16_t slice)
std::weak_ptr< VoxelVolume > Create(const eid entity_id, const std::string name)
std::weak_ptr< VoxelVolume > Create(const eid entity_id, std::weak_ptr< MeshFile > mesh =std::weak_ptr< MeshFile >())

Additional inherited members

Public Functions inherited from tec::CommandQueue< VoxelVolume >

Name
CommandQueue()
~CommandQueue()
void ProcessCommandQueue()
void QueueCommand(Command< T > && command)
void QueueCommand(std::function< void(T *)> && command)

Protected Attributes inherited from tec::CommandQueue< VoxelVolume >

Name
std::atomic< std::queue< Command< T > > * > global_command_queue
std::queue< Command< T > > * local_queue

Public Functions Documentation

function VoxelVolume

VoxelVolume(
    std::weak_ptr< MeshFile > mesh
)

function ~VoxelVolume

~VoxelVolume()

function Update

void Update(
    double delta
)

function Out

inline void Out(
    proto::Component * 
)

function UpdateMesh

void UpdateMesh()

function GetMesh

std::weak_ptr< MeshFile > GetMesh()

function AddVoxel

void AddVoxel(
    const std::int16_t row,
    const std::int16_t column,
    const std::int16_t slice
)

function RemoveVoxel

void RemoveVoxel(
    const std::int16_t row,
    const std::int16_t column,
    const std::int16_t slice
)

function Create

static std::weak_ptr< VoxelVolume > Create(
    const eid entity_id,
    const std::string name
)

function Create

static std::weak_ptr< VoxelVolume > Create(
    const eid entity_id,
    std::weak_ptr< MeshFile > mesh =std::weak_ptr< MeshFile >()
)

Updated on 2022-07-24 at 19:27:35 +0000