Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
lvr2::AsciiRenderer Class Reference

#include <AsciiRenderer.hpp>

Public Member Functions

 AsciiRenderer (MeshBufferPtr mesh, const unsigned int &num_grays=200)
 
void clear ()
 
void clear (const unsigned int &i, const unsigned int &j)
 
unsigned int height ()
 
void processKey (int key)
 
void render ()
 
void set (const unsigned int &i, const unsigned int &j)
 
unsigned int width ()
 
 ~AsciiRenderer ()
 

Protected Member Functions

void raycast ()
 

Private Member Functions

void consolePrintMessage (std::string message)
 
void consoleReleaseMessages ()
 
void destroyBuffers ()
 
void destroyEmbree ()
 
void initBuffers ()
 
void initEmbree (MeshBufferPtr mesh)
 
RTCDevice initializeDevice ()
 
RTCScene initializeScene (RTCDevice device, const MeshBufferPtr mesh)
 
void printControls ()
 

Private Attributes

unsigned int m_ascii_height
 
unsigned int m_ascii_width
 
double m_avg_fps = 20
 
double m_boost = 3.0
 
Eigen::Affine3d m_camera
 
BrailleChar ** m_chars
 
float ** m_colors
 
RTCIntersectContext m_context
 
RTCDevice m_device
 
double m_fps_alpha = 0.8
 
std::vector< std::string > m_messages
 
double m_mouse_x
 
double m_mouse_y
 
unsigned int m_num_grays
 
RTCScene m_scene
 
bool m_show_controls = false
 
double m_sidereduce = 0.8
 
bool m_track_mouse = false
 
double m_vrot = 0.005
 
double m_vtrans = 0.5
 
WINDOW * m_window
 

Detailed Description

Definition at line 22 of file AsciiRenderer.hpp.

Constructor & Destructor Documentation

◆ AsciiRenderer()

lvr2::AsciiRenderer::AsciiRenderer ( MeshBufferPtr  mesh,
const unsigned int &  num_grays = 200 
)

Definition at line 13 of file AsciiRenderer.cpp.

◆ ~AsciiRenderer()

lvr2::AsciiRenderer::~AsciiRenderer ( )

Definition at line 34 of file AsciiRenderer.cpp.

Member Function Documentation

◆ clear() [1/2]

void lvr2::AsciiRenderer::clear ( )

Definition at line 185 of file AsciiRenderer.cpp.

◆ clear() [2/2]

void lvr2::AsciiRenderer::clear ( const unsigned int &  i,
const unsigned int &  j 
)

Definition at line 174 of file AsciiRenderer.cpp.

◆ consolePrintMessage()

void lvr2::AsciiRenderer::consolePrintMessage ( std::string  message)
private

Definition at line 407 of file AsciiRenderer.cpp.

◆ consoleReleaseMessages()

void lvr2::AsciiRenderer::consoleReleaseMessages ( )
private

Definition at line 412 of file AsciiRenderer.cpp.

◆ destroyBuffers()

void lvr2::AsciiRenderer::destroyBuffers ( )
private

Definition at line 69 of file AsciiRenderer.cpp.

◆ destroyEmbree()

void lvr2::AsciiRenderer::destroyEmbree ( )
private

Definition at line 157 of file AsciiRenderer.cpp.

◆ height()

unsigned int lvr2::AsciiRenderer::height ( )

Definition at line 450 of file AsciiRenderer.cpp.

◆ initBuffers()

void lvr2::AsciiRenderer::initBuffers ( )
private

Definition at line 41 of file AsciiRenderer.cpp.

◆ initEmbree()

void lvr2::AsciiRenderer::initEmbree ( MeshBufferPtr  mesh)
private

Definition at line 90 of file AsciiRenderer.cpp.

◆ initializeDevice()

RTCDevice lvr2::AsciiRenderer::initializeDevice ( )
private

Definition at line 97 of file AsciiRenderer.cpp.

◆ initializeScene()

RTCScene lvr2::AsciiRenderer::initializeScene ( RTCDevice  device,
const MeshBufferPtr  mesh 
)
private

Definition at line 110 of file AsciiRenderer.cpp.

◆ printControls()

void lvr2::AsciiRenderer::printControls ( )
private

Definition at line 426 of file AsciiRenderer.cpp.

◆ processKey()

void lvr2::AsciiRenderer::processKey ( int  key)

Definition at line 268 of file AsciiRenderer.cpp.

◆ raycast()

void lvr2::AsciiRenderer::raycast ( )
protected

Definition at line 197 of file AsciiRenderer.cpp.

◆ render()

void lvr2::AsciiRenderer::render ( )

Definition at line 369 of file AsciiRenderer.cpp.

◆ set()

void lvr2::AsciiRenderer::set ( const unsigned int &  i,
const unsigned int &  j 
)

Definition at line 163 of file AsciiRenderer.cpp.

◆ width()

unsigned int lvr2::AsciiRenderer::width ( )

Definition at line 445 of file AsciiRenderer.cpp.

Member Data Documentation

◆ m_ascii_height

unsigned int lvr2::AsciiRenderer::m_ascii_height
private

Definition at line 66 of file AsciiRenderer.hpp.

◆ m_ascii_width

unsigned int lvr2::AsciiRenderer::m_ascii_width
private

Definition at line 65 of file AsciiRenderer.hpp.

◆ m_avg_fps

double lvr2::AsciiRenderer::m_avg_fps = 20
private

Definition at line 98 of file AsciiRenderer.hpp.

◆ m_boost

double lvr2::AsciiRenderer::m_boost = 3.0
private

Definition at line 96 of file AsciiRenderer.hpp.

◆ m_camera

Eigen::Affine3d lvr2::AsciiRenderer::m_camera
private

Definition at line 80 of file AsciiRenderer.hpp.

◆ m_chars

BrailleChar** lvr2::AsciiRenderer::m_chars
private

Definition at line 71 of file AsciiRenderer.hpp.

◆ m_colors

float** lvr2::AsciiRenderer::m_colors
private

Definition at line 73 of file AsciiRenderer.hpp.

◆ m_context

RTCIntersectContext lvr2::AsciiRenderer::m_context
private

Definition at line 77 of file AsciiRenderer.hpp.

◆ m_device

RTCDevice lvr2::AsciiRenderer::m_device
private

Definition at line 75 of file AsciiRenderer.hpp.

◆ m_fps_alpha

double lvr2::AsciiRenderer::m_fps_alpha = 0.8
private

Definition at line 99 of file AsciiRenderer.hpp.

◆ m_messages

std::vector<std::string> lvr2::AsciiRenderer::m_messages
private

Definition at line 63 of file AsciiRenderer.hpp.

◆ m_mouse_x

double lvr2::AsciiRenderer::m_mouse_x
private

Definition at line 86 of file AsciiRenderer.hpp.

◆ m_mouse_y

double lvr2::AsciiRenderer::m_mouse_y
private

Definition at line 87 of file AsciiRenderer.hpp.

◆ m_num_grays

unsigned int lvr2::AsciiRenderer::m_num_grays
private

Definition at line 67 of file AsciiRenderer.hpp.

◆ m_scene

RTCScene lvr2::AsciiRenderer::m_scene
private

Definition at line 76 of file AsciiRenderer.hpp.

◆ m_show_controls

bool lvr2::AsciiRenderer::m_show_controls = false
private

Definition at line 90 of file AsciiRenderer.hpp.

◆ m_sidereduce

double lvr2::AsciiRenderer::m_sidereduce = 0.8
private

Definition at line 95 of file AsciiRenderer.hpp.

◆ m_track_mouse

bool lvr2::AsciiRenderer::m_track_mouse = false
private

Definition at line 85 of file AsciiRenderer.hpp.

◆ m_vrot

double lvr2::AsciiRenderer::m_vrot = 0.005
private

Definition at line 93 of file AsciiRenderer.hpp.

◆ m_vtrans

double lvr2::AsciiRenderer::m_vtrans = 0.5
private

Definition at line 94 of file AsciiRenderer.hpp.

◆ m_window

WINDOW* lvr2::AsciiRenderer::m_window
private

Definition at line 69 of file AsciiRenderer.hpp.


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


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:27