allowed access to the viewer node from the viewer widgets
This commit is contained in:
@@ -107,6 +107,11 @@ rational ViewerPanel::GetTime()
|
||||
return viewer_->GetTime();
|
||||
}
|
||||
|
||||
ViewerOutput *ViewerPanel::GetConnectedViewer() const
|
||||
{
|
||||
return viewer_->GetConnectedViewer();
|
||||
}
|
||||
|
||||
void ViewerPanel::SetTime(const int64_t ×tamp)
|
||||
{
|
||||
viewer_->SetTime(timestamp);
|
||||
|
||||
@@ -62,6 +62,8 @@ public:
|
||||
|
||||
rational GetTime();
|
||||
|
||||
ViewerOutput* GetConnectedViewer() const;
|
||||
|
||||
public slots:
|
||||
void SetTime(const int64_t& timestamp);
|
||||
|
||||
|
||||
@@ -166,6 +166,11 @@ void ViewerWidget::DisconnectViewerNode()
|
||||
ConnectViewerNode(nullptr);
|
||||
}
|
||||
|
||||
ViewerOutput *ViewerWidget::GetConnectedViewer() const
|
||||
{
|
||||
return viewer_node_;
|
||||
}
|
||||
|
||||
void ViewerWidget::SetTexture(OpenGLTexturePtr tex)
|
||||
{
|
||||
if (tex == nullptr) {
|
||||
|
||||
@@ -67,6 +67,8 @@ public:
|
||||
|
||||
void DisconnectViewerNode();
|
||||
|
||||
ViewerOutput* GetConnectedViewer() const;
|
||||
|
||||
public slots:
|
||||
/**
|
||||
* @brief Set the texture to draw and draw it
|
||||
|
||||
Reference in New Issue
Block a user