facebook360_dep
Facebook360 Depth Estimation Pipeline
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
SimpleMeshWindow Class Reference
Inheritance diagram for SimpleMeshWindow:
GlWindow

Public Member Functions

 SimpleMeshWindow (const ScreenState screenState)
 
void keyPress (int key, int s, int action, int mods) override
 
void display () override
 
cv::Mat_< cv::Vec4f > snapshot (const bool isColorDisp=false)
 
cv::Mat_< cv::Vec4f > generate (const cv::Mat_< cv::Vec4f > &foreground)
 
cv::Mat_< cv::Vec4f > stereo (const int formatIdx, const int width, const Eigen::Vector3f &position)
 
cv::Mat_< cv::Vec4f > tb3dof (const int width, const Eigen::Vector3f &position)
 
- Public Member Functions inherited from GlWindow
 GlWindow ()
 Off-screen window constructor. More...
 
 GlWindow (const std::string &name, const int width, const int height, const bool borderless=false, const int outputBPP=8, const ScreenState screenState=ON_SCREEN)
 On-screen window constructor. More...
 
virtual ~GlWindow ()
 

Public Attributes

std::shared_ptr< CanopyScenesceneColor
 
std::shared_ptr< CanopyScenesceneDisp
 

Protected Member Functions

void report ()
 
Eigen::Affine3f forwardUp (const Eigen::Vector3f &forward, const Eigen::Vector3f &up)
 
Eigen::Affine3f posForwardUp (const Eigen::Vector3f &position, const Eigen::Vector3f &forward, const Eigen::Vector3f &up)
 
cv::Mat_< cv::Vec4f > alphaBlend (const cv::Mat_< cv::Vec4f > &fore, const cv::Mat_< cv::Vec4f > &back)
 
void backgroundEquirect (cv::Mat_< cv::Vec4f > &fore, const cv::Mat_< cv::Vec4f > &equi)
 
- Protected Member Functions inherited from GlWindow
virtual void updateTransform ()
 
virtual void reshape (const int w, const int h)
 
virtual void mouse (const int button, const int action, const int mods)
 
virtual void motion (const double x, const double y)
 
void resetTransformState ()
 

Additional Inherited Members

- Public Types inherited from GlWindow
enum  ScreenState : unsigned { ON_SCREEN = 0x1, OFF_SCREEN = 0x2, BOTH_SCREEN = 0x3 }
 
- Static Public Member Functions inherited from GlWindow
static void mainLoop ()
 
- Protected Attributes inherited from GlWindow
const ScreenState screenState
 
int mouseButton
 
int mouseAction
 
int mouseMods
 
Eigen::Vector2f mousePos
 
Eigen::Vector2i viewport
 
float scale
 
Eigen::Projective3f projection
 
Eigen::Affine3f transform = Eigen::Affine3f::Identity()
 
Eigen::Vector3f up
 
float pitch
 
float yaw
 
Eigen::Vector3f origin
 
bool wireframe
 
bool done
 
std::string name
 
int width
 
int height
 
GLFWwindow * window
 
GLuint fbo
 

Constructor & Destructor Documentation

◆ SimpleMeshWindow()

SimpleMeshWindow::SimpleMeshWindow ( const ScreenState  screenState)
inline

Member Function Documentation

◆ alphaBlend()

cv::Mat_<cv::Vec4f> SimpleMeshWindow::alphaBlend ( const cv::Mat_< cv::Vec4f > &  fore,
const cv::Mat_< cv::Vec4f > &  back 
)
inlineprotected

◆ backgroundEquirect()

void SimpleMeshWindow::backgroundEquirect ( cv::Mat_< cv::Vec4f > &  fore,
const cv::Mat_< cv::Vec4f > &  equi 
)
inlineprotected

◆ display()

void SimpleMeshWindow::display ( )
inlineoverridevirtual

Implements GlWindow.

◆ forwardUp()

Eigen::Affine3f SimpleMeshWindow::forwardUp ( const Eigen::Vector3f &  forward,
const Eigen::Vector3f &  up 
)
inlineprotected

◆ generate()

cv::Mat_<cv::Vec4f> SimpleMeshWindow::generate ( const cv::Mat_< cv::Vec4f > &  foreground)
inline

◆ keyPress()

void SimpleMeshWindow::keyPress ( int  key,
int  s,
int  action,
int  mods 
)
inlineoverridevirtual

Reimplemented from GlWindow.

◆ posForwardUp()

Eigen::Affine3f SimpleMeshWindow::posForwardUp ( const Eigen::Vector3f &  position,
const Eigen::Vector3f &  forward,
const Eigen::Vector3f &  up 
)
inlineprotected

◆ report()

void SimpleMeshWindow::report ( )
inlineprotected

◆ snapshot()

cv::Mat_<cv::Vec4f> SimpleMeshWindow::snapshot ( const bool  isColorDisp = false)
inline

◆ stereo()

cv::Mat_<cv::Vec4f> SimpleMeshWindow::stereo ( const int  formatIdx,
const int  width,
const Eigen::Vector3f &  position 
)
inline

◆ tb3dof()

cv::Mat_<cv::Vec4f> SimpleMeshWindow::tb3dof ( const int  width,
const Eigen::Vector3f &  position 
)
inline

Member Data Documentation

◆ sceneColor

std::shared_ptr<CanopyScene> SimpleMeshWindow::sceneColor

◆ sceneDisp

std::shared_ptr<CanopyScene> SimpleMeshWindow::sceneDisp

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