Control the editor view and manage contents in the editor scene. More...
#include <EditorView.hh>
Inherits QGraphicsView.
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... | |
Control the editor view and manage contents in the editor scene.
enum DrawModes |
EditorView | ( | QWidget * | _parent = 0 | ) |
Constructor.
[in] | _parent | Parent Widget. |
~EditorView | ( | ) |
Destructor.
void Create3DVisual | ( | EditorItem * | _item | ) |
Create a 3D visual from a 2D editor item.
void DeleteItem | ( | EditorItem * | _item | ) |
Delete an editor item.
[in] | _item | Item to be deleted. |
void SetBackgroundImage | ( | const std::string & | _filename, |
double | _scale | ||
) |
Set the graphics view background image.
[in] | _filename | Name of the image file. |
[in] | _scale | Image scale, in meters/pixel. |