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

#include <SettingsView.hpp>

Public Types

enum  ColorSource {
  COLOR_SOURCE_COLOR , COLOR_SOURCE_INTENSITY , COLOR_SOURCE_RETURN_NUMBER , COLOR_SOURCE_NUMBER_OF_RETURNS ,
  COLOR_SOURCE_CLASSIFICATION , COLOR_SOURCE_LAYER , COLOR_SOURCE_ELEVATION , COLOR_SOURCE_CUSTOM_COLOR ,
  COLOR_SOURCE_DESCRIPTOR , COLOR_SOURCE_LAST
}
 

Public Member Functions

 SettingsView ()
 
double pointSize () const
 
void setPointSize (double size)
 
bool isFogEnabled () const
 
void setFogEnabled (bool b)
 
void setPointColor (const Vector3< double > &rgb)
 
const Vector3< double > & pointColor () const
 
void setBackgroundColor (const Vector3< double > &rgb)
 
const Vector3< double > & backgroundColor () const
 
size_t colorSourceSize () const
 
const char * colorSourceString (SettingsView::ColorSource id) const
 
const char * colorSourceString (size_t id) const
 
bool isColorSourceEnabled (SettingsView::ColorSource id) const
 
bool isColorSourceEnabled (size_t id) const
 
void setColorSourceEnabled (SettingsView::ColorSource id, bool v)
 
void setColorSourceEnabled (size_t id, bool v)
 
void setColorSourceEnabledAll (bool v)
 
void read (const Json &in)
 
Jsonwrite (Json &out) const
 

Protected Attributes

double pointSize_
 
bool fogEnabled_
 
Vector3< double > pointColor_
 
Vector3< double > background_
 
std::vector< std::string > colorSourceString_
 
std::vector< bool > colorSourceEnabled_
 

Member Enumeration Documentation

◆ ColorSource

Enumerator
COLOR_SOURCE_COLOR 
COLOR_SOURCE_INTENSITY 
COLOR_SOURCE_RETURN_NUMBER 
COLOR_SOURCE_NUMBER_OF_RETURNS 
COLOR_SOURCE_CLASSIFICATION 
COLOR_SOURCE_LAYER 
COLOR_SOURCE_ELEVATION 
COLOR_SOURCE_CUSTOM_COLOR 
COLOR_SOURCE_DESCRIPTOR 
COLOR_SOURCE_LAST 

Constructor & Destructor Documentation

◆ SettingsView()

SettingsView::SettingsView ( )

Member Function Documentation

◆ backgroundColor()

const Vector3< double > & SettingsView::backgroundColor ( ) const
inline

◆ colorSourceSize()

size_t SettingsView::colorSourceSize ( ) const

◆ colorSourceString() [1/2]

const char * SettingsView::colorSourceString ( SettingsView::ColorSource  id) const

◆ colorSourceString() [2/2]

const char * SettingsView::colorSourceString ( size_t  id) const

◆ isColorSourceEnabled() [1/2]

bool SettingsView::isColorSourceEnabled ( SettingsView::ColorSource  id) const

◆ isColorSourceEnabled() [2/2]

bool SettingsView::isColorSourceEnabled ( size_t  id) const

◆ isFogEnabled()

◆ pointColor()

const Vector3< double > & SettingsView::pointColor ( ) const
inline

◆ pointSize()

double SettingsView::pointSize ( ) const

◆ read()

void SettingsView::read ( const Json in)

Referenced by Settings::read().

◆ setBackgroundColor()

void SettingsView::setBackgroundColor ( const Vector3< double > &  rgb)

◆ setColorSourceEnabled() [1/2]

void SettingsView::setColorSourceEnabled ( SettingsView::ColorSource  id,
bool  v 
)

◆ setColorSourceEnabled() [2/2]

void SettingsView::setColorSourceEnabled ( size_t  id,
bool  v 
)

◆ setColorSourceEnabledAll()

void SettingsView::setColorSourceEnabledAll ( bool  v)

◆ setFogEnabled()

void SettingsView::setFogEnabled ( bool  b)

◆ setPointColor()

void SettingsView::setPointColor ( const Vector3< double > &  rgb)

◆ setPointSize()

void SettingsView::setPointSize ( double  size)

◆ write()

Json & SettingsView::write ( Json out) const

Referenced by Settings::write().

Member Data Documentation

◆ background_

Vector3<double> SettingsView::background_
protected

Referenced by read(), setBackgroundColor(), and write().

◆ colorSourceEnabled_

std::vector<bool> SettingsView::colorSourceEnabled_
protected

◆ colorSourceString_

std::vector<std::string> SettingsView::colorSourceString_
protected

◆ fogEnabled_

bool SettingsView::fogEnabled_
protected

◆ pointColor_

Vector3<double> SettingsView::pointColor_
protected

Referenced by read(), setPointColor(), and write().

◆ pointSize_

double SettingsView::pointSize_
protected

Referenced by pointSize(), read(), setPointSize(), and write().


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