VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
uiSystemElement.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
16 #include <QtCore/QObject>
17 
23 class QProcess;
24 
26 {
27  Q_OBJECT
28 
29 public:
30 
33 
35  virtual ~DtUiSystemElement() override;
36 
39  virtual void replaceSystem(const DtFilename& system);
40 
42  virtual void deleteSystem(const DtFilename& system);
43 
44  virtual void dialogDone(bool);
45 
46  virtual void openPropertyEditWindow();
47 
49  virtual std::vector<DtFilename> possibleSystemFilenames(const DtFilename& filename) const;
50 
52  {
58  Damage
59  };
60 
62  {
63  std::string ret;
64 
65  switch (t)
66  {
67  case Uninitialized:
68  ret = "null";
69  break;
70  case Sensor:
71  ret = "sensor";
72  break;
73  case Weapon:
74  ret = "weapon";
75  break;
76  case Movement:
77  ret = "movement";
78  break;
79  case Damage:
80  ret = "damage";
81  break;
82  case Other:
83  ret = "other";
84  }
85 
86  return ret;
87 
88  }
89 
90 protected:
91 
92  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw) override;
93 
96  virtual void findAvailableSystems();
97 
101  //name is an optional parameter that will override the name generated by availableSystemName()
102  virtual DtRwVariableBindings* addSystemToParameters(const DtFilename& sysDefFilename, DtReaderWriter* system, std::string name = "");
103 
104  virtual void removeSystemFromParameters(const DtRwVariableBindings* sysDescriptor, DtReaderWriter* system);
105 
108  virtual DtString availableSystemName(const DtString& baseName);
109 
112  virtual DtSystemPropertyEditDialog* createSystemPropertyDialog(
113  const std::vector<DtRwVariableBindings*>& desc,
114  const DtComponentSystemDefinition* definition, QWidget* parentWidget);
115 
118  virtual const DtComponentSystemDefinition* findSystemInfoForFilename(const DtFilename& filename,
119  const DtSystemDefinitionInfoList& list, bool& exists, DtFilename* retFilename = 0) const;
120 
122  virtual QList<const DtRwVariableBindings*> systemsFor(const DtFilename&, DtRwVariableBindingsList* list) const;
123 
126  virtual void mergeBindings(const DtRwVariableBindings* source, DtRwVariableBindings* destination) const;
127 
130  virtual DtString uniqueName() const override;
131 
133  virtual bool supportsSystems() const override;
134 
136  virtual void createControls(QWidget* parent) override;
137 
139  virtual DtFilename getSystemFilename() const;
140 
142  virtual void addArticulatedPartsForSystem(const DtComponentSystemDefinition* systemDef,
143  const DtString& systemName);
144 
146  virtual void addArticulatedPartsForActuator(const DtActuatorComponentDescriptor* actuatorDesc,
147  const DtComponentSystemDefinition* systemDef, const DtString& systemName);
148 
149  virtual void revertSystems(systemTypes);
150 
151 public slots:
152  virtual void launchOpdEditor();
153 
154 protected:
158 };
Definition: rwVariableBindingsList.h:16
systemTypes
Definition: uiSystemElement.h:51
std::list< DtSystemDefinitionInfo > DtSystemDefinitionInfoList
Definition: componentSystemDatabase.h:34
virtual void createControls(QWidget *parent)
If additional widgets or connections need to be made do it here. The parent is the myWidget member...
virtual void setFromParameters(DtReaderWriter *parentRw)
Calls setFromParameters with std::vector of parameter.
virtual DtString uniqueName() const
Returns a unique name for this element. If there is a myValue returns the name of that value...
End User Description: DtActuatorComponentDescriptor contains parameters common to all actuator compon...
Definition: actuatorComponentDescriptor.h:47
virtual bool supportsSystems() const
Returns true if this element supports systems.
List of DtComponentSystemDescriptor instances.
Definition: componentSystemDescriptorList.h:22
Definition: readerWriter.h:85
Definition: uiSystemElement.h:53
ReaderWriter object that maintains a list of reader-writer variable bindings. It keeps a list of name...
Definition: rwVariableBindings.h:28
Dialog which allows the user to view and edit the parameters for a system. Which parameters are edita...
Definition: systemPropertyEditDialog.h:31
Reader/Writer class which specifies the contents of a DtComponentSystem. This lists the sensors...
Definition: componentSystemDefinition.h:31
Definition: uiSystemElement.h:54
const char * source
Definition: lz4.h:442
Descriptor for a DtComponentSystem. Specified a system being added to an entity. This does not actual...
Definition: componentSystemDescriptor.h:25
std::string systemTypeToString(systemTypes t)
Definition: uiSystemElement.h:61
Definition: uiSystemElement.h:57
Definition: uiSystemElement.h:56
bool myPassEventsToDialog
Definition: uiSystemElement.h:157
Definition: uiSystemElement.h:55
Definition: translator.h:58
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:76
Definition: uiSystemElement.h:25
DtString myCategory
Definition: uiSystemElement.h:155
#define DT_DLL_simulationObjectEditorimpl
This file is used to determine how to build.
Definition: simulationObjectEditorImplDefines.h:33
Base class of the ui element class chain. Properties available through designer for all ui elements a...
Definition: uiElement.h:193
DtSystemDefinitionInfoList myAvailableSystems
Definition: uiSystemElement.h:156

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)