Public Types | Public Member Functions | List of all members
gazebo::gui::EditorView Class Reference

Control the editor view and manage contents in the editor scene. More...

#include <EditorView.hh>

Inheritance diagram for gazebo::gui::EditorView:
Inheritance graph
[legend]
Collaboration diagram for gazebo::gui::EditorView:
Collaboration graph
[legend]

Public Types

enum  DrawModes {
  NONE, WALL, WINDOW, DOOR,
  STAIRS, COLOR, TEXTURE
}
 Unique identifiers for all drawing modes within the editor. More...
 

Public Member Functions

 EditorView (QWidget *_parent=0)
 Constructor. More...
 
 ~EditorView ()
 Destructor. More...
 
void Create3DVisual (EditorItem *_item)
 Create a 3D visual from a 2D editor item. More...
 
void DeleteItem (EditorItem *_item)
 Delete an editor item. More...
 
void SetBackgroundImage (const std::string &_filename, double _scale)
 Set the graphics view background image. More...
 

Detailed Description

Control the editor view and manage contents in the editor scene.

Constructor & Destructor Documentation

gazebo::gui::EditorView::EditorView ( QWidget *  _parent = 0)

Constructor.

Parameters
[in]_parentParent Widget.
gazebo::gui::EditorView::~EditorView ( )

Destructor.

Member Function Documentation

void gazebo::gui::EditorView::Create3DVisual ( EditorItem _item)

Create a 3D visual from a 2D editor item.

void gazebo::gui::EditorView::DeleteItem ( EditorItem _item)

Delete an editor item.

Parameters
[in]_itemItem to be deleted.
void gazebo::gui::EditorView::SetBackgroundImage ( const std::string &  _filename,
double  _scale 
)

Set the graphics view background image.

Parameters
[in]_filenameName of the image file.
[in]_scaleImage scale, in meters/pixel.

The documentation for this class was generated from the following file: