VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
taskDIGuyAnimationDialog.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
10 
11 #pragma once
12 
15 #include <vlutil/vlPerformanceStats.h>
16 
17 class QGridLayout;
18 class QLineEdit;
19 class QLabel;
20 class QDoubleValidator;
21 class QHBoxLayout;
22 class QRadioButton;
23 class QGroupBox;
24 class QVBoxLayout;
25 class QCheckBox;
26 class QSpinBox;
27 
28 namespace makVrf
29 {
31  {
32  Q_OBJECT
33 
34  public:
35  //CTOR
36  DtTaskDIGuyAnimationDialog(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
37 
38  //DTOR
39  virtual ~DtTaskDIGuyAnimationDialog();
40 
41  virtual bool forNumberOfTimes() const;
42  virtual void setForNumberOfTimes(bool);
43 
44  virtual unsigned numberOfTimes() const;
45  virtual void setNumberOfTimes(unsigned);
46 
47  virtual bool indefinitely() const;
48  virtual void setIndefinitely(bool);
49 
50  virtual bool forDuration() const;
51  virtual void setForDuration(bool);
52 
53  virtual double duration() const;
54  virtual void setDuration(double);
55 
56  protected:
57  virtual QWidget* contents(const std::vector<makVrv::DtSimEntry*>& data);
58  virtual QBoxLayout* createMainLayout();
59  virtual bool eventFilter(QObject*, QEvent*);
60 
61  protected:
62  virtual void sendRequest();
63  virtual void setupStatement(const DtSimStatement* stmt);
64  virtual void initializeItems(const std::vector<makVrv::DtSimEntry*>& data);
65  virtual void setupFrom(const std::vector<makVrv::DtSimEntry*>& d);
66  virtual void requestMet();
67  virtual void comboChanged(const QString&);
68  virtual bool resetAnimationsIfNecessary();
69  virtual void animationTick();
70 
71  protected slots:
72  virtual void onAnimationTypeChanged();
73  virtual void onPreviewChanged();
74 
75  public:
76  QGroupBox* myAnimationGroupBox;
77  QVBoxLayout* myAnimateLayout;
79  QRadioButton* myForNumberOfTimes;
81  QRadioButton* myIndefinitely;
82  QHBoxLayout* myForDurationLayout;
83  QRadioButton* myForDuration;
85  QDoubleValidator* myDurationValidator;
87 
88  protected:
92  std::map<makVrv::DtUniqueID, std::string> myCurrentAnimations;
94  std::vector<makVrv::DtUniqueID> myCanPreviewFor;
97  double myDuration;
98  unsigned myNumberOfTimes;
100  boost::signals2::connection myTickConnection;
101  bool myClosing;
103  };
104 
106  {
107  public:
108  virtual DtTaskSetDialogInterface* create(makVrv::DtDe&, QWidget* parent);
109  virtual bool supportsType(makVrv::DtDe&, const DtSimTaskMessageType&, const DtSimStatement*) const;
110  };
111 }
QLineEdit * myForDurationEdit
Definition: taskDIGuyAnimationDialog.h:84
double myDuration
Definition: taskDIGuyAnimationDialog.h:97
std::map< makVrv::DtUniqueID, std::string > myCurrentAnimations
Definition: taskDIGuyAnimationDialog.h:92
DtString myAnimation
Definition: taskDIGuyAnimationDialog.h:89
DtString myCharacterType
Definition: taskDIGuyAnimationDialog.h:95
Definition: taskSetDialogInterface.h:84
QCheckBox * myPreview
Definition: taskDIGuyAnimationDialog.h:86
bool myResetAnimations
Definition: taskDIGuyAnimationDialog.h:93
A DtSimEntry is a container of DtSimState&#39;s and represents the total state of an simulation object...
Definition: DtSimEntry.h:27
unsigned myNumberOfTimes
Definition: taskDIGuyAnimationDialog.h:98
bool myClosing
Definition: taskDIGuyAnimationDialog.h:101
makVrv::DtSimEntry * myLastRequest
Definition: taskDIGuyAnimationDialog.h:91
QRadioButton * myForNumberOfTimes
Definition: taskDIGuyAnimationDialog.h:79
boost::signals2::connection myTickConnection
Definition: taskDIGuyAnimationDialog.h:100
QHBoxLayout * myForNumberOfTimesLayout
Definition: taskDIGuyAnimationDialog.h:78
double myAnimationDuration
Definition: taskDIGuyAnimationDialog.h:96
std::vector< makVrv::DtUniqueID > myCanPreviewFor
Definition: taskDIGuyAnimationDialog.h:94
Class that is used as a template for task/set dialogs.
Definition: taskSetDialogInterface.h:46
bool myResetting
Definition: taskDIGuyAnimationDialog.h:102
QHBoxLayout * myForDurationLayout
Definition: taskDIGuyAnimationDialog.h:82
QGroupBox * myAnimationGroupBox
Definition: taskDIGuyAnimationDialog.h:76
QRadioButton * myIndefinitely
Definition: taskDIGuyAnimationDialog.h:81
class DtSimStatement:
Definition: simStatement.h:38
Definition: baseComboTaskSetDialog.h:24
QRadioButton * myForDuration
Definition: taskDIGuyAnimationDialog.h:83
Definition: taskDIGuyAnimationDialog.h:105
bool myRequested
Definition: taskDIGuyAnimationDialog.h:90
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
QSpinBox * myForNumberOfTimesEdit
Definition: taskDIGuyAnimationDialog.h:80
DtTimedSection myAnimationTimer
Definition: taskDIGuyAnimationDialog.h:99
QDoubleValidator * myDurationValidator
Definition: taskDIGuyAnimationDialog.h:85
Definition: taskDIGuyAnimationDialog.h:30
#define DT_DLL_VRFGUITASKSETQT
Definition: vrfGuiTaskSetQt.h:22
QVBoxLayout * myAnimateLayout
Definition: taskDIGuyAnimationDialog.h:77

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)