ParaView
vtkSMScalarBarWidgetRepresentationProxy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMScalarBarWidgetRepresentationProxy.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 =========================================================================*/
22 #ifndef vtkSMScalarBarWidgetRepresentationProxy_h
23 #define vtkSMScalarBarWidgetRepresentationProxy_h
24 
25 #include "vtkPVServerManagerRenderingModule.h" //needed for exports
27 
28 class vtkSMViewProxy;
30 
31 class VTKPVSERVERMANAGERRENDERING_EXPORT vtkSMScalarBarWidgetRepresentationProxy
33 {
34 public:
37  virtual void PrintSelf(ostream& os, vtkIndent indent);
38 
40 
44  virtual bool UpdateComponentTitle(vtkPVArrayInformation* dataInfo);
45  static bool UpdateComponentTitle(vtkSMProxy* proxy, vtkPVArrayInformation* dataInfo)
46  {
49  return self ? self->UpdateComponentTitle(dataInfo) : false;
50  }
52 
54 
58  virtual bool PlaceInView(vtkSMProxy* view);
59  static bool PlaceInView(vtkSMProxy* proxy, vtkSMProxy* view)
60  {
63  return self ? self->PlaceInView(view) : false;
64  }
66 
67 protected:
70 
75  virtual void CreateVTKObjects();
76 
80  virtual void ExecuteEvent(unsigned long event);
81 
83 
84 private:
86  const vtkSMScalarBarWidgetRepresentationProxy&) VTK_DELETE_FUNCTION;
87  void operator=(const vtkSMScalarBarWidgetRepresentationProxy&) VTK_DELETE_FUNCTION;
88 };
89 
90 #endif
is the representation corresponding to a scalar bar or color legend in a Render View.
Superclass for all view proxies.
proxy for 3D widgets and their representations in ParaView.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkSMScalarBarWidgetRepresentationProxy * SafeDownCast(vtkObject *o)
virtual void CreateVTKObjects()
Overridden from vtkSMProxy to call BeginCreateVTKObjects() and EndCreateVTKObjects().
static bool UpdateComponentTitle(vtkSMProxy *proxy, vtkPVArrayInformation *dataInfo)
Updates the scalar bar's component title using the data information to determine component names if p...
static vtkSMNewWidgetRepresentationProxy * New()
virtual void ExecuteEvent(unsigned long event)
Called every time the user interacts with the widget.
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:152
Data array information like type.
static bool PlaceInView(vtkSMProxy *proxy, vtkSMProxy *view)
Attempt to place the scalar bar in the view based on the placement of other currently shown and visib...