esp::sim::AbstractReplayRenderer class

Derived classes

class BatchReplayRenderer
class ClassicReplayRenderer

Public static functions

static auto environmentGridSize(int environmentCount) -> Magnum::Vector2i

Constructors, destructors, conversion operators

~AbstractReplayRenderer() virtual

Public functions

void close()
void preloadFile(Corrade::Containers::StringView filename)
auto environmentCount() const -> unsigned
auto sensorSize(unsigned envIndex) -> Magnum::Vector2i
void clearEnvironment(unsigned envIndex)
void setEnvironmentKeyframe(unsigned envIndex, const std::string& serKeyframe)
void setEnvironmentKeyframeUnwrapped(unsigned envIndex, Corrade::Containers::StringView serKeyframe)
void setSensorTransform(unsigned envIndex, const std::string& sensorName, const Magnum::Matrix4& transform)
void setSensorTransformsFromKeyframe(unsigned envIndex, const std::string& prefix)
void render(Corrade::Containers::ArrayView<const Magnum::MutableImageView2D> colorImageViews, Corrade::Containers::ArrayView<const Magnum::MutableImageView2D> depthImageViews)
void render(Magnum::GL::AbstractFramebuffer& framebuffer)
auto getCudaColorBufferDevicePointer() -> const void* virtual
auto getCudaDepthBufferDevicePointer() -> const void* virtual
auto getDebugLineRender(unsigned envIndex) -> std::shared_ptr<esp::gfx::DebugLineRender>
auto unproject(unsigned envIndex, const Magnum::Vector2i& viewportPosition) -> esp::geo::Ray
Unproject a 2D viewport point to a 3D ray with origin at camera position. Ray direction is normalized.

Protected functions

void checkEnvIndex(unsigned envIndex)

Protected variables

std::shared_ptr<esp::gfx::DebugLineRender> debugLineRender_

Private functions

void doPreloadFile(Corrade::Containers::StringView filename) virtual
void doClose() pure virtual
auto doEnvironmentCount() const -> unsigned pure virtual
auto doPlayerFor(unsigned envIndex) -> esp::gfx::replay::Player& pure virtual
auto doSensorSize(unsigned envIndex) -> Magnum::Vector2i pure virtual
void doSetSensorTransform(unsigned envIndex, const std::string& sensorName, const Magnum::Matrix4& transform) pure virtual
void doSetSensorTransformsFromKeyframe(unsigned envIndex, const std::string& prefix) pure virtual
void doRender(Corrade::Containers::ArrayView<const Magnum::MutableImageView2D> colorImageViews, Corrade::Containers::ArrayView<const Magnum::MutableImageView2D> depthImageViews) pure virtual
void doRender(Magnum::GL::AbstractFramebuffer& framebuffer) pure virtual
auto doUnproject(unsigned envIndex, const Mn::Vector2i& viewportPosition) -> esp::geo::Ray pure virtual

Function documentation

esp::geo::Ray esp::sim::AbstractReplayRenderer::unproject(unsigned envIndex, const Magnum::Vector2i& viewportPosition)

Unproject a 2D viewport point to a 3D ray with origin at camera position. Ray direction is normalized.

Parameters
envIndex
viewportPosition The 2D point on the viewport to unproject ([0,width], [0,height]).