Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes
Visualization::MiniMap Class Reference
Inheritance diagram for Visualization::MiniMap:
Visualization::View

Public Member Functions

 MiniMap (Scene *scene, View *parent)
 
void sceneRectChanged (const QRectF &rect)
 
void setMargin (qreal margin)
 
void updatePosition ()
 
void visibleRectChanged ()
 
- Public Member Functions inherited from Visualization::View
 View (Scene *scene, View *parent=nullptr)
 
virtual ~View ()
 
Scenescene ()
 
void setHiddenItemCategories (Scene::ItemCategories hidden=Scene::NoItemCategory)
 
QRectF visibleRect ()
 

Static Public Attributes

constexpr static qreal DEFAULT_MARGIN = 2.0
 

Protected Member Functions

virtual void mouseMoveEvent (QMouseEvent *event) override
 
virtual void mousePressEvent (QMouseEvent *event) override
 
virtual void paintEvent (QPaintEvent *event) override
 
virtual void resizeEvent (QResizeEvent *event) override
 

Private Member Functions

void updateMap ()
 

Private Attributes

QRect drawnRect
 
int margin_
 
Viewparent_
 
QRectF visibleRect
 

Constructor & Destructor Documentation

◆ MiniMap()

Visualization::MiniMap::MiniMap ( Scene scene,
View parent 
)

Member Function Documentation

◆ mouseMoveEvent()

void Visualization::MiniMap::mouseMoveEvent ( QMouseEvent *  event)
overrideprotectedvirtual

◆ mousePressEvent()

void Visualization::MiniMap::mousePressEvent ( QMouseEvent *  event)
overrideprotectedvirtual

◆ paintEvent()

void Visualization::MiniMap::paintEvent ( QPaintEvent *  event)
overrideprotectedvirtual

Reimplemented from Visualization::View.

◆ resizeEvent()

void Visualization::MiniMap::resizeEvent ( QResizeEvent *  event)
overrideprotectedvirtual

◆ sceneRectChanged()

void Visualization::MiniMap::sceneRectChanged ( const QRectF &  rect)

◆ setMargin()

void Visualization::MiniMap::setMargin ( qreal  margin)
inline

◆ updateMap()

void Visualization::MiniMap::updateMap ( )
private

◆ updatePosition()

void Visualization::MiniMap::updatePosition ( )

◆ visibleRectChanged()

void Visualization::MiniMap::visibleRectChanged ( )

Member Data Documentation

◆ DEFAULT_MARGIN

constexpr static qreal Visualization::MiniMap::DEFAULT_MARGIN = 2.0
staticconstexpr

◆ drawnRect

QRect Visualization::MiniMap::drawnRect
private

◆ margin_

int Visualization::MiniMap::margin_
private

◆ parent_

View* Visualization::MiniMap::parent_
private

◆ visibleRect

QRectF Visualization::MiniMap::visibleRect
private