22 #include <ThirdPartyWarningsDisable.h>
23 #include <boost/unordered_set.hpp>
24 #include <ThirdPartyWarningsRestore.h>
49 #define addMemberAndAccessMethod(type, name) \
51 type name() const { return _##name; } \
52 void name(type value) { _##name = value; } \
56 #define addMemberAndAccessMethodWithCSO(type, name) \
58 type name() const { return _##name; } \
59 virtual type name(CSO* cso) const; \
60 void name(type value) { _##name = value; } \
64 #define overwriteAccessMethodsWithCSO(type, name) \
66 using CSOVisualizationSettings::name; \
67 virtual type name(CSO* cso) const override;
102 MLssize_t getStylePalettePathPointsLookUp(
CSO* cso)
const;
104 MLssize_t getStylePaletteSeedPointsLookUp(
CSO* cso)
const;
106 MLssize_t getStylePaletteLookUp(
CSO* cso,
int lookUpType)
const;
108 bool hasStylePalette()
const;
111 SbColor getColorFromStylePalette(
MLssize_t index)
const;
112 unsigned short getLineStyleFromStylePalette(
MLssize_t index)
const;
113 int getLineWidthFromStylePalette(
MLssize_t index)
const;
114 int getSeedPointStyleFromStylePalette(
MLssize_t index)
const;
115 int getSeedPointSizeFromStylePalette(
MLssize_t index)
const;
117 boost::unordered_set < int > _visibleIds;
124 #undef addMemberAndAccessMethodWithCSO
125 #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)
ML_CLASS_HEADER(CSOVisualizationSettings)
The CSO represents a contour segmentation object.
Base object class StylePalette for providing a collection of colors, line styles and marker types.
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.