MeshLib C++ Docs
Loading...
Searching...
No Matches

ImGui visualization of a slice from voxel object and seed marks on it. More...

#include <MRViewer/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

 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 ColorgetColor (MaskType type) const
 Colors of slice marks controls, setters update texture.
void setColor (const Color &color, MaskType type)
MarkgetMark (MaskType type)
const MarkgetMark (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 ParametersgetParameters () const
 Get all parameters as one structure.
void setParameters (const Parameters &params)
 Set all parameters as one structure, updates texture.
void forceUpdate ()
 Set current slice with marks to texture, do not abuse this.
Public Member Functions inherited from MR::ImGuiImage
 ImGuiImage ()
virtual ~ImGuiImage ()
void update (const MeshTexture &texture)
 Sets image to texture.
ImTextureID getImTextureId () const
unsigned getId () const
 Returns gl texture id.
const MeshTexturegetMeshTexture () const
 Returns current MeshTexture.
int getImageWidth () const
int getImageHeight () const

Detailed Description

ImGui visualization of a slice from voxel object and seed marks on it.


The documentation for this class was generated from the following file: