vtkSMNamedPropertyIterator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMNamedPropertyIterator.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 =========================================================================*/
32 #ifndef vtkSMNamedPropertyIterator_h
33 #define vtkSMNamedPropertyIterator_h
34 
35 #include "vtkRemotingServerManagerModule.h" //needed for exports
36 #include "vtkSMPropertyIterator.h"
37 
38 #include <string> // for std::string
39 #include <vector> // for std::vector
40 
41 class vtkSMProperty;
42 class vtkSMProxy;
43 class vtkStringList;
44 
46 {
47 public:
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
53 
56  void SetPropertyNames(vtkStringList* names);
57  void SetPropertyNames(const std::vector<std::string>& names);
59 
63  void Begin() override;
64 
68  int IsAtEnd() override;
69 
73  void Next() override;
74 
78  const char* GetKey() override;
79 
84  const char* GetPropertyLabel() override;
85 
89  vtkSMProperty* GetProperty() override;
90 
91 protected:
93  ~vtkSMNamedPropertyIterator() override;
94 
97 
98 private:
100  void operator=(const vtkSMNamedPropertyIterator&) = delete;
101 };
102 
103 #endif
iterates over a subset of a proxy&#39;s properties
virtual vtkSMProperty * GetProperty()
Returns the property at the current iterator position.
#define VTKREMOTINGSERVERMANAGER_EXPORT
virtual int IsAtEnd()
Returns true if iterator points past the end of the collection.
superclass for all SM properties
static vtkSMPropertyIterator * New()
virtual const char * GetKey()
Returns the key (name) at the current iterator position.
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:152
virtual void Begin()
Go to the first property.
void PrintSelf(ostream &os, vtkIndent indent) override
virtual const char * GetPropertyLabel()
Returns the XMLLabel for self properties and the exposed name for sub-proxy properties.
Manages allocation and freeing for a string list.
Definition: vtkStringList.h:30
iterates over the properties of a proxy
virtual void Next()
Move to the next property.