vtkBoolPropertyDecorator.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 vtkBoolPropertyDecorator_h
5 #define vtkBoolPropertyDecorator_h
6 
8 
9 #include "vtkPropertyDecorator.h"
10 #include "vtkWeakPointer.h"
11 
12 class vtkSMProperty;
14 
21 {
22 
23 public:
24  static vtkBoolPropertyDecorator* New();
26  void PrintSelf(ostream& os, vtkIndent indent) override;
27 
28 public:
29  void Initialize(vtkPVXMLElement* xml, vtkSMProxy* proxy) override;
30 
31  bool IsBoolProperty() const { return this->BoolProperty; }
32 
33  enum
34  {
35  BoolPropertyChangedEvent = vtkCommand::UserEvent + 1002,
36  };
37 
38 protected:
40  ~vtkBoolPropertyDecorator() override;
41 
42 private:
44  void operator=(const vtkBoolPropertyDecorator&) = delete;
45 
46  void SetBoolProperty(bool);
47 
49  void UpdateBoolPropertyState();
50 
52  std::string Function;
53  int Index;
54  unsigned long ObserverId;
55  bool BoolProperty;
56  std::string Value;
57 };
58 
59 #endif
pqBoolPropertyWidgetDecorator is a base class for enable/disable or show/hide widgets based on the st...
virtual void Initialize(vtkPVXMLElement *xml, vtkSMProxy *proxy)
Constructor.
void PrintSelf(ostream &os, vtkIndent indent) override
#define VTKREMOTINGAPPLICATIONCOMPONENTS_EXPORT
static vtkPropertyDecorator * New()
superclass for all SM properties
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
vtkBoolPropertyDecorator is a base class for enable/disable or show/hide widgets based on the status ...
This is used by vtkPVXMLParser to represent an XML document starting at the root element.