EditorView Class Reference

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...
 

Detailed Description

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

Member Enumeration Documentation

enum DrawModes

Unique identifiers for all drawing modes within the editor.

Enumerator
NONE 

None mode.

WALL 

Wall mode.

WINDOW 

Window mode.

DOOR 

Door mode.

STAIRS 

Stairs mode.

COLOR 

Color mode.

TEXTURE 

Texture mode.

Constructor & Destructor Documentation

EditorView ( QWidget *  _parent = 0)

Constructor.

Parameters
[in]_parentParent Widget.
~EditorView ( )

Destructor.

Member Function Documentation

void Create3DVisual ( EditorItem _item)

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

void DeleteItem ( EditorItem _item)

Delete an editor item.

Parameters
[in]_itemItem to be deleted.
void 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: