Arches 1.0
|
This class implements a material layer for the terrain representation. More...
#include <arches.h>
Public Member Functions | |
MaterialBox (int=0, int=0, TypeMater=MaterialBox::AIR) | |
Creates a material layer given minimum and maximum heights and a material type. | |
~MaterialBox () | |
Empty. | |
void | SetMaterial (TypeMater) |
Changes the material type of a layer. | |
void | SetA (int) |
Set the minimum height of a layer. | |
void | SetB (int) |
Set the maximal height of a layer. | |
int | GetAB () const |
Compute the thickness of a layer. | |
TypeMater | GetMaterial () const |
Get the material type of a layer. | |
int | GetB () const |
Get the maximum height of a layer. | |
int | GetA () const |
Get the minimum height of a layer. | |
Protected Attributes | |
TypeMater | t = ROCK |
Material type. | |
int | b = 0 |
Minimum and maximum height span. | |
Friends | |
class | MaterialStack |
This class implements a material layer for the terrain representation.
|
inline |
|
inline |
Set the minimum height of a layer.
a | Height. |
Referenced by MaterialStack::AddOnCeilRock(), MaterialStack::CheckLayersHeight(), MaterialStack::Discretisation(), MaterialStack::InsertBetweenLayers(), MaterialStack::OrderStack(), and MaterialStack::RemoveOnCeilRock().
|
inline |
Set the maximal height of a layer.
b | Height. |
References b.
Referenced by MaterialStack::AddMaterialOnTop(), MaterialStack::AddOnCeilRock(), MaterialStack::AddOnGroundRock(), MaterialStack::AddRockLayer(), MaterialStack::CheckLayersHeight(), MaterialStack::OrderStack(), MaterialStack::RemoveEarthAt(), MaterialStack::RemoveEarthLayer(), MaterialStack::RemoveOnGroundRock(), MaterialStack::RemoveRockLayer(), MaterialStack::RemoveSandAt(), MaterialStack::RemoveSandLayer(), MaterialStack::RemoveSnowAt(), MaterialStack::RemoveSnowLayer(), MaterialStack::RemoveStoneAt(), MaterialStack::RemoveStoneLayer(), MaterialStack::RemoveWaterAt(), MaterialStack::RemoveWaterLayer(), and MaterialStack::remplirCouchesWATER().
|
inline |
Changes the material type of a layer.
type | Material type. |
References t.
Referenced by MaterialStack::AddOnCeilRock(), MaterialStack::AddRockLayer(), Arches::DeleteSmallElements(), MaterialStack::InsertBetweenLayers(), MaterialStack::RemoveEarthAt(), MaterialStack::RemoveEarthLayer(), MaterialStack::RemoveMaterial(), MaterialStack::RemoveOnCeilRock(), MaterialStack::RemoveOnGroundRock(), MaterialStack::RemoveRockLayer(), MaterialStack::RemoveSandAt(), MaterialStack::RemoveSandLayer(), MaterialStack::RemoveSnowAt(), MaterialStack::RemoveSnowLayer(), MaterialStack::RemoveStoneAt(), MaterialStack::RemoveStoneLayer(), MaterialStack::RemoveWaterAt(), MaterialStack::RemoveWaterLayer(), MaterialStack::remplirCouchesWATER(), and Arches::SmoothZone().