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

◆ DrawModes

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()

EditorView ( QWidget *  _parent = 0)
explicit

Constructor.

Parameters
[in]_parentParent Widget.

◆ ~EditorView()

~EditorView ( )

Destructor.

Member Function Documentation

◆ Create3DVisual()

void Create3DVisual ( EditorItem _item)

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

◆ DeleteItem()

void DeleteItem ( EditorItem _item)

Delete an editor item.

Parameters
[in]_itemItem to be deleted.

◆ SetBackgroundImage()

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: