vtkSMViewResolutionDomain.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMViewResolutionDomain.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 =========================================================================*/
15 #ifndef vtkSMViewResolutionDomain_h
16 #define vtkSMViewResolutionDomain_h
17 
18 #include "vtkRemotingViewsModule.h" //needed for exports
19 #include "vtkSMIntRangeDomain.h"
20 
22 class vtkSMViewProxy;
23 
24 /* @class vtkSMViewProxy
25  * @brief domain for view (or layout) resolution.
26  *
27  * Int range domain that sets up the range based on the current view (or layout resolution).
28  *
29  */
30 class VTKREMOTINGVIEWS_EXPORT vtkSMViewResolutionDomain : public vtkSMIntRangeDomain
31 {
32 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
41  void Update(vtkSMProperty*) override;
42 
43 protected:
45  ~vtkSMViewResolutionDomain() override;
46 
47  void GetLayoutResolution(vtkSMViewLayoutProxy* layout, int resolution[2]);
48  void GetViewResolution(vtkSMViewProxy* view, int resolution[2]);
49 
50 private:
52  void operator=(const vtkSMViewResolutionDomain&) = delete;
53 };
54 
55 #endif
type specific extension to vtkSMRangeDomainTemplate for ints.
static vtkSMIntRangeDomain * New()
virtual void Update(vtkSMProperty *requestingProperty)
Update self based on the "unchecked" values of all required properties.
Definition: vtkSMDomain.h:66
Superclass for all view proxies.
superclass for all SM properties
vtkSMViewLayoutProxy is used by ParaView to layout multiple views in a 2D KD-Tree layout.
void PrintSelf(ostream &os, vtkIndent indent) override