#include <voxel.h>
|
static void | add_x (const v3s16 &extent, u32 &i, s16 a) |
| Translate index in the X coordinate.
|
|
static void | add_y (const v3s16 &extent, u32 &i, s16 a) |
| Translate index in the Y coordinate.
|
|
static void | add_z (const v3s16 &extent, u32 &i, s16 a) |
| Translate index in the Z coordinate.
|
|
static void | add_p (const v3s16 &extent, u32 &i, v3s16 a) |
| Translate index in space.
|
|
◆ VoxelArea() [1/3]
◆ VoxelArea() [2/3]
VoxelArea::VoxelArea |
( |
const v3s16 & | min_edge, |
|
|
const v3s16 & | max_edge ) |
|
inline |
◆ VoxelArea() [3/3]
VoxelArea::VoxelArea |
( |
const v3s16 & | p | ) |
|
|
inline |
◆ add_p()
static void VoxelArea::add_p |
( |
const v3s16 & | extent, |
|
|
u32 & | i, |
|
|
v3s16 | a ) |
|
inlinestatic |
◆ add_x()
static void VoxelArea::add_x |
( |
const v3s16 & | extent, |
|
|
u32 & | i, |
|
|
s16 | a ) |
|
inlinestatic |
◆ add_y()
static void VoxelArea::add_y |
( |
const v3s16 & | extent, |
|
|
u32 & | i, |
|
|
s16 | a ) |
|
inlinestatic |
Translate index in the Y coordinate.
Referenced by MapgenV6::addMud(), MapgenBasic::dustTopNodes(), MapgenV6::find_stone_level(), Mapgen::findGroundLevel(), Mapgen::findLiquidSurface(), MapgenV6::flowMud(), DecoSimple::generate(), MapgenBasic::generateBiomes(), CavernsNoise::generateCaverns(), CavesNoiseIntersection::generateCaves(), MapgenV6::generateGround(), MapgenCarpathian::generateTerrain(), MapgenFlat::generateTerrain(), MapgenV7::generateTerrain(), MapgenValleys::generateTerrain(), Mapgen::getSurfaces(), MapgenV6::growGrass(), MapgenV6::moveMud(), MapgenV6::placeTreesAndJungleGrass(), Mapgen::propagateSunlight(), TestVoxelArea::test_add_y(), and Mapgen::updateLiquid().
◆ add_z()
static void VoxelArea::add_z |
( |
const v3s16 & | extent, |
|
|
u32 & | i, |
|
|
s16 | a ) |
|
inlinestatic |
◆ addArea()
void VoxelArea::addArea |
( |
const VoxelArea & | a | ) |
|
|
inline |
◆ addPoint()
void VoxelArea::addPoint |
( |
const v3s16 & | p | ) |
|
|
inline |
◆ cacheExtent()
void VoxelArea::cacheExtent |
( |
| ) |
|
|
inlineprivate |
◆ contains() [1/3]
bool VoxelArea::contains |
( |
const VoxelArea & | a | ) |
const |
|
inline |
References hasEmptyExtent(), MaxEdge, and MinEdge.
Referenced by VoxelManipulator::addArea(), Schematic::blitToVManip(), ModApiMapgen::calc_lighting(), Decoration::canPlaceDecoration(), CavesRandomWalk::carveRoute(), CavesV6::carveRoute(), VoxelManipulator::clearFlags(), diff(), VoxelManipulator::exists(), Map::findNodesWithMetadata(), DungeonGen::findPlaceForDoor(), DungeonGen::findPlaceForRoomDoor(), OrePuff::generate(), OreSheet::generate(), OreStratum::generate(), OreVein::generate(), VoxelManipulator::getNodeNoExNoEmerge(), LuaVoxelManip::l_calc_lighting(), LuaVoxelManip::l_set_lighting(), Mapgen::lightSpread(), treegen::make_jungletree(), treegen::make_pine_tree(), treegen::make_tree(), DungeonGen::makeCorridor(), DungeonGen::makeFill(), DungeonGen::makeRoom(), MapgenV6::moveMud(), Server::onMapEditEvent(), Schematic::placeOnVManip(), ModApiMapgen::set_lighting(), VoxelManipulator::setFlags(), VoxelManipulator::setNodeNoEmerge(), TestVoxelArea::test_contains_i(), TestVoxelArea::test_contains_point(), TestVoxelArea::test_contains_voxelarea(), treegen::tree_fruit_placement(), treegen::tree_leaves_placement(), treegen::tree_single_leaves_placement(), treegen::tree_trunk_placement(), and ServerMap::updateVManip().
◆ contains() [2/3]
bool VoxelArea::contains |
( |
s32 | i | ) |
const |
|
inline |
◆ contains() [3/3]
bool VoxelArea::contains |
( |
v3s16 | p | ) |
const |
|
inline |
◆ diff()
template<typename C >
void VoxelArea::diff |
( |
const VoxelArea & | a, |
|
|
C & | result ) const |
|
inline |
◆ getExtent()
const v3s16 & VoxelArea::getExtent |
( |
| ) |
const |
|
inline |
References m_cache_extent.
Referenced by MapgenV6::addMud(), VoxelManipulator::clearFlags(), VoxelManipulator::copyFrom(), MapgenBasic::dustTopNodes(), voxalgo::fill_with_sunlight(), MapgenV6::find_stone_level(), Mapgen::findGroundLevel(), Mapgen::findLiquidSurface(), MapgenV6::flowMud(), DecoSimple::generate(), MapgenBasic::generateBiomes(), CavernsNoise::generateCaverns(), CavesNoiseIntersection::generateCaves(), MapgenV6::generateGround(), MapgenCarpathian::generateTerrain(), MapgenFlat::generateTerrain(), MapgenV7::generateTerrain(), MapgenValleys::generateTerrain(), Mapgen::getSurfaces(), MapgenV6::growGrass(), DungeonGen::makeDungeon(), MapgenV6::placeTreesAndJungleGrass(), VoxelManipulator::print(), Mapgen::propagateSunlight(), VoxelManipulator::setFlags(), TestVoxelArea::test_extent(), and Mapgen::updateLiquid().
◆ getVolume()
s32 VoxelArea::getVolume |
( |
| ) |
const |
|
inline |
References m_cache_extent.
Referenced by MapEditEventAreaIgnorer::MapEditEventAreaIgnorer(), MapEditEventAreaIgnorer::~MapEditEventAreaIgnorer(), VoxelManipulator::addArea(), ModApiEnvBase::checkArea(), VoxelManipulator::clear(), MMVManip::clone(), contains(), diff(), MMVManip::initialEmerge(), ModApiEnv::l_emerge_area(), LuaVoxelManip::l_get_data(), LuaVoxelManip::l_get_light_data(), LuaVoxelManip::l_get_param2_data(), LuaVoxelManip::l_set_data(), LuaVoxelManip::l_set_light_data(), LuaVoxelManip::l_set_param2_data(), treegen::make_jungletree(), treegen::make_pine_tree(), treegen::make_tree(), print(), TEST_CASE(), TestVoxelArea::test_contains_i(), TestVoxelArea::test_volume(), and TestVoxelAlgorithms::testLighting().
◆ hasEmptyExtent()
bool VoxelArea::hasEmptyExtent |
( |
| ) |
const |
|
inline |
◆ index() [1/2]
s32 VoxelArea::index |
( |
s16 | x, |
|
|
s16 | y, |
|
|
s16 | z ) const |
|
inline |
References m_cache_extent, and MinEdge.
Referenced by VoxelManipulator::addArea(), MapgenV6::addMud(), Schematic::blitToVManip(), Decoration::canPlaceDecoration(), CavesRandomWalk::carveRoute(), CavesV6::carveRoute(), VoxelManipulator::clearFlags(), VoxelManipulator::copyFrom(), VoxelManipulator::copyTo(), MapgenBasic::dustTopNodes(), voxalgo::fill_with_sunlight(), MapgenV6::find_stone_level(), Mapgen::findGroundLevel(), Mapgen::findLiquidSurface(), DungeonGen::findPlaceForRoomDoor(), MapgenV6::flowMud(), DecoSimple::generate(), DungeonGen::generate(), OreBlob::generate(), OrePuff::generate(), OreScatter::generate(), OreSheet::generate(), OreStratum::generate(), OreVein::generate(), MapgenV5::generateBaseTerrain(), MapgenBasic::generateBiomes(), CavernsNoise::generateCaverns(), CavesNoiseIntersection::generateCaves(), MapgenV6::generateGround(), MapgenCarpathian::generateTerrain(), MapgenFlat::generateTerrain(), MapgenFractal::generateTerrain(), MapgenV7::generateTerrain(), MapgenValleys::generateTerrain(), VoxelManipulator::getFlagsRefUnsafe(), VoxelManipulator::getNode(), VoxelManipulator::getNodeNoEx(), VoxelManipulator::getNodeNoExNoEmerge(), VoxelManipulator::getNodeRefUnsafe(), VoxelManipulator::getNodeRefUnsafeCheckFlags(), Schematic::getSchematicFromMap(), Mapgen::getSurfaces(), MapgenV6::growGrass(), index(), Mapgen::lightSpread(), treegen::make_jungletree(), treegen::make_pine_tree(), treegen::make_tree(), MapgenSinglenode::makeChunk(), DungeonGen::makeCorridor(), DungeonGen::makeDoor(), DungeonGen::makeDungeon(), DungeonGen::makeFill(), DungeonGen::makeRoom(), MapgenV6::placeTreesAndJungleGrass(), VoxelManipulator::print(), Mapgen::propagateSunlight(), VoxelManipulator::setFlags(), Mapgen::setLighting(), VoxelManipulator::setNode(), VoxelManipulator::setNodeNoEmerge(), Mapgen::spreadLight(), TestVoxelArea::test_index_v3s16_all_neg(), TestVoxelArea::test_index_v3s16_all_pos(), TestVoxelArea::test_index_v3s16_x_neg(), TestVoxelArea::test_index_v3s16_xy_neg(), TestVoxelArea::test_index_v3s16_xz_neg(), TestVoxelArea::test_index_v3s16_y_neg(), TestVoxelArea::test_index_v3s16_yz_neg(), TestVoxelArea::test_index_v3s16_z_neg(), TestVoxelArea::test_index_xyz_all_neg(), TestVoxelArea::test_index_xyz_all_pos(), TestVoxelArea::test_index_xyz_x_neg(), TestVoxelArea::test_index_xyz_xy_neg(), TestVoxelArea::test_index_xyz_xz_neg(), TestVoxelArea::test_index_xyz_y_neg(), TestVoxelArea::test_index_xyz_yz_neg(), TestVoxelArea::test_index_xyz_z_neg(), TestVoxelManipulator::testVoxelArea(), treegen::tree_fruit_placement(), treegen::tree_leaves_placement(), treegen::tree_single_leaves_placement(), treegen::tree_trunk_placement(), Mapgen::updateLiquid(), and ServerMap::updateVManip().
◆ index() [2/2]
s32 VoxelArea::index |
( |
v3s16 | p | ) |
const |
|
inline |
◆ intersect()
◆ operator+()
◆ operator-()
◆ operator==()
bool VoxelArea::operator== |
( |
const VoxelArea & | other | ) |
const |
|
inline |
◆ pad()
void VoxelArea::pad |
( |
const v3s16 & | d | ) |
|
|
inline |
◆ print()
void VoxelArea::print |
( |
std::ostream & | o | ) |
const |
|
inline |
◆ m_cache_extent
◆ MaxEdge
Maximum edge of the area (inclusive)
- Warning
- read-only!
Referenced by addArea(), VoxelManipulator::addArea(), addPoint(), voxalgo::blit_back_with_light(), cacheExtent(), ModApiMapgen::calc_lighting(), VoxelManipulator::clearFlags(), contains(), contains(), diff(), voxalgo::fill_with_sunlight(), MapgenV6::find_stone_level(), DecoSchematic::generate(), DecoSimple::generate(), intersect(), LuaVoxelManip::l_calc_lighting(), ModApiEnvVM::l_find_nodes_in_area(), ModApiMapgen::l_generate_decorations(), ModApiMapgen::l_generate_ores(), LuaVoxelManip::l_get_emerged_area(), ModApiMapgen::l_get_mapgen_object(), LuaVoxelManip::l_read_from_map(), LuaVoxelManip::l_set_lighting(), treegen::make_jungletree(), treegen::make_pine_tree(), treegen::make_tree(), operator+(), operator-(), operator==(), pad(), print(), VoxelManipulator::print(), Mapgen::propagateSunlight(), VoxelManipulator::setFlags(), Mapgen::setLighting(), Mapgen::spreadLight(), TestVoxelArea::test_addarea(), TestVoxelArea::test_pad(), voxalgo::update_block_border_lighting(), and ModApiMapgen::update_liquids().
◆ MinEdge
Minimum edge of the area (inclusive)
- Warning
- read-only!
Referenced by addArea(), VoxelManipulator::addArea(), MapgenV6::addMud(), addPoint(), voxalgo::blit_back_with_light(), cacheExtent(), ModApiMapgen::calc_lighting(), VoxelManipulator::clearFlags(), contains(), contains(), diff(), voxalgo::fill_with_sunlight(), MapgenV6::find_stone_level(), DecoSchematic::generate(), DecoSimple::generate(), index(), intersect(), LuaVoxelManip::l_calc_lighting(), ModApiEnvVM::l_find_nodes_in_area(), ModApiMapgen::l_generate_decorations(), ModApiMapgen::l_generate_ores(), LuaVoxelManip::l_get_emerged_area(), ModApiMapgen::l_get_mapgen_object(), LuaVoxelManip::l_read_from_map(), LuaVoxelManip::l_set_lighting(), treegen::make_jungletree(), treegen::make_pine_tree(), treegen::make_tree(), DungeonGen::makeDungeon(), operator+(), operator-(), operator==(), pad(), print(), VoxelManipulator::print(), Mapgen::propagateSunlight(), VoxelManipulator::setFlags(), Mapgen::setLighting(), Mapgen::spreadLight(), TestVoxelArea::test_addarea(), TestVoxelArea::test_pad(), voxalgo::update_block_border_lighting(), and ModApiMapgen::update_liquids().
The documentation for this class was generated from the following file: