MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / setCurrentDepth

Method setCurrentDepth

src/Mod/Material/App/MaterialValue.cpp:943–956  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

941}
942
943void Array3D::setCurrentDepth(int depth)
944{
945 validateDepth(depth);
946
947 if (depth < 0 || _rowMap.empty()) {
948 _currentDepth = 0;
949 }
950 else if (depth >= static_cast<int>(_rowMap.size())) {
951 _currentDepth = _rowMap.size() - 1;
952 }
953 else {
954 _currentDepth = depth;
955 }
956}
957
958QString Array3D::getYAMLString() const
959{

Callers 4

onSelectDepthMethod · 0.80
deleteDepthSelectedMethod · 0.80
setDataMethod · 0.80
TEST_FFunction · 0.80

Calls 2

emptyMethod · 0.45
sizeMethod · 0.45

Tested by 1

TEST_FFunction · 0.64