vtkPropertyDecorator.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 vtkPropertyDecorator_h
5 #define vtkPropertyDecorator_h
6 
8 
9 #include "vtkCommand.h"
10 #include "vtkObject.h"
11 #include "vtkSMProxy.h"
12 
13 #include "vtkSmartPointer.h" // needed for vtkSmartPointer
14 #include "vtkWeakPointer.h"
15 
16 class vtkPVXMLElement;
17 class vtkSMProxy;
18 
28 {
29 
30 public:
31  static vtkPropertyDecorator* New();
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
44  void virtual Initialize(vtkPVXMLElement* xml, vtkSMProxy* proxy);
45 
54  virtual bool CanShow(bool vtkNotUsed(showAdvanced)) const { return true; }
55 
64  virtual bool Enable() const { return true; }
65 
71  enum
72  {
73  VisibilityChangedEvent = vtkCommand::UserEvent + 1000,
74  EnableStateChangedEvent = vtkCommand::UserEvent + 1001
75  };
76 
92 
93 protected:
95  ~vtkPropertyDecorator() override;
96  vtkPVXMLElement* XML() const;
97  vtkSMProxy* Proxy() const;
98 
99  void InvokeVisibilityChangedEvent();
100  void InvokeEnableStateChangedEvent();
101 
102 private:
104  void operator=(const vtkPropertyDecorator&) = delete;
105 
108 };
109 
110 #endif
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
#define VTKREMOTINGAPPLICATIONCOMPONENTS_EXPORT
vtkPropertyDecorator hold the logic of pqPropertyDecorator TODO provides a mechanism to decorate pqPr...
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
virtual bool Enable() const
Override this method to override the enable state of the widget in the panel.
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
static vtkObject * New()
virtual bool CanShow(bool vtkNotUsed(showAdvanced)) const
Override this method to override the visibility of the widget in the panel.
void operator=(const vtkObjectBase &)