renderworldwrapperwidget.cpp
57 RenderWorldWrapperWidget::RenderWorldWrapperWidget(QWidget* parent, Qt::WindowFlags flags) :
120 void RenderWorldWrapperWidget::resourceChanged(QString resourceName, ResourceChangeType changeType)
150 m_renderWorld->camera()->setPosition(Vec(cameraDefaultPosition[0], cameraDefaultPosition[1], cameraDefaultPosition[2]));
152 m_renderWorld->camera()->lookAt(Vec(m_robotTm.w_pos[0], m_robotTm.w_pos[1], m_robotTm.w_pos[2]));
void usableResources(QStringList resources)
virtual void resourceChanged(QString resourceName, ResourceChangeType changeType)
The function called when a resource used here is changed.
Definition: renderworldwrapperwidget.cpp:120
bool viewerStateRestoredFromFile() const
void setStateFileName(const QString &name)
virtual void shareResourcesWith(ResourcesUser *buddy)
void setSelfUpdate(bool enable)
enable/disable the self updating features
Definition: renderworldwrapperwidget.cpp:108
virtual void shareResourcesWith(ResourcesUser *buddy)
Shares resources with the provided instance of ResourcesUser.
Definition: renderworldwrapperwidget.cpp:88
bool m_setCameraToLookAtRobot
True if we have to set camera to look at the robot.
Definition: renderworldwrapperwidget.h:123
static void info(QString msg)
bool isSelfUpdate()
return true if the self updating is active
Definition: renderworldwrapperwidget.cpp:116
qglviewer::Camera * camera() const
void lookAt(const Vec &target)
void setUpVector(const Vec &up, bool noMove=true)
void setPosition(const Vec &pos)
virtual void customEvent(QEvent *event)
The function that receives custom events.
Definition: renderworldwrapperwidget.cpp:139
void updateRenderWorld()
Triggers an update of the RenderWorld object.
Definition: renderworldwrapperwidget.cpp:97
QTimer * m_selfUpdateTimer
Timer used for self update the render world.
Definition: renderworldwrapperwidget.h:133
void lookAtRobot()
Brings the camera in front of the robot.
Definition: renderworldwrapperwidget.cpp:147
wVector transformVector(const wVector &v) const
RenderWorld *const m_renderWorld
The object actually rendering the world.
Definition: renderworldwrapperwidget.h:113
ResourceChangeType