Class PageObjectWithWindow

Inheritance Relationships

Base Type

Class Documentation

class PageObjectWithWindow : public BasePageObject

Public Functions

PageObjectWithWindow(int display_category, QString display_name)
void captureDisplayRenderWindow(std::string image_name)

Used internally to make a screenshot.

Protected Functions

virtual void setRenderWindow() = 0

Abstract function: Implement to capture the correct render window and save it to the member variable render_window_. This will then be used to make a screenshot.

Use test_helpers::findWindow(window_name) to find the corresponding render window (note that the window needs to have its Qt object_name set to the name of the window).

Protected Attributes

rviz_rendering::RenderWindow *render_window_
int display_with_window_index_