iLand
Public Types | Public Slots | Public Member Functions | Static Public Member Functions | Properties | List of all members
ScriptTree Class Reference

#include <scripttree.h>

Inheritance diagram for ScriptTree:

Public Types

enum  TreeRemovalType {
  RemovedDeath =1 , RemovedHarvest =2 , RemovedDisturbance =4 , RemovedSalavaged =8 ,
  RemovedKilled =16 , RemovedCutDown =32
}
 
enum  Flags {
  TreeDead =1 , TreeDeadBarkBeetle =16 , TreeDeadWind =32 , TreeDeadFire =64 ,
  TreeDeadKillAndDrop =128 , TreeHarvested =256 , TreeAffectedBite =8192
}
 

Public Slots

QString info ()
 
double expr (QString expr_str)
 

Public Member Functions

 ScriptTree (QObject *parent=nullptr)
 
void setTree (Tree *t)
 
const Treetree ()
 
void clear ()
 
bool valid () const
 
double x () const
 
double y () const
 
double dbh () const
 
double height () const
 
QString species () const
 
int flags () const
 

Static Public Member Functions

static void addToScriptEngine (QJSEngine &engine)
 

Properties

bool valid
 
double x
 
double y
 
double dbh
 
double height
 
QString species
 
int flags
 

Member Enumeration Documentation

◆ Flags

Enumerator
TreeDead 
TreeDeadBarkBeetle 
TreeDeadWind 
TreeDeadFire 
TreeDeadKillAndDrop 
TreeHarvested 
TreeAffectedBite 

◆ TreeRemovalType

Enumerator
RemovedDeath 
RemovedHarvest 
RemovedDisturbance 
RemovedSalavaged 
RemovedKilled 
RemovedCutDown 

Constructor & Destructor Documentation

◆ ScriptTree()

ScriptTree::ScriptTree ( QObject *  parent = nullptr)
explicit

Member Function Documentation

◆ addToScriptEngine()

void ScriptTree::addToScriptEngine ( QJSEngine &  engine)
static

◆ clear()

void ScriptTree::clear ( )
inline

◆ dbh()

double ScriptTree::dbh ( ) const
inline

◆ expr

double ScriptTree::expr ( QString  expr_str)
slot

◆ flags()

int ScriptTree::flags ( ) const
inline

◆ height()

double ScriptTree::height ( ) const
inline

◆ info

QString ScriptTree::info ( )
slot

◆ setTree()

void ScriptTree::setTree ( Tree t)
inline

◆ species()

QString ScriptTree::species ( ) const
inline

◆ tree()

const Tree * ScriptTree::tree ( )
inline

◆ valid()

bool ScriptTree::valid ( ) const
inline

◆ x()

double ScriptTree::x ( ) const
inline

◆ y()

double ScriptTree::y ( ) const
inline

Property Documentation

◆ dbh

double ScriptTree::dbh
read

◆ flags

int ScriptTree::flags
read

◆ height

double ScriptTree::height
read

◆ species

QString ScriptTree::species
read

◆ valid

bool ScriptTree::valid
read

◆ x

double ScriptTree::x
read

◆ y

double ScriptTree::y
read

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