51#define addMemberAndAccessMethod(type, name) \
53 type name() const { return _##name; } \
54 void name(type value) { _##name = value; } \
58#define addMemberAndAccessMethodWithCSO(type, name) \
60 type name() const { return _##name; } \
61 virtual type name(CSO* cso) const; \
62 void name(type value) { _##name = value; } \
254 SbColor sbColor(
const Vector3& color)
const {
return SbColor(
static_cast<float>(color[0]),
static_cast<float>(color[1]),
static_cast<float>(color[2])); }
280#undef addMemberAndAccessMethodWithCSO
281#undef addMemberAndAccessMethod
CSOParallelThicknessMode
Mode for interpreting the parallel thickness value.
@ PARALLEL_THICKNESS_MODE_ABSOLUTE_MM
The parallel thickness is interpreted as an absolute value in mm.
@ PARALLEL_THICKNESS_MODE_RELATIVE_TO_SLICE
The parallel thickness is interpreted as relative to the slice's thickness and is clamped to be in [0...
CSOHighlightMode
Class for setting visualization parameters for CSO editors.
@ HIGHLIGHT_MODE_ABSOLUTE
Can be fixed color, fixed width, or fixed size.
@ HIGHLIGHT_MODE_RELATIVE
Can be brighten (color), widen (path points), or enlarge (seed points)
CSOOrientationFilterMode
Mode for filtering the CSOs' visibility by their orientation with respect to the viewer slice.
@ ORIENTATION_MODE_ALL
All CSOs are visible.
@ ORIENTATION_MODE_NON_PARALLEL
Only non-parallel CSOs are visible.
@ ORIENTATION_MODE_PARALLEL
Only parallel CSOs are visible.
const unsigned short PATH_POINTS_PATTERN_SOLID
const unsigned short PATH_POINTS_PATTERN_SHORT_DASHED
const unsigned short PATH_POINTS_PATTERN_NONE
Line pattern for no line at all.
const unsigned short PATH_POINTS_PATTERN_DASHED
Line pattern for a dashed line.
const unsigned short PATH_POINTS_PATTERN_DOTTED
Line pattern for a dotted line.
#define SOCSO_EXPORT
Header file for system independent resolution.
Class representing general ML objects that support import/export via strings (setPersistentState() an...
The CSOSeedPoint can be interactively set and modified and is the framework for contours.
addMemberAndAccessMethod(bool, shouldRenderPathPoints)
addMemberAndAccessMethod(bool, shouldUsePathPointColorForSeedPoints)
virtual unsigned short getPathPointsOnSliceStipplePattern(CSO *cso) const
addMemberAndAccessMethodWithCSO(float, pathPointsBelowSliceLineWidth)
virtual void getSeedPointBelowSliceColor(CSO *cso, CSOSeedPoint *seedPoint, SbColor &color, float &alpha, bool isMouseOver=false) const
addMemberAndAccessMethodWithCSO(SbColor, pathPointsBelowSliceColor)
addMemberAndAccessMethodWithCSO(float, selectedSeedPointBrightenValue)
addMemberAndAccessMethod(bool, overwriteCurrentTimePoint)
addMemberAndAccessMethod(bool, shouldOverwriteSelectionSettings)
addMemberAndAccessMethod(bool, useSeedPointOnSliceStyle)
addMemberAndAccessMethod(int, orientationFilterMode)
addMemberAndAccessMethodWithCSO(float, selectedPathPointsAlpha)
virtual float getSeedPointOnSliceSize(CSO *cso, CSOSeedPoint *seedPoint, bool isMouseOver=false) const
addMemberAndAccessMethod(int, mouseOverSeedPointColorMode)
addMemberAndAccessMethod(float, globalAlphaFactor)
addMemberAndAccessMethod(bool, usePathPointsAboveSliceAlpha)
addMemberAndAccessMethod(bool, useSeedPointOnSliceColor)
addMemberAndAccessMethod(float, mouseOverSeedPointFixedSize)
addMemberAndAccessMethodWithCSO(float, seedPointAboveSliceAlpha)
addMemberAndAccessMethodWithCSO(float, seedPointBelowSliceAlpha)
void multiplyValueAndClamp(float &value, float factor, float maxValue=1.0f) const
Helper: multiplies the given (line width / point size) value with the given factor and clamps it to [...
addMemberAndAccessMethod(float, showParallelThickness)
addMemberAndAccessMethod(bool, usePathPointsAboveSliceColor)
addMemberAndAccessMethodWithCSO(float, seedPointOnSliceLineWidth)
void multiplyColorAndClamp(SbColor &color, float factor) const
Helper: multiplies the components of the given color with the given factor and clamps all.
virtual unsigned short getPathPointsAboveSliceStipplePattern() const
addMemberAndAccessMethodWithCSO(SbColor, seedPointBelowSliceColor)
addMemberAndAccessMethodWithCSO(float, pathPointsAboveSliceAlpha)
virtual void getPathPointsAboveSliceColor(CSO *cso, SbColor &color, float &alpha, bool isMouseOver=false) const
CSOVisualizationSettings()
Constructor sets members to default values.
addMemberAndAccessMethod(bool, usePathPointsOnSliceAlpha)
virtual unsigned short getPathPointsBelowSliceStipplePattern() const
addMemberAndAccessMethod(bool, useSeedPointAboveSliceAlpha)
SbColor sbColor(const Vector3 &color) const
Helper: returns the given color in a different format.
addMemberAndAccessMethodWithCSO(float, seedPointBelowSliceSize)
addMemberAndAccessMethod(int, voxelSlabAugment)
addMemberAndAccessMethod(bool, usePathPointsOnSliceLineWidth)
addMemberAndAccessMethod(float, mouseOverPathPointsBrightenValue)
ML_CLASS_HEADER(CSOVisualizationSettings)
addMemberAndAccessMethod(bool, useSeedPointBelowSliceAlpha)
addMemberAndAccessMethod(bool, useSeedPointAboveSliceStyle)
addMemberAndAccessMethodWithCSO(float, selectedPathPointsFixedLineWidth)
addMemberAndAccessMethodWithCSO(int, selectedSeedPointColorMode)
virtual float getPathPointsOnSliceLineWidth(CSO *cso, bool isMouseOver=false) const
addMemberAndAccessMethodWithCSO(float, selectedPathPointsBrightenValue)
addMemberAndAccessMethod(SbColor, mouseOverPathPointsFixedColor)
bool isSelected(CSO *cso, CSOSeedPoint *seedPoint) const
Helper: returns whether the given seed point is selected within the given CSO.
addMemberAndAccessMethod(float, mouseOverSeedPointBrightenValue)
addMemberAndAccessMethod(bool, useSeedPointBelowSliceColor)
addMemberAndAccessMethod(float, mouseOverPathPointsAlpha)
addMemberAndAccessMethodWithCSO(SbColor, pathPointsOnSliceColor)
addMemberAndAccessMethodWithCSO(int, selectedPathPointsLineWidthMode)
addMemberAndAccessMethod(bool, usePathPointsBelowSliceLineStyle)
addMemberAndAccessMethod(int, mouseOverPathPointsLineWidthMode)
addMemberAndAccessMethodWithCSO(float, pathPointsBelowSliceAlpha)
addMemberAndAccessMethodWithCSO(SbColor, pathPointsAboveSliceColor)
addMemberAndAccessMethod(bool, useSeedPointOnSliceLineWidth)
addMemberAndAccessMethodWithCSO(int, seedPointAboveSliceStyle)
addMemberAndAccessMethodWithCSO(SbColor, seedPointAboveSliceColor)
virtual void getPathPointsBelowSliceColor(CSO *cso, SbColor &color, float &alpha, bool isMouseOver=false) const
virtual void getPathPointsOnSliceColor(CSO *cso, SbColor &color, float &alpha, bool isMouseOver=false) const
addMemberAndAccessMethodWithCSO(int, pathPointsAboveSliceLineStyle)
addMemberAndAccessMethod(float, shadowAlpha)
virtual unsigned short getPathPointsAboveSliceStipplePattern(CSO *cso) const
addMemberAndAccessMethod(bool, shouldRenderSeedPoints)
bool isHighlighted(CSO *cso) const
Helper: returns whether the selection highlight settings should be applied to the CSO.
addMemberAndAccessMethod(bool, usePathPointsBelowSliceLineWidth)
unsigned short stipplePattern(int enumIndex) const
Helper: returns a unsigned short stipple pattern for an index into an enum.
addMemberAndAccessMethod(bool, enableMouseOverHighlighting)
virtual float getPathPointsAboveSliceLineWidth(CSO *cso, bool isMouseOver=false) const
addMemberAndAccessMethod(int, newCurrentTimePoint)
addMemberAndAccessMethod(bool, shouldUseAntiAliasing)
addMemberAndAccessMethod(bool, usePathPointsOnSliceColor)
virtual bool isCSOVisible(CSO *cso)
addMemberAndAccessMethodWithCSO(float, seedPointAboveSliceSize)
addMemberAndAccessMethod(bool, showCSOsOnAllTimePoints)
void addValueAndClamp(float &value, float factor, float maxValue=8.0f) const
Helper: adds the factor to the given value and clamps it to [0..maxValue].
addMemberAndAccessMethod(SbColor, mouseOverSeedPointFixedColor)
addMemberAndAccessMethod(bool, useSeedPointAboveSliceLineWidth)
virtual float getPathPointsBelowSliceLineWidth(CSO *cso, bool isMouseOver=false) const
addMemberAndAccessMethod(bool, shouldOverwriteSeedPointsSettings)
addMemberAndAccessMethod(bool, usePathPointsAboveSliceLineStyle)
addMemberAndAccessMethodWithCSO(int, seedPointOnSliceStyle)
addMemberAndAccessMethod(float, shadowLineWidth)
addMemberAndAccessMethod(int, ghostingDepthInVoxel)
addMemberAndAccessMethodWithCSO(float, selectedPathPointsWidenValue)
addMemberAndAccessMethodWithCSO(float, pathPointsAboveSliceLineWidth)
addMemberAndAccessMethodWithCSO(SbColor, selectedSeedPointFixedColor)
addMemberAndAccessMethodWithCSO(int, selectedPathPointsColorMode)
bool _isInSelectedGroup(CSO *cso) const
Helper: returns whether the given CSO is in a selected group.
virtual unsigned short getPathPointsOnSliceStipplePattern() const
addMemberAndAccessMethodWithCSO(float, pathPointsOnSliceAlpha)
addMemberAndAccessMethodWithCSO(float, seedPointOnSliceAlpha)
virtual float getSeedPointAboveSliceSize(CSO *cso, CSOSeedPoint *seedPoint, bool isMouseOver=false) const
addMemberAndAccessMethodWithCSO(float, selectedSeedPointEnlargeValue)
addMemberAndAccessMethod(bool, useSeedPointBelowSliceLineWidth)
addMemberAndAccessMethodWithCSO(float, pathPointsOnSliceLineWidth)
addMemberAndAccessMethodWithCSO(SbColor, seedPointOnSliceColor)
addMemberAndAccessMethod(float, mouseOverPathPointsWidenValue)
addMemberAndAccessMethod(int, mouseOverPathPointsColorMode)
addMemberAndAccessMethod(float, mouseOverSeedPointAlpha)
addMemberAndAccessMethodWithCSO(float, selectedSeedPointFixedSize)
addMemberAndAccessMethod(bool, shouldRenderSeedPointsOnlyForSelectedCSOs)
addMemberAndAccessMethod(bool, usePathPointsAboveSliceLineWidth)
addMemberAndAccessMethodWithCSO(float, seedPointOnSliceSize)
addMemberAndAccessMethod(bool, shouldRenderShadow)
addMemberAndAccessMethodWithCSO(int, selectedSeedPointSizeMode)
addMemberAndAccessMethodWithCSO(int, pathPointsBelowSliceLineStyle)
addMemberAndAccessMethod(bool, useSeedPointAboveSliceColor)
virtual float getSeedPointBelowSliceSize(CSO *cso, CSOSeedPoint *seedPoint, bool isMouseOver=false) const
addMemberAndAccessMethod(int, parallelThicknessMode)
addMemberAndAccessMethod(SbColor, shadowColor)
addMemberAndAccessMethod(bool, useSeedPointOnSliceAlpha)
addMemberAndAccessMethodWithCSO(SbColor, selectedPathPointsFixedColor)
addMemberAndAccessMethod(bool, shouldOverwritePathPointsSettings)
addMemberAndAccessMethod(bool, usePathPointsBelowSliceAlpha)
addMemberAndAccessMethod(bool, useSeedPointOnSliceSize)
addMemberAndAccessMethod(float, mouseOverPathPointsFixedLineWidth)
addMemberAndAccessMethod(float, mouseOverSeedPointEnlargeValue)
addMemberAndAccessMethod(int, mouseOverSeedPointSizeMode)
addMemberAndAccessMethod(bool, usePathPointsBelowSliceColor)
virtual unsigned short getPathPointsBelowSliceStipplePattern(CSO *cso) const
virtual void getSeedPointOnSliceColor(CSO *cso, CSOSeedPoint *seedPoint, SbColor &color, float &alpha, bool isMouseOver=false) const
addMemberAndAccessMethod(bool, useSeedPointBelowSliceSize)
virtual void getSeedPointAboveSliceColor(CSO *cso, CSOSeedPoint *seedPoint, SbColor &color, float &alpha, bool isMouseOver=false) const
addMemberAndAccessMethodWithCSO(int, pathPointsOnSliceLineStyle)
addMemberAndAccessMethod(bool, useSeedPointAboveSliceSize)
addMemberAndAccessMethodWithCSO(float, selectedSeedPointAlpha)
addMemberAndAccessMethodWithCSO(float, seedPointBelowSliceLineWidth)
addMemberAndAccessMethodWithCSO(float, seedPointAboveSliceLineWidth)
addMemberAndAccessMethodWithCSO(int, seedPointBelowSliceStyle)
addMemberAndAccessMethod(bool, useSeedPointBelowSliceStyle)
addMemberAndAccessMethod(bool, usePathPointsOnSliceLineStyle)
The CSO represents a contour segmentation object.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.