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

#include <Layers.hpp>

Public Member Functions

 Layers ()
 
void clear ()
 
void setDefault ()
 
size_t size () const
 
const Layerat (size_t i) const
 
void push_back (const Layer &layer)
 
void erase (size_t i)
 
size_t id (size_t i) const
 
size_t index (size_t id) const
 
bool contains (size_t id) const
 
size_t unusedId () const
 
const std::string & label (size_t i) const
 
void setLabel (size_t i, const std::string &label)
 
const Vector3< double > & color (size_t i) const
 
void setColor (size_t i, const Vector3< double > &color)
 
void read (const Json &in)
 
Jsonwrite (Json &out) const
 

Protected Attributes

std::vector< Layerlayers_
 
std::unordered_map< size_t, size_t > hashTableId_
 

Constructor & Destructor Documentation

◆ Layers()

Layers::Layers ( )

Member Function Documentation

◆ at()

const Layer & Layers::at ( size_t  i) const
inline

◆ clear()

void Layers::clear ( )

Referenced by read().

◆ color()

const Vector3< double > & Layers::color ( size_t  i) const
inline

◆ contains()

bool Layers::contains ( size_t  id) const
inline

Referenced by Page::queryWhereLayer().

◆ erase()

void Layers::erase ( size_t  i)

◆ id()

size_t Layers::id ( size_t  i) const
inline

◆ index()

size_t Layers::index ( size_t  id) const
inline

◆ label()

const std::string & Layers::label ( size_t  i) const
inline

◆ push_back()

void Layers::push_back ( const Layer layer)

◆ read()

void Layers::read ( const Json in)

Referenced by Editor::openProject().

◆ setColor()

void Layers::setColor ( size_t  i,
const Vector3< double > &  color 
)

◆ setDefault()

◆ setLabel()

void Layers::setLabel ( size_t  i,
const std::string &  label 
)

◆ size()

◆ unusedId()

size_t Layers::unusedId ( ) const

◆ write()

Json & Layers::write ( Json out) const

Referenced by Editor::saveProject().

Member Data Documentation

◆ hashTableId_

std::unordered_map<size_t, size_t> Layers::hashTableId_
protected

◆ layers_

std::vector<Layer> Layers::layers_
protected

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