vtkShowDecorator.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 vtkShowDecorator_h
5 #define vtkShowDecorator_h
6 
8 
10 #include "vtkWeakPointer.h"
11 
17 {
18 
19 public:
20  static vtkShowDecorator* New();
22  void PrintSelf(ostream& os, vtkIndent indent) override;
23 
24  void Initialize(vtkPVXMLElement* xml, vtkSMProxy* proxy) override;
25 
26  bool CanShow(bool show_advanced) const override
27  {
28  (void)show_advanced;
29  return this->IsBoolProperty();
30  }
31 
32 protected:
34  ~vtkShowDecorator() override;
35 
36 private:
37  vtkShowDecorator(const vtkShowDecorator&) = delete;
38  void operator=(const vtkShowDecorator&) = delete;
39 };
40 
41 #endif
void Initialize(vtkPVXMLElement *xml, vtkSMProxy *proxy) override
Constructor.
#define VTKREMOTINGAPPLICATIONCOMPONENTS_EXPORT
bool CanShow(bool show_advanced) const override
Override this method to override the visibility of the widget in the panel.
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.
vtkShowDecorator can be used to show/hide a widget based on the status of another property not direct...
void PrintSelf(ostream &os, vtkIndent indent) override