3D Forest
Software for analysis of Lidar data from forest environment.
HeightMapModifier Class Reference

#include <HeightMapModifier.hpp>

Public Types

enum  Source { SOURCE_Z_POSITION , SOURCE_ELEVATION }
 

Public Member Functions

 HeightMapModifier ()
 
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 isPreviewEnabled ()
 
void applyModifier (Page *page)
 
void apply (QWidget *widget)
 

Protected Member Functions

std::vector< Vector3< double > > createColormap (const QString &name, int colorCount)
 

Protected Attributes

MainWindowmainWindow_
 
Editoreditor_
 
bool previewEnabled_
 
Source source_
 
std::vector< Vector3< double > > colormap_
 
QMutex mutex_
 

Detailed Description

This class represents 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.

Member Enumeration Documentation

◆ Source

Height Map Modifier Source.

Enumerator
SOURCE_Z_POSITION 
SOURCE_ELEVATION 

Constructor & Destructor Documentation

◆ HeightMapModifier()

HeightMapModifier::HeightMapModifier ( )

Member Function Documentation

◆ apply()

void HeightMapModifier::apply ( QWidget *  widget)

Referenced by HeightMapWidget::apply().

◆ applyModifier()

void HeightMapModifier::applyModifier ( Page page)

◆ createColormap()

std::vector< Vector3< double > > HeightMapModifier::createColormap ( const QString &  name,
int  colorCount 
)
protected

Referenced by initialize(), and setColormap().

◆ initialize()

void HeightMapModifier::initialize ( MainWindow mainWindow)

◆ isPreviewEnabled()

bool HeightMapModifier::isPreviewEnabled ( )

◆ setColormap()

void HeightMapModifier::setColormap ( const QString &  name,
int  colorCount 
)

◆ setPreviewEnabled()

void HeightMapModifier::setPreviewEnabled ( bool  enabled,
bool  update = true,
bool  reload = false 
)

◆ setSource()

void HeightMapModifier::setSource ( Source  source)

Member Data Documentation

◆ colormap_

std::vector<Vector3<double> > HeightMapModifier::colormap_
protected

◆ editor_

Editor* HeightMapModifier::editor_
protected

◆ mainWindow_

MainWindow* HeightMapModifier::mainWindow_
protected

◆ mutex_

QMutex HeightMapModifier::mutex_
protected

◆ previewEnabled_

bool HeightMapModifier::previewEnabled_
protected

◆ source_

Source HeightMapModifier::source_
protected

Referenced by applyModifier(), and setSource().


The documentation for this class was generated from the following files: