allowed access to the viewer node from the viewer widgets

This commit is contained in:
itsmattkc
2019-12-16 03:02:28 +11:00
parent 4ddeadaf46
commit b96fd7ae45
4 changed files with 14 additions and 0 deletions
+5
View File
@@ -107,6 +107,11 @@ rational ViewerPanel::GetTime()
return viewer_->GetTime();
}
ViewerOutput *ViewerPanel::GetConnectedViewer() const
{
return viewer_->GetConnectedViewer();
}
void ViewerPanel::SetTime(const int64_t &timestamp)
{
viewer_->SetTime(timestamp);
+2
View File
@@ -62,6 +62,8 @@ public:
rational GetTime();
ViewerOutput* GetConnectedViewer() const;
public slots:
void SetTime(const int64_t& timestamp);
+5
View File
@@ -166,6 +166,11 @@ void ViewerWidget::DisconnectViewerNode()
ConnectViewerNode(nullptr);
}
ViewerOutput *ViewerWidget::GetConnectedViewer() const
{
return viewer_node_;
}
void ViewerWidget::SetTexture(OpenGLTexturePtr tex)
{
if (tex == nullptr) {
+2
View File
@@ -67,6 +67,8 @@ public:
void DisconnectViewerNode();
ViewerOutput* GetConnectedViewer() const;
public slots:
/**
* @brief Set the texture to draw and draw it