4 #ifndef pqColorAnnotationsWidget_h 5 #define pqColorAnnotationsWidget_h 24 typedef QWidget Superclass;
38 QList<QVariant> annotations()
const;
39 void setAnnotations(
const QList<QVariant>&);
47 QList<QVariant> indexedColors()
const;
48 void setIndexedColors(
const QList<QVariant>&);
55 QList<QVariant> indexedOpacities()
const;
56 void setIndexedOpacities(
const QList<QVariant>&);
63 QList<QVariant> visibilities()
const;
64 void setVisibilities(
const QList<QVariant>&);
71 QVariant opacityMapping()
const;
72 void setOpacityMapping(
const QVariant&);
78 void applyPreset(
const char* presetName);
84 void indexedLookupStateUpdated(
bool indexed);
90 bool addActiveAnnotations(
bool force);
96 bool addActiveAnnotations(
bool force,
bool extend);
102 QModelIndex currentIndex();
107 QModelIndexList selectedIndexes();
117 void setSupportsReorder(
bool reorder);
122 void sort(
int column, Qt::SortOrder
order = Qt::AscendingOrder);
128 void allowsUserDefinedValues(
bool allow);
136 void allowsRegexpMatching(
bool allow);
142 void enablePresets(
bool enable);
147 void supportsVisibilityCheck(
bool val);
152 void supportsOpacityMapping(
bool val);
163 const char* currentPresetName();
164 void setCurrentPresetName(
const char*
name);
170 QString currentAnnotationValue();
175 QStringList selectedAnnotations();
176 void setSelectedAnnotations(
const QStringList& annotations);
181 bool presetLoadAnnotations();
186 QRegularExpression presetRegularExpression();
192 void annotationsChanged();
197 void indexedColorsChanged();
202 void indexedOpacitiesChanged();
207 void visibilitiesChanged();
212 void opacityMappingChanged();
217 void presetChanged(
const QString& name);
222 void selectionChanged(
const QItemSelection&,
const QItemSelection&);
228 bool addActiveAnnotationsFromVisibleSources(
bool force);
236 void addAnnotation();
237 void removeAnnotation();
238 void addActiveAnnotations();
239 void addActiveAnnotationsFromVisibleSources();
240 void removeAllAnnotations();
243 void onPresetApplied(
const QString& presetName);
250 void onDataChanged(
const QModelIndex& topleft,
const QModelIndex& btmright);
257 void onDoubleClicked(
const QModelIndex& idx);
264 void onHeaderDoubleClicked(
int section);
269 void execGlobalOpacityDialog();
274 void choosePreset(
const char* presetName =
nullptr);
279 void saveAsNewPreset();
280 void saveAsPreset(
const char* name,
bool removeAnnotations,
bool allowOverride);
286 void updateOpacityColumnState();
291 void editPastLastRow();
297 pqInternals* Internals;
#define PQAPPLICATIONCOMPONENTS_EXPORT
proxy for a VTK object(s) on a server