ParaView
vtkSMBoundsDomain.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMBoundsDomain.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 =========================================================================*/
57 #ifndef vtkSMBoundsDomain_h
58 #define vtkSMBoundsDomain_h
59 
60 #include "vtkPVServerManagerCoreModule.h" //needed for exports
61 #include "vtkSMDoubleRangeDomain.h"
62 
64 class vtkSMProxyProperty;
66 
67 class VTKPVSERVERMANAGERCORE_EXPORT vtkSMBoundsDomain : public vtkSMDoubleRangeDomain
68 {
69 public:
70  static vtkSMBoundsDomain* New();
72  void PrintSelf(ostream& os, vtkIndent indent);
73 
78  virtual void Update(vtkSMProperty*);
79 
81  vtkSetClampMacro(Mode, int, 0, 3);
82  vtkGetMacro(Mode, int);
84 
88  enum Modes
89  {
98  };
99 
100  vtkGetMacro(ScaleFactor, double);
101 
105  virtual int SetDefaultValues(vtkSMProperty* property, bool use_unchecked_values);
106 
107 protected:
110 
115  virtual int ReadXMLAttributes(vtkSMProperty* prop, vtkPVXMLElement* element);
116 
117  // Obtain the data information from the requried property with
118  // function "Input", if any.
119  vtkPVDataInformation* GetInputInformation();
120 
121  void SetDomainValues(double bounds[6]);
122 
123  void UpdateOriented();
124 
125  int Mode;
126  double ScaleFactor; // Used only in SCALED_EXTENT and APPROXIMATE_CELL_LENGTH mode.
127 private:
128  vtkSMBoundsDomain(const vtkSMBoundsDomain&) VTK_DELETE_FUNCTION;
129  void operator=(const vtkSMBoundsDomain&) VTK_DELETE_FUNCTION;
130 
131  vtkSMArrayRangeDomain* ArrayRangeDomain;
132 };
133 
134 #endif
double range domain based on data set bounds
property representing pointer(s) to vtkObject(s)
type specific extension to vtkSMRangeDomainTemplate for doubles.
Light object for holding data information.
virtual void Update(vtkSMProperty *requestingProperty)
Update self based on the "unchecked" values of all required properties.
Definition: vtkSMDomain.h:65
superclass for all SM properties
static vtkSMDoubleRangeDomain * New()
virtual int SetDefaultValues(vtkSMProperty *, bool vtkNotUsed(use_unchecked_values))
A vtkSMProperty is often defined with a default value in the XML itself.
Definition: vtkSMDomain.h:85
virtual int ReadXMLAttributes(vtkSMProperty *prop, vtkPVXMLElement *elem)
Set the appropriate ivars from the xml element.
void PrintSelf(ostream &os, vtkIndent indent)
Modes
SCALED_EXTENT: is used for vtkPVScaleFactorEntry.
double range domain based on array range
This is used by vtkPVXMLParser to represent an XML document starting at the root element.