#include <ComputeHeightMapModifier.hpp>
Public Types | |
enum | Source { SOURCE_Z_POSITION , SOURCE_ELEVATION } |
Public Member Functions | |
ComputeHeightMapModifier () | |
void | initialize (MainWindow *mainWindow) |
void | setSource (Source source) |
void | setColormap (const QString &name, int colorCount) |
void | setPreviewEnabled (bool enabled, bool update=true, bool reload=false) |
bool | previewEnabled () |
void | applyModifier (Page *page) |
void | apply (QWidget *widget) |
Protected Member Functions | |
std::vector< Vector3< double > > | createColormap (const QString &name, int colorCount) |
Protected Attributes | |
MainWindow * | mainWindow_ |
Editor * | editor_ |
bool | previewEnabled_ |
Source | source_ |
std::vector< Vector3< double > > | colormap_ |
QMutex | mutex_ |
This class represents Compute Height Map model.
An instance of this class is shared memory resource between main window GUI thread and editor thread. Most of the code must not be run by multiple threads at once. A mutex is used to protect concurrent read/write access to shared memory.
ComputeHeightMapModifier::ComputeHeightMapModifier | ( | ) |
void ComputeHeightMapModifier::apply | ( | QWidget * | widget | ) |
Referenced by ComputeHeightMapWidget::apply().
void ComputeHeightMapModifier::applyModifier | ( | Page * | page | ) |
Referenced by ComputeHeightMapPlugin::applyModifier().
|
protected |
Referenced by initialize(), and setColormap().
void ComputeHeightMapModifier::initialize | ( | MainWindow * | mainWindow | ) |
Referenced by ComputeHeightMapPlugin::initialize().
bool ComputeHeightMapModifier::previewEnabled | ( | ) |
Referenced by ComputeHeightMapPlugin::modifierEnabled(), setColormap(), and setSource().
void ComputeHeightMapModifier::setColormap | ( | const QString & | name, |
int | colorCount ) |
Referenced by ComputeHeightMapWidget::colorCountChanged(), and ComputeHeightMapWidget::colormapChanged().
void ComputeHeightMapModifier::setPreviewEnabled | ( | bool | enabled, |
bool | update = true, | ||
bool | reload = false ) |
void ComputeHeightMapModifier::setSource | ( | Source | source | ) |
Referenced by ComputeHeightMapWidget::sourceChanged().
|
protected |
Referenced by applyModifier(), initialize(), and setColormap().
|
protected |
Referenced by apply(), applyModifier(), initialize(), and setPreviewEnabled().
|
protected |
Referenced by apply(), initialize(), and setPreviewEnabled().
|
protected |
Referenced by applyModifier(), previewEnabled(), setColormap(), setPreviewEnabled(), and setSource().
|
protected |
Referenced by previewEnabled(), setColormap(), setPreviewEnabled(), and setSource().
|
protected |
Referenced by applyModifier(), and setSource().