pqKeyFrameTimeValidator.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 #ifndef pqKeyFrameTimeValidator_h
5 #define pqKeyFrameTimeValidator_h
6 
7 #include "pqComponentsModule.h"
8 #include <QDoubleValidator>
9 
10 class pqAnimationScene;
11 class vtkSMDomain;
12 
13 class PQCOMPONENTS_EXPORT pqKeyFrameTimeValidator : public QDoubleValidator
14 {
15  Q_OBJECT
16  typedef QDoubleValidator Superclass;
17 
18 public:
19  pqKeyFrameTimeValidator(QObject* parent);
20  ~pqKeyFrameTimeValidator() override;
21 
22  // Set the AnimationScene. The ClockTimeRange from the time
23  // keeper is used to determine the scale factor for the
24  // range for this validator.
25  void setAnimationScene(pqAnimationScene* timekeeper);
26 
27  // Set the domain which for this key time. Domain provides
28  // the normalized range for this validator.
29  void setDomain(vtkSMDomain* domain);
30 
31 protected Q_SLOTS:
32  void onDomainModified();
33 
34 private:
35  class pqInternals;
36  pqInternals* Internals;
37 };
38 
39 #endif
#define PQCOMPONENTS_EXPORT
represents the possible values a property can have
Definition: vtkSMDomain.h:37
pqAnimationScene is a representation for a vtkSMAnimationScene proxy.