22#include <ThirdPartyWarningsDisable.h>
23#include <boost/unordered_set.hpp>
24#include <ThirdPartyWarningsRestore.h>
47#define addMemberAndAccessMethod(type, name) \
53 void name(type value) \
61#define addMemberAndAccessMethodWithCSO(type, name) \
67 virtual type name(CSO* cso) const; \
68 void name(type value) \
76#define overwriteAccessMethodsWithCSO(type, name) \
78 using CSOVisualizationSettings::name; \
79 virtual type name(CSO* cso) const override;
93 _stylePalette = stylePalette;
117 MLssize_t getStylePalettePathPointsLookUp(
CSO* cso)
const;
119 MLssize_t getStylePaletteSeedPointsLookUp(
CSO* cso)
const;
123 bool hasStylePalette()
const;
127 unsigned short getLineStyleFromStylePalette(
MLssize_t index)
const;
128 int getLineWidthFromStylePalette(
MLssize_t index)
const;
129 int getSeedPointStyleFromStylePalette(
MLssize_t index)
const;
130 int getSeedPointSizeFromStylePalette(
MLssize_t index)
const;
132 boost::unordered_set<int> _visibleIds;
139#undef addMemberAndAccessMethodWithCSO
140#undef addMemberAndAccessMethod
#define SOCSO_EXPORT
Header file for system independent resolution.
addMemberAndAccessMethod(int, stylePaletteLookUpPathPoints)
overwriteAccessMethodsWithCSO(float, seedPointOnSliceSize)
addMemberAndAccessMethod(int, stylePaletteLookUpSeedPoints)
void setStylePalette(StylePalette *stylePalette)
addMemberAndAccessMethod(int, visibleByMode)
overwriteAccessMethodsWithCSO(SbColor, pathPointsOnSliceColor)
overwriteAccessMethodsWithCSO(int, seedPointOnSliceStyle)
addMemberAndAccessMethod(bool, shouldUseStylePaletteLookUpForSeedPoints)
addMemberAndAccessMethod(bool, shouldUseStylePaletteLookUpForPathPoints)
overwriteAccessMethodsWithCSO(int, pathPointsOnSliceLineStyle)
CSOVisualizationSettingsWithStylePalette()
Constructor sets members to default values.
void parseVisibleIdList()
addMemberAndAccessMethod(std::string, visibleIdList)
overwriteAccessMethodsWithCSO(SbColor, seedPointOnSliceColor)
bool isCSOVisible(CSO *cso) override
overwriteAccessMethodsWithCSO(float, pathPointsOnSliceLineWidth)
addMemberAndAccessMethod(bool, invertVisibility)
The CSO represents a contour segmentation object.
Base object class StylePalette for providing a collection of colors, line styles and marker types.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
#define ML_CLASS_HEADER(className)
Same like ML_CLASS_HEADER_EXPORTED with a non-existing export symbol.
SSIZE_T MLssize_t
The signed ML size type that is a signed 32-bit size_t on 32-bit platforms and 64-bit one on 64-bit p...
CSOStylePaletteLookUpType
Defines how the optionally attached StylePalette should be used.
CSOVisibleObjectIdsFor
Mode for setting the CSOs' or CSOGroups' visibility by their id.
@ CSOs
Ids represent CSO ids.
@ Groups
Ids represent Group ids.