vtkSMNewWidgetRepresentationProxy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMNewWidgetRepresentationProxy.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
29 #ifndef vtkSMNewWidgetRepresentationProxy_h
30 #define vtkSMNewWidgetRepresentationProxy_h
31 
32 #include "vtkRemotingViewsModule.h" //needed for exports
34 class vtkSMViewProxy;
35 class vtkAbstractWidget;
36 
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
46 
49  vtkGetObjectMacro(Widget, vtkAbstractWidget);
51 
53 
56  vtkGetObjectMacro(RepresentationProxy, vtkSMProxy);
58 
59 protected:
62 
67  void CreateVTKObjects() override;
68 
69  vtkSMProxy* RepresentationProxy = nullptr;
70  vtkSMProxy* WidgetProxy = nullptr;
71  vtkAbstractWidget* Widget = nullptr;
72 
76  void ExecuteEvent(unsigned long event) override;
77 
78 private:
80  void operator=(const vtkSMNewWidgetRepresentationProxy&) = delete;
81 };
82 
83 #endif
#define VTKREMOTINGVIEWS_EXPORT
virtual void ExecuteEvent(unsigned long event)=0
Called every time the user interacts with the widget.
Superclass for all view proxies.
proxy for 3D widgets and their representations in ParaView.
static vtkSMProxy * New()
virtual void CreateVTKObjects()
Given a class name (by setting VTKClassName) and server ids (by setting ServerIDs), this methods instantiates the objects on the server(s)
void PrintSelf(ostream &os, vtkIndent indent) override
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:152
Abstract class for proxies for 2D and 3D widgets.