vtkSMTimeStepsDomain.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
14 #ifndef vtkSMTimeStepsDomain_h
15 #define vtkSMTimeStepsDomain_h
16 
17 #include "vtkRemotingServerManagerModule.h" //needed for exports
18 #include "vtkSMDomain.h"
19 
21 {
22 public:
23  static vtkSMTimeStepsDomain* New();
25 
26 
30  void Update(vtkSMProperty* prop) override;
31 
35  const std::vector<double>& GetValues() { return this->Values; };
36 
40  double GetValue(unsigned int i) { return this->Values[i]; };
41 
45  unsigned int GetNumberOfValues() { return static_cast<unsigned int>(this->Values.size()); };
46 
47 protected:
48  vtkSMTimeStepsDomain() = default;
49  ~vtkSMTimeStepsDomain() override = default;
50 
51 private:
53  void operator=(const vtkSMTimeStepsDomain&) = delete;
54 
55  std::vector<double> Values;
56 };
57 
58 #endif // vtkSMTimeStepsDomain_h
#define VTKREMOTINGSERVERMANAGER_EXPORT
virtual void Update(vtkSMProperty *requestingProperty)
Update self based on the "unchecked" values of all required properties.
superclass for all SM properties
double GetValue(unsigned int i)
Returns the value at index from the timesteps after Update.
represents the possible values a property can have
Definition: vtkSMDomain.h:37
A domain providing timesteps from its "Input" property.
unsigned int GetNumberOfValues()
Returns the number of values containing the timesteps after Update.
static vtkSMDomain * New()
const std::vector< double > & GetValues()
Returns the vector of values containing the timesteps after Update.