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

#include <ComputeTreeAttributesAction.hpp>

Inherits ProgressActionInterface.

Public Member Functions

 ComputeTreeAttributesAction (Editor *editor)
 
virtual ~ComputeTreeAttributesAction ()
 
void start (const ComputeTreeAttributesParameters &parameters)
 
virtual void next ()
 
void clear ()
 
- Public Member Functions inherited from ProgressActionInterface
 ProgressActionInterface ()
 
virtual ~ProgressActionInterface ()=default
 
bool end () const
 
size_t progressMaximumSteps () const
 
size_t progressValueSteps () const
 
uint64_t progressMaximumStep () const
 
uint64_t progressValueStep () const
 
double progressPercent () const
 

Private Member Functions

void stepPointsToTrees ()
 
void stepCalculateComputeTreeAttributes ()
 
void stepUpdateComputeTreeAttributes ()
 
void calculateDbh (ComputeTreeAttributesData &tree)
 
void calculateTreePosition (ComputeTreeAttributesData &tree)
 
void calculateTreeHeight (ComputeTreeAttributesData &tree)
 
void validateAttributes (TreeAttributes &treeAttributes)
 
size_t treeIndex (size_t treeId)
 

Private Attributes

Editoreditor_
 
Query query_
 
ComputeTreeAttributesParameters parameters_
 
std::map< size_t, size_t > treesMap_
 
std::vector< ComputeTreeAttributesDatatrees_
 
size_t currentTreeIndex_
 

Additional Inherited Members

- Protected Attributes inherited from ProgressActionInterface
ProgressCounter progress_
 

Constructor & Destructor Documentation

◆ ComputeTreeAttributesAction()

ComputeTreeAttributesAction::ComputeTreeAttributesAction ( Editor * editor)

◆ ~ComputeTreeAttributesAction()

ComputeTreeAttributesAction::~ComputeTreeAttributesAction ( )
virtual

Member Function Documentation

◆ calculateDbh()

void ComputeTreeAttributesAction::calculateDbh ( ComputeTreeAttributesData & tree)
private

◆ calculateTreeHeight()

void ComputeTreeAttributesAction::calculateTreeHeight ( ComputeTreeAttributesData & tree)
private

◆ calculateTreePosition()

void ComputeTreeAttributesAction::calculateTreePosition ( ComputeTreeAttributesData & tree)
private

◆ clear()

void ComputeTreeAttributesAction::clear ( )

◆ next()

void ComputeTreeAttributesAction::next ( )
virtual

◆ start()

void ComputeTreeAttributesAction::start ( const ComputeTreeAttributesParameters & parameters)

◆ stepCalculateComputeTreeAttributes()

void ComputeTreeAttributesAction::stepCalculateComputeTreeAttributes ( )
private

Referenced by next().

◆ stepPointsToTrees()

void ComputeTreeAttributesAction::stepPointsToTrees ( )
private

Referenced by next().

◆ stepUpdateComputeTreeAttributes()

void ComputeTreeAttributesAction::stepUpdateComputeTreeAttributes ( )
private

Referenced by next().

◆ treeIndex()

size_t ComputeTreeAttributesAction::treeIndex ( size_t treeId)
private

Referenced by stepPointsToTrees().

◆ validateAttributes()

void ComputeTreeAttributesAction::validateAttributes ( TreeAttributes & treeAttributes)
private

Member Data Documentation

◆ currentTreeIndex_

size_t ComputeTreeAttributesAction::currentTreeIndex_
private

◆ editor_

Editor* ComputeTreeAttributesAction::editor_
private

◆ parameters_

ComputeTreeAttributesParameters ComputeTreeAttributesAction::parameters_
private

◆ query_

Query ComputeTreeAttributesAction::query_
private

Referenced by clear(), and stepPointsToTrees().

◆ trees_

◆ treesMap_

std::map<size_t, size_t> ComputeTreeAttributesAction::treesMap_
private

Referenced by clear(), start(), and treeIndex().


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