10#ifndef MRMESH_NO_OPENVDB
Definition MRImGuiImage.h:14
ImGui visualization of a slice from voxel object and seed marks on it.
Definition MRMarkedVoxelSlice.h:17
void setActivePlane(SlicePlane plane)
Definition MRMarkedVoxelSlice.h:69
void setCustomBackgroundMarks(const std::vector< Mark > &backgroundMarks)
Definition MRMarkedVoxelSlice.h:56
const Color & getColor(MaskType type) const
Definition MRMarkedVoxelSlice.h:38
void setParameters(const Parameters ¶ms)
Definition MRMarkedVoxelSlice.h:109
SlicePlane getActivePlane() const
Definition MRMarkedVoxelSlice.h:68
const Box3i & getActiveBox() const
Definition MRMarkedVoxelSlice.h:81
void setCustomForegroundMarks(const std::vector< Mark > &foregroundMarks)
Definition MRMarkedVoxelSlice.h:64
void setMask(const VoxelBitSet &mask, MaskType type)
Definition MRMarkedVoxelSlice.h:35
Mark & getMark(MaskType type)
Definition MRMarkedVoxelSlice.h:44
const Vector3i & getActiveVoxel() const
Definition MRMarkedVoxelSlice.h:71
std::vector< Mark > & getCustomBackgroundMarks()
Definition MRMarkedVoxelSlice.h:53
VoxelBitSet & getMask(MaskType type)
Definition MRMarkedVoxelSlice.h:31
void setActiveVoxel(const Vector3i &voxel)
Definition MRMarkedVoxelSlice.h:72
const std::vector< Mark > & getCustomForegroundMarks() const
Definition MRMarkedVoxelSlice.h:62
const VoxelBitSet & getMask(MaskType type) const
Definition MRMarkedVoxelSlice.h:33
float getMax() const
Definition MRMarkedVoxelSlice.h:77
std::vector< Mark > & getCustomForegroundMarks()
Definition MRMarkedVoxelSlice.h:61
void setMark(const Mark &mark, MaskType type)
Definition MRMarkedVoxelSlice.h:48
MRVIEWER_API void forceUpdate()
const std::vector< Mark > & getCustomBackgroundMarks() const
Definition MRMarkedVoxelSlice.h:54
const Parameters & getParameters() const
Definition MRMarkedVoxelSlice.h:107
float getMin() const
Definition MRMarkedVoxelSlice.h:75
void setMin(float min)
Definition MRMarkedVoxelSlice.h:76
void setActiveBox(const Box3i &box)
Definition MRMarkedVoxelSlice.h:83
MRVIEWER_API MarkedVoxelSlice(const ObjectVoxels &voxels)
const Mark & getMark(MaskType type) const
Definition MRMarkedVoxelSlice.h:46
void setColor(const Color &color, MaskType type)
Definition MRMarkedVoxelSlice.h:39
void setMax(float max)
Definition MRMarkedVoxelSlice.h:78
MaskType
Definition MRMarkedVoxelSlice.h:27
@ Inside
Definition MRMarkedVoxelSlice.h:27
@ Outside
Definition MRMarkedVoxelSlice.h:27
@ Count
Definition MRMarkedVoxelSlice.h:27
@ Segment
Definition MRMarkedVoxelSlice.h:27
Definition MRObjectVoxels.h:17
SlicePlane
Plane of slice in which to find path.
Definition MRVoxelPath.h:29
@ XY
= 2 cause main axis is z - [2]
Definition MRVoxelPath.h:32
Definition MRCameraOrientationPlugin.h:7
std::shared_ptr< OpenVdbFloatGrid > FloatGrid
Definition MRMesh/MRMeshFwd.h:537
static constexpr Color yellow() noexcept
Definition MRColor.h:33
static constexpr Color red() noexcept
Definition MRColor.h:30
static constexpr Color blue() noexcept
Definition MRColor.h:32
Definition MRMarkedVoxelSlice.h:20
Color color
Definition MRMarkedVoxelSlice.h:21
VoxelBitSet mask
Definition MRMarkedVoxelSlice.h:22
Definition MRMarkedVoxelSlice.h:87
SlicePlane activePlane
Definition MRMarkedVoxelSlice.h:101
std::optional< Color > inactiveVoxelColor
Definition MRMarkedVoxelSlice.h:103
std::vector< Mark > customForegroundMarks
Definition MRMarkedVoxelSlice.h:91
Vector3i activeVoxel
Definition MRMarkedVoxelSlice.h:93
Box3i activeBox
Definition MRMarkedVoxelSlice.h:95
float min
Definition MRMarkedVoxelSlice.h:97
float max
Definition MRMarkedVoxelSlice.h:99
std::array< Mark, size_t(MaskType::Count)> marks
Definition MRMarkedVoxelSlice.h:89
std::vector< Mark > customBackgroundMarks
Definition MRMarkedVoxelSlice.h:90