A QQUickItem that manages the render window. More...
#include <MinimalScene.hh>
Public Slots | |
void | Ready () |
Slot called when thread is ready to be started. More... | |
void | Ready () |
Slot called when thread is ready to be started. More... | |
Public Member Functions | |
RenderWindowItem (QQuickItem *_parent=nullptr) | |
Constructor. More... | |
RenderWindowItem (QQuickItem *_parent=nullptr) | |
Constructor. More... | |
virtual | ~RenderWindowItem () |
Destructor. More... | |
~RenderWindowItem () | |
void | HandleKeyPress (QKeyEvent *_e) |
Handle key press event for snapping. More... | |
void | HandleKeyPress (const common::KeyEvent &_e) |
Handle key press event for snapping. More... | |
void | HandleKeyRelease (QKeyEvent *_e) |
Handle key release event for snapping. More... | |
void | HandleKeyRelease (const common::KeyEvent &_e) |
Handle key release event for snapping. More... | |
void | OnDropped (const QString &_drop, const ignition::math::Vector2i &_dropPos) |
Callback when receives a drop event. More... | |
void | OnHovered (const ignition::math::Vector2i &_hoverPos) |
Called when the mouse hovers to a new position. More... | |
void | OnHovered (const ignition::math::Vector2i &_hoverPos) |
Called when the mouse hovers to a new position. More... | |
void | SetAmbientLight (const math::Color &_ambient) |
Set ambient light of render window. More... | |
void | SetAmbientLight (const math::Color &_ambient) |
Set ambient light of render window. More... | |
void | SetBackgroundColor (const math::Color &_color) |
Set background color of render window. More... | |
void | SetBackgroundColor (const math::Color &_color) |
Set background color of render window. More... | |
void | SetCameraPose (const math::Pose3d &_pose) |
Set the initial pose the render window camera. More... | |
void | SetCameraPose (const math::Pose3d &_pose) |
Set the initial pose the render window camera. More... | |
void | SetDeletionTopic (const std::string &_topic) |
Set deletion topic to use for deleting objects from the scene The renderer will subscribe to this topic to get notified when entities in the scene get deleted. More... | |
void | SetDeletionTopic (const std::string &_topic) |
Set deletion topic to use for deleting objects from the scene The renderer will subscribe to this topic to get notified when entities in the scene get deleted. More... | |
void | SetEngineName (const std::string &_name) |
Set engine name used to create the render window. More... | |
void | SetEngineName (const std::string &_name) |
Set engine name used to create the render window. More... | |
void | SetPoseTopic (const std::string &_topic) |
Set pose topic to use for updating objects in the scene The renderer will subscribe to this topic to get pose messages of visuals in the scene. More... | |
void | SetPoseTopic (const std::string &_topic) |
Set pose topic to use for updating objects in the scene The renderer will subscribe to this topic to get pose messages of visuals in the scene. More... | |
void | SetSceneName (const std::string &_name) |
Set name of scene created inside the render window. More... | |
void | SetSceneName (const std::string &_name) |
Set name of scene created inside the render window. More... | |
void | SetSceneService (const std::string &_service) |
Set scene service to use in this render window A service call will be made using ign-transport to get scene data using this service. More... | |
void | SetSceneService (const std::string &_service) |
Set scene service to use in this render window A service call will be made using ign-transport to get scene data using this service. More... | |
void | SetSceneTopic (const std::string &_topic) |
Set the scene topic to use for updating objects in the scene The renderer will subscribe to this topic to get updates scene messages. More... | |
void | SetSceneTopic (const std::string &_topic) |
Set the scene topic to use for updating objects in the scene The renderer will subscribe to this topic to get updates scene messages. More... | |
void | SetSkyEnabled (const bool &_sky) |
Set if sky is enabled. More... | |
Protected Member Functions | |
virtual void | keyPressEvent (QKeyEvent *_event) override |
virtual void | keyPressEvent (QKeyEvent *_e) override |
virtual void | keyReleaseEvent (QKeyEvent *_event) override |
virtual void | keyReleaseEvent (QKeyEvent *_e) override |
virtual void | mouseMoveEvent (QMouseEvent *_e) override |
virtual void | mouseMoveEvent (QMouseEvent *_e) override |
virtual void | mousePressEvent (QMouseEvent *_e) override |
virtual void | mousePressEvent (QMouseEvent *_e) override |
virtual void | mouseReleaseEvent (QMouseEvent *_e) override |
virtual void | mouseReleaseEvent (QMouseEvent *_e) override |
virtual void | wheelEvent (QWheelEvent *_e) override |
virtual void | wheelEvent (QWheelEvent *_e) override |
Detailed Description
A QQUickItem that manages the render window.
Constructor & Destructor Documentation
◆ RenderWindowItem() [1/2]
|
explicit |
Constructor.
- Parameters
-
[in] _parent Parent item
◆ ~RenderWindowItem() [1/2]
~RenderWindowItem | ( | ) |
◆ RenderWindowItem() [2/2]
|
explicit |
Constructor.
- Parameters
-
[in] _parent Parent item
◆ ~RenderWindowItem() [2/2]
|
virtual |
Destructor.
Member Function Documentation
◆ HandleKeyPress() [1/2]
void HandleKeyPress | ( | QKeyEvent * | _e | ) |
Handle key press event for snapping.
- Parameters
-
[in] _e The key event to process.
◆ HandleKeyPress() [2/2]
void HandleKeyPress | ( | const common::KeyEvent & | _e | ) |
Handle key press event for snapping.
- Parameters
-
[in] _e The key event to process.
◆ HandleKeyRelease() [1/2]
void HandleKeyRelease | ( | QKeyEvent * | _e | ) |
Handle key release event for snapping.
- Parameters
-
[in] _e The key event to process.
◆ HandleKeyRelease() [2/2]
void HandleKeyRelease | ( | const common::KeyEvent & | _e | ) |
Handle key release event for snapping.
- Parameters
-
[in] _e The key event to process.
◆ keyPressEvent() [1/2]
|
overrideprotectedvirtual |
◆ keyPressEvent() [2/2]
|
overrideprotectedvirtual |
◆ keyReleaseEvent() [1/2]
|
overrideprotectedvirtual |
◆ keyReleaseEvent() [2/2]
|
overrideprotectedvirtual |
◆ mouseMoveEvent() [1/2]
|
overrideprotectedvirtual |
◆ mouseMoveEvent() [2/2]
|
overrideprotectedvirtual |
◆ mousePressEvent() [1/2]
|
overrideprotectedvirtual |
◆ mousePressEvent() [2/2]
|
overrideprotectedvirtual |
◆ mouseReleaseEvent() [1/2]
|
overrideprotectedvirtual |
◆ mouseReleaseEvent() [2/2]
|
overrideprotectedvirtual |
◆ OnDropped()
void OnDropped | ( | const QString & | _drop, |
const ignition::math::Vector2i & | _dropPos | ||
) |
Callback when receives a drop event.
- Parameters
-
[in] _drop Dropped string. [in] _dropPos x coordinate of mouse position.
◆ OnHovered() [1/2]
void OnHovered | ( | const ignition::math::Vector2i & | _hoverPos | ) |
Called when the mouse hovers to a new position.
- Parameters
-
[in] _hoverPos 2D coordinates of the hovered mouse position on the render window.
◆ OnHovered() [2/2]
void OnHovered | ( | const ignition::math::Vector2i & | _hoverPos | ) |
Called when the mouse hovers to a new position.
- Parameters
-
[in] _hoverPos 2D coordinates of the hovered mouse position on the render window.
◆ Ready [1/2]
|
slot |
Slot called when thread is ready to be started.
◆ Ready [2/2]
|
slot |
Slot called when thread is ready to be started.
◆ SetAmbientLight() [1/2]
void SetAmbientLight | ( | const math::Color & | _ambient | ) |
Set ambient light of render window.
- Parameters
-
[in] _ambient Color of ambient light
◆ SetAmbientLight() [2/2]
void SetAmbientLight | ( | const math::Color & | _ambient | ) |
Set ambient light of render window.
- Parameters
-
[in] _ambient Color of ambient light
◆ SetBackgroundColor() [1/2]
void SetBackgroundColor | ( | const math::Color & | _color | ) |
Set background color of render window.
- Parameters
-
[in] _color Color of render window background
◆ SetBackgroundColor() [2/2]
void SetBackgroundColor | ( | const math::Color & | _color | ) |
Set background color of render window.
- Parameters
-
[in] _color Color of render window background
◆ SetCameraPose() [1/2]
void SetCameraPose | ( | const math::Pose3d & | _pose | ) |
Set the initial pose the render window camera.
- Parameters
-
[in] _pose Initical camera pose
◆ SetCameraPose() [2/2]
void SetCameraPose | ( | const math::Pose3d & | _pose | ) |
Set the initial pose the render window camera.
- Parameters
-
[in] _pose Initical camera pose
◆ SetDeletionTopic() [1/2]
void SetDeletionTopic | ( | const std::string & | _topic | ) |
Set deletion topic to use for deleting objects from the scene The renderer will subscribe to this topic to get notified when entities in the scene get deleted.
- Parameters
-
[in] _topic Deletion topic
◆ SetDeletionTopic() [2/2]
void SetDeletionTopic | ( | const std::string & | _topic | ) |
Set deletion topic to use for deleting objects from the scene The renderer will subscribe to this topic to get notified when entities in the scene get deleted.
- Parameters
-
[in] _topic Deletion topic
◆ SetEngineName() [1/2]
void SetEngineName | ( | const std::string & | _name | ) |
Set engine name used to create the render window.
- Parameters
-
[in] _name Name of render engine
◆ SetEngineName() [2/2]
void SetEngineName | ( | const std::string & | _name | ) |
Set engine name used to create the render window.
- Parameters
-
[in] _name Name of render engine
◆ SetPoseTopic() [1/2]
void SetPoseTopic | ( | const std::string & | _topic | ) |
Set pose topic to use for updating objects in the scene The renderer will subscribe to this topic to get pose messages of visuals in the scene.
- Parameters
-
[in] _topic Pose topic
◆ SetPoseTopic() [2/2]
void SetPoseTopic | ( | const std::string & | _topic | ) |
Set pose topic to use for updating objects in the scene The renderer will subscribe to this topic to get pose messages of visuals in the scene.
- Parameters
-
[in] _topic Pose topic
◆ SetSceneName() [1/2]
void SetSceneName | ( | const std::string & | _name | ) |
Set name of scene created inside the render window.
- Parameters
-
[in] _name Name of scene
◆ SetSceneName() [2/2]
void SetSceneName | ( | const std::string & | _name | ) |
Set name of scene created inside the render window.
- Parameters
-
[in] _name Name of scene
◆ SetSceneService() [1/2]
void SetSceneService | ( | const std::string & | _service | ) |
Set scene service to use in this render window A service call will be made using ign-transport to get scene data using this service.
- Parameters
-
[in] _service Scene service name
◆ SetSceneService() [2/2]
void SetSceneService | ( | const std::string & | _service | ) |
Set scene service to use in this render window A service call will be made using ign-transport to get scene data using this service.
- Parameters
-
[in] _service Scene service name
◆ SetSceneTopic() [1/2]
void SetSceneTopic | ( | const std::string & | _topic | ) |
Set the scene topic to use for updating objects in the scene The renderer will subscribe to this topic to get updates scene messages.
- Parameters
-
[in] _topic Scene topic
◆ SetSceneTopic() [2/2]
void SetSceneTopic | ( | const std::string & | _topic | ) |
Set the scene topic to use for updating objects in the scene The renderer will subscribe to this topic to get updates scene messages.
- Parameters
-
[in] _topic Scene topic
◆ SetSkyEnabled()
void SetSkyEnabled | ( | const bool & | _sky | ) |
Set if sky is enabled.
- Parameters
-
[in] _sky True to enable the sky, false otherwise.
◆ wheelEvent() [1/2]
|
overrideprotectedvirtual |
◆ wheelEvent() [2/2]
|
overrideprotectedvirtual |
The documentation for this class was generated from the following files: