vtkEnableDecorator.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 vtkEnableDecorator_h
5 #define vtkEnableDecorator_h
6 
8 
10 
16 {
17 public:
18  static vtkEnableDecorator* New();
20  void PrintSelf(ostream& os, vtkIndent indent) override;
21 
22  void Initialize(vtkPVXMLElement* xml, vtkSMProxy* proxy) override;
23 
27  bool Enable() const override { return this->IsBoolProperty(); }
28 
29 protected:
31  ~vtkEnableDecorator() override;
32 
33 private:
34  vtkEnableDecorator(const vtkEnableDecorator&) = delete;
35  void operator=(const vtkEnableDecorator&) = delete;
36 };
37 
38 #endif
void Initialize(vtkPVXMLElement *xml, vtkSMProxy *proxy) override
Constructor.
vtkEnableDecorator can be used to enable/disable a widget based on the status of another property not...
#define VTKREMOTINGAPPLICATIONCOMPONENTS_EXPORT
static vtkBoolPropertyDecorator * New()
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.
bool Enable() const override
overridden from vtkProperty.
void PrintSelf(ostream &os, vtkIndent indent) override