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 
20 class VTKREMOTINGSERVERMANAGER_EXPORT vtkSMTimeStepsDomain : public vtkSMDomain
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
vtkSMTimeStepsDomain
A domain providing timesteps from its "Input" property.
Definition: vtkSMTimeStepsDomain.h:20
vtkSMTimeStepsDomain::GetNumberOfValues
unsigned int GetNumberOfValues()
Returns the number of values containing the timesteps after Update.
Definition: vtkSMTimeStepsDomain.h:45
vtkSMProperty
superclass for all SM properties
Definition: vtkSMProperty.h:144
vtkSMDomain::Update
virtual void Update(vtkSMProperty *requestingProperty)
Update self based on the "unchecked" values of all required properties.
vtkSMTimeStepsDomain::GetValue
double GetValue(unsigned int i)
Returns the value at index from the timesteps after Update.
Definition: vtkSMTimeStepsDomain.h:40
vtkSMDomain
represents the possible values a property can have
Definition: vtkSMDomain.h:37
vtkSMDomain::New
static vtkSMDomain * New()
vtkSMTimeStepsDomain::GetValues
const std::vector< double > & GetValues()
Returns the vector of values containing the timesteps after Update.
Definition: vtkSMTimeStepsDomain.h:35
vtkSMDomain.h