This class adds RobWorkStudio specific functionality to a WorkCellViewer.
More...
#include <RWStudioView3D.hpp>
Inherits QWidget.
This class adds RobWorkStudio specific functionality to a WorkCellViewer.
specifically:
- optional collision detection and highlighting of frames
◆ RWStudioView3D()
Constructs an OpenGL based QT Widget.
- Parameters
-
◆ getPropertyMap()
get propertymap
- Returns
- propertymap
◆ getSceneViewer()
Get the scene viewer.
- Returns
- the scene viewer.
◆ getWorkCellScene()
Get the scene.
- Returns
- the scene.
◆ keyPressEvent()
void keyPressEvent |
( |
QKeyEvent * |
e | ) |
|
Handle key press events.
The following is supported:
Keys | Function |
CTRL+G | Save current view to file (file dialog is opened) |
CTRL+Left | Switch to previous scene camera |
CTRL+Right | Switch to next scene camera |
CTRL+1...9 | Switch to scene camera number n |
- Parameters
-
◆ mouseDoubleClickEvent()
void mouseDoubleClickEvent |
( |
QMouseEvent * |
event | ) |
|
Handle double mouse click events.
If CTRL key is pressed while double clicking the left mouse button, a frame can be selected.
- Parameters
-
◆ pick()
picks a drawable in the scene.
- Parameters
-
x | [in] x coordinate |
y | [in] y coordinate |
- Returns
- the drawable that was selected, Null if no frames where selected.
◆ pickFrame()
picks the frame that has drawables that intersect the ray cast into the screen from the screen coordinates x and y.
- Parameters
-
x | [in] x coordinate |
y | [in] y coordinate |
- Returns
- the frame that was selected, Null if no frames where selected.
◆ saveBufferToFile()
void saveBufferToFile |
( |
const QString & |
filename, |
|
|
const int |
fillR = 0 , |
|
|
const int |
fillG = 0 , |
|
|
const int |
fillB = 0 |
|
) |
| |
|
inline |
Saves the current 3D view to disk as either jpg, bmp or png.
If failing a std::string is thrown with a detailed description of what when wrong.
- Parameters
-
filename | [in] Path and name of the file. The filename extension should be either ".jpg", ".bmp" or ".png" to specify which format to use. |
fillR | [in] Fill color if viewport is smaller than image, red component [0,255] |
fillG | [in] Fill color if viewport is smaller than image, green component [0,255] |
fillB | [in] Fill color if viewport is smaller than image, blue component [0,255] |
◆ setDrawType()
Sets whether to visualize as SOLID, WIRE or BOTH.
- Parameters
-
drawType | [in] The drawtype to use |
◆ setSceneViewerWidget()
Set the widget used for visualization of the scene.
- Parameters
-
viewer | [in] the widget for visualization of the scene. |
◆ setState()
set the state of the view
- Parameters
-
state | [in] new state to be rendered |
◆ setupGUI()
void setupGUI |
( |
QMainWindow * |
mainwindow | ) |
|
◆ setWorkCell()
Set the workcell.
- Parameters
-
workcell | [in] the workcell. |
◆ showPivotPoint()
void showPivotPoint |
( |
bool |
visible | ) |
|
Specified whether to visualize the pivot point.
- Parameters
-
visible | [in] True for showing pivot point, false otherwise. |
The documentation for this class was generated from the following file: