vtkSMDoubleMapPropertyIterator.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
3 
4 #ifndef vtkSMDoubleMapPropertyIterator_h
5 #define vtkSMDoubleMapPropertyIterator_h
6 
7 #include "vtkRemotingServerManagerModule.h" //needed for exports
8 #include "vtkSMObject.h"
9 
11 class vtkSMDoubleMapPropertyIteratorInternals;
12 
14 {
15 public:
18  void PrintSelf(ostream& os, vtkIndent indent) override;
19 
20  // Description:
21  // Set/get the property to iterate over.
22  virtual void SetProperty(vtkSMDoubleMapProperty* property);
23  vtkGetObjectMacro(Property, vtkSMDoubleMapProperty);
24 
25  // Description:
26  // Go to the first item.
27  virtual void Begin();
28 
29  // Description:
30  // Returns true if iterator points past the end of the collection.
31  virtual int IsAtEnd();
32 
33  // Description:
34  // Move to the next item.
35  virtual void Next();
36 
37  // Description:
38  // Returns the key (index) at the current iterator position.
39  virtual vtkIdType GetKey();
40 
41  // Description:
42  // Returns the value of the component for the current value.
43  virtual double GetElementComponent(unsigned int component);
44 
45 protected:
48 
49 private:
51  void operator=(const vtkSMDoubleMapPropertyIterator&) = delete;
52 
53  vtkSMDoubleMapProperty* Property;
54  vtkSMDoubleMapPropertyIteratorInternals* Internals;
55 };
56 
57 #endif
#define VTKREMOTINGSERVERMANAGER_EXPORT
int vtkIdType
a map property storing double values
superclass for most server manager classes
Definition: vtkSMObject.h:17
static vtkSMObject * New()
void PrintSelf(ostream &os, vtkIndent indent) override