MeshLib
 
Loading...
Searching...
No Matches
MR::MarkedVoxelSlice Class Reference

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
 

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
 
void setMask (const VoxelBitSet &mask, MaskType type)
 
const ColorgetColor (MaskType type) const
 
void setColor (const Color &color, MaskType type)
 
MarkgetMark (MaskType type)
 
const MarkgetMark (MaskType type) const
 
void setMark (const Mark &mark, MaskType type)
 
std::vector< Mark > & getCustomBackgroundMarks ()
 
const std::vector< Mark > & getCustomBackgroundMarks () const
 
void setCustomBackgroundMarks (const std::vector< Mark > &backgroundMarks)
 
std::vector< Mark > & getCustomForegroundMarks ()
 
const std::vector< Mark > & getCustomForegroundMarks () const
 
void setCustomForegroundMarks (const std::vector< Mark > &foregroundMarks)
 
SlicePlane getActivePlane () const
 
void setActivePlane (SlicePlane plane)
 
const Vector3igetActiveVoxel () const
 
void setActiveVoxel (const Vector3i &voxel)
 
float getMin () const
 
void setMin (float min)
 
float getMax () const
 
void setMax (float max)
 
const Box3i & getActiveBox () const
 
void setActiveBox (const Box3i &box)
 
const ParametersgetParameters () const
 
void setParameters (const Parameters &params)
 
MRVIEWER_API void forceUpdate ()
 
- Public Member Functions inherited from MR::ImGuiImage
MRVIEWER_API ImGuiImage ()
 
virtual MRVIEWER_API ~ImGuiImage ()
 
MRVIEWER_API void update (const MeshTexture &texture)
 
void * getImTextureId () const
 
unsigned getId () const
 
const MeshTexturegetMeshTexture () const
 
int getImageWidth () const
 
int getImageHeight () const
 

Detailed Description

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

Member Enumeration Documentation

◆ MaskType

Enumerator
Inside 
Outside 
Segment 
Count 

Constructor & Destructor Documentation

◆ MarkedVoxelSlice()

MRVIEWER_API MR::MarkedVoxelSlice::MarkedVoxelSlice ( const ObjectVoxels & voxels)

Member Function Documentation

◆ forceUpdate()

MRVIEWER_API void MR::MarkedVoxelSlice::forceUpdate ( )

◆ getActiveBox()

const Box3i & MR::MarkedVoxelSlice::getActiveBox ( ) const
inline

◆ getActivePlane()

SlicePlane MR::MarkedVoxelSlice::getActivePlane ( ) const
inline

◆ getActiveVoxel()

const Vector3i & MR::MarkedVoxelSlice::getActiveVoxel ( ) const
inline

◆ getColor()

const Color & MR::MarkedVoxelSlice::getColor ( MaskType type) const
inline

◆ getCustomBackgroundMarks() [1/2]

std::vector< Mark > & MR::MarkedVoxelSlice::getCustomBackgroundMarks ( )
inline

◆ getCustomBackgroundMarks() [2/2]

const std::vector< Mark > & MR::MarkedVoxelSlice::getCustomBackgroundMarks ( ) const
inline

◆ getCustomForegroundMarks() [1/2]

std::vector< Mark > & MR::MarkedVoxelSlice::getCustomForegroundMarks ( )
inline

◆ getCustomForegroundMarks() [2/2]

const std::vector< Mark > & MR::MarkedVoxelSlice::getCustomForegroundMarks ( ) const
inline

◆ getMark() [1/2]

Mark & MR::MarkedVoxelSlice::getMark ( MaskType type)
inline

◆ getMark() [2/2]

const Mark & MR::MarkedVoxelSlice::getMark ( MaskType type) const
inline

◆ getMask() [1/2]

VoxelBitSet & MR::MarkedVoxelSlice::getMask ( MaskType type)
inline

◆ getMask() [2/2]

const VoxelBitSet & MR::MarkedVoxelSlice::getMask ( MaskType type) const
inline

◆ getMax()

float MR::MarkedVoxelSlice::getMax ( ) const
inline

◆ getMin()

float MR::MarkedVoxelSlice::getMin ( ) const
inline

◆ getParameters()

const Parameters & MR::MarkedVoxelSlice::getParameters ( ) const
inline

◆ setActiveBox()

void MR::MarkedVoxelSlice::setActiveBox ( const Box3i & box)
inline

◆ setActivePlane()

void MR::MarkedVoxelSlice::setActivePlane ( SlicePlane plane)
inline

◆ setActiveVoxel()

void MR::MarkedVoxelSlice::setActiveVoxel ( const Vector3i & voxel)
inline

◆ setColor()

void MR::MarkedVoxelSlice::setColor ( const Color & color,
MaskType type )
inline

◆ setCustomBackgroundMarks()

void MR::MarkedVoxelSlice::setCustomBackgroundMarks ( const std::vector< Mark > & backgroundMarks)
inline

◆ setCustomForegroundMarks()

void MR::MarkedVoxelSlice::setCustomForegroundMarks ( const std::vector< Mark > & foregroundMarks)
inline

◆ setMark()

void MR::MarkedVoxelSlice::setMark ( const Mark & mark,
MaskType type )
inline

◆ setMask()

void MR::MarkedVoxelSlice::setMask ( const VoxelBitSet & mask,
MaskType type )
inline

◆ setMax()

void MR::MarkedVoxelSlice::setMax ( float max)
inline

◆ setMin()

void MR::MarkedVoxelSlice::setMin ( float min)
inline

◆ setParameters()

void MR::MarkedVoxelSlice::setParameters ( const Parameters & params)
inline

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