pqInputDataTypeDecorator.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 #ifndef pqInputDataTypeDecorator_h
5 #define pqInputDataTypeDecorator_h
6 
9 #include "vtkWeakPointer.h"
10 
11 class vtkObject;
12 
22 {
23  Q_OBJECT
25 
26 public:
28  ~pqInputDataTypeDecorator() override;
29 
33  bool enableWidget() const override;
34 
38  bool canShowWidget(bool show_advanced) const override;
39 
40 protected:
41  virtual bool processState() const;
42 
43 private:
44  Q_DISABLE_COPY(pqInputDataTypeDecorator)
45 
46  vtkWeakPointer<vtkObject> ObservedObject;
47  unsigned long ObserverId;
48 };
49 
50 #endif
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
virtual bool enableWidget() const
Override this method to override the enable state of the widget in the panel.
#define PQAPPLICATIONCOMPONENTS_EXPORT
pqInputDataTypeDecorator is a pqPropertyWidgetDecorator subclass.
virtual bool canShowWidget(bool show_advanced) const
Override this method to override the visibility of the widget in the panel.
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
pqPropertyWidgetDecorator provides a mechanism to decorate pqPropertyWidget instances to add logic to...