ImGui visualization of a slice from voxel object and seed marks on it. More...
#include <MRMarkedVoxelSlice.h>
Inheritance diagram for MR::MarkedVoxelSlice:Classes | |
| struct | Mark |
| struct | Parameters |
| Parameters of slice. More... | |
Public Types | |
| enum | MaskType { Inside , Outside , Segment , Count } |
Public Member Functions | |
| MRVIEWER_API | MarkedVoxelSlice (const ObjectVoxels &voxels) |
| VoxelBitSet & | getMask (MaskType type) |
| const VoxelBitSet & | getMask (MaskType type) const |
| Returns mask(VoxelBitSet of whole voxel object) of given type. | |
| void | setMask (const VoxelBitSet &mask, MaskType type) |
| Sets mask(VoxelBitSet of whole voxel object) of given type, updates texture. | |
| const Color & | getColor (MaskType type) const |
| Colors of slice marks controls, setters update texture. | |
| void | setColor (const Color &color, MaskType type) |
| Mark & | getMark (MaskType type) |
| const Mark & | getMark (MaskType type) const |
| Returns color and mask(VoxelBitSet of whole voxel object) of given type. | |
| void | setMark (const Mark &mark, MaskType type) |
| Sets color and mask(VoxelBitSet of whole voxel object) of given type, updates texture. | |
| std::vector< Mark > & | getCustomBackgroundMarks () |
| const std::vector< Mark > & | getCustomBackgroundMarks () const |
| void | setCustomBackgroundMarks (const std::vector< Mark > &backgroundMarks) |
| Sets background colors and masks(VoxelBitSet of whole voxel object) of given type, updates texture. | |
| std::vector< Mark > & | getCustomForegroundMarks () |
| const std::vector< Mark > & | getCustomForegroundMarks () const |
| void | setCustomForegroundMarks (const std::vector< Mark > &foregroundMarks) |
| Sets foreground colors and masks(VoxelBitSet of whole voxel object) of given type, updates texture. | |
| SlicePlane | getActivePlane () const |
| Active plane (YZ, ZX or XY) controls, setters update texture. | |
| void | setActivePlane (SlicePlane plane) |
| const Vector3i & | getActiveVoxel () const |
| void | setActiveVoxel (const Vector3i &voxel) |
| float | getMin () const |
| Slice normalization parameters, setters update texture. | |
| void | setMin (float min) |
| float | getMax () const |
| void | setMax (float max) |
| const Box3i & | getActiveBox () const |
| Returns current active box of slice. | |
| void | setActiveBox (const Box3i &box) |
| Updates active box of slice, do not affect ObjectVoxels, updates texture. | |
| const Parameters & | getParameters () const |
| Get all parameters as one structure. | |
| void | setParameters (const Parameters ¶ms) |
| Set all parameters as one structure, updates texture. | |
| MRVIEWER_API void | forceUpdate () |
| Set current slice with marks to texture, do not abuse this. | |
Public Member Functions inherited from MR::ImGuiImage | |
| MRVIEWER_API | ImGuiImage () |
| virtual MRVIEWER_API | ~ImGuiImage () |
| MRVIEWER_API void | update (const MeshTexture &texture) |
| Sets image to texture. | |
| ImTextureID | getImTextureId () const |
| unsigned | getId () const |
| Returns gl texture id. | |
| const MeshTexture & | getMeshTexture () const |
| Returns current MeshTexture. | |
| int | getImageWidth () const |
| int | getImageHeight () const |
ImGui visualization of a slice from voxel object and seed marks on it.