Freeciv-3.3
Loading...
Searching...
No Matches
Signals | Public Member Functions | Protected Member Functions | Private Attributes
minimap_thread Class Reference

#include <mapview.h>

+ Inheritance diagram for minimap_thread:

Signals

void rendered_image (const QImage &image)
 

Public Member Functions

 minimap_thread (QObject *parent=0)
 
 ~minimap_thread ()
 
void render (double scale_factor, int width, int height)
 

Protected Member Functions

void run () Q_DECL_OVERRIDE
 

Private Attributes

int mini_width
 
int mini_height
 
double scale
 
QMutex mutex
 

Detailed Description

Definition at line 196 of file mapview.h.

Constructor & Destructor Documentation

◆ minimap_thread()

minimap_thread::minimap_thread ( QObject *  parent = 0)

Minimap thread's constructor

Definition at line 748 of file mapview.cpp.

◆ ~minimap_thread()

minimap_thread::~minimap_thread ( )

Minimap thread's destructor

Definition at line 755 of file mapview.cpp.

Member Function Documentation

◆ render()

void minimap_thread::render ( double  scale_factor,
int  width,
int  height 
)

Starts thread

Definition at line 763 of file mapview.cpp.

Referenced by minimap_view::update_image().

◆ rendered_image

void minimap_thread::rendered_image ( const QImage image)
signal

Referenced by minimap_view::minimap_view(), and run().

◆ run()

void minimap_thread::run ( )
protected

Updates minimap's image in thread

Definition at line 775 of file mapview.cpp.

Field Documentation

◆ mini_height

int minimap_thread::mini_height
private

Definition at line 210 of file mapview.h.

Referenced by render(), and run().

◆ mini_width

int minimap_thread::mini_width
private

Definition at line 210 of file mapview.h.

Referenced by render(), and run().

◆ mutex

QMutex minimap_thread::mutex
private

Definition at line 212 of file mapview.h.

Referenced by render(), and run().

◆ scale

double minimap_thread::scale
private

Definition at line 211 of file mapview.h.

Referenced by render(), and run().