Tetrapod Project
Terrain Class Reference

#include <terrain.h>

Public Member Functions

 Terrain (Eigen::Array< bool, Eigen::Dynamic, 1 > bool_bridge)
 
 Terrain ()
 
virtual ~Terrain ()
 
SteppingStone addStone (Eigen::Vector3d center, double width, double height, std::string name=nullptr)
 
Eigen::Array< SteppingStone, Eigen::Dynamic, 1 > addStones (Eigen::Array< Eigen::Vector3d, Eigen::Dynamic, 1 > centers, Eigen::Array< double, Eigen::Dynamic, 1 > widths, Eigen::Array< double, Eigen::Dynamic, 1 > heights, std::string name="")
 
const SteppingStonegetStoneByName (std::string name) const
 
const Eigen::Array< SteppingStone, Eigen::Dynamic, 1 > & getSteppingStones () const
 

Private Attributes

Eigen::Array< SteppingStone, Eigen::Dynamic, 1 > stepping_stones
 

Detailed Description

Definition at line 9 of file terrain.h.

Constructor & Destructor Documentation

◆ Terrain() [1/2]

Terrain::Terrain ( Eigen::Array< bool, Eigen::Dynamic, 1 >  bool_bridge)

Definition at line 3 of file terrain.cpp.

◆ Terrain() [2/2]

Terrain::Terrain ( )

Definition at line 45 of file terrain.cpp.

◆ ~Terrain()

Terrain::~Terrain ( )
virtual

Definition at line 58 of file terrain.cpp.

Member Function Documentation

◆ addStone()

SteppingStone Terrain::addStone ( Eigen::Vector3d  center,
double  width,
double  height,
std::string  name = nullptr 
)

Definition at line 61 of file terrain.cpp.

◆ addStones()

Eigen::Array< SteppingStone, Eigen::Dynamic, 1 > Terrain::addStones ( Eigen::Array< Eigen::Vector3d, Eigen::Dynamic, 1 >  centers,
Eigen::Array< double, Eigen::Dynamic, 1 >  widths,
Eigen::Array< double, Eigen::Dynamic, 1 >  heights,
std::string  name = "" 
)

Definition at line 72 of file terrain.cpp.

◆ getStoneByName()

SteppingStone const & Terrain::getStoneByName ( std::string  name) const

Definition at line 95 of file terrain.cpp.

◆ getSteppingStones()

const Eigen::Array<SteppingStone, Eigen::Dynamic, 1>& Terrain::getSteppingStones ( ) const
inline

Definition at line 23 of file terrain.h.

Member Data Documentation

◆ stepping_stones

Eigen::Array<SteppingStone, Eigen::Dynamic, 1> Terrain::stepping_stones
private

Definition at line 26 of file terrain.h.


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