VR-Forces 5.0.1 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();
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  {
56  Other
57  };
58 
60  {
61  std::string ret;
62 
63  switch (t)
64  {
65  case Uninitialized:
66  ret = "null";
67  break;
68  case Sensor:
69  ret = "sensor";
70  break;
71  case Weapon:
72  ret = "weapon";
73  break;
74  case Other:
75  ret = "other";
76  }
77 
78  return ret;
79 
80  }
81 
82 protected:
83 
84  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
85 
88  virtual void findAvailableSystems();
89 
93  //name is an optional parameter that will override the name generated by availableSystemName()
94  virtual DtRwVariableBindings* addSystemToParameters(const DtFilename& sysDefFilename, DtReaderWriter* system, std::string name = "");
95 
96  virtual void removeSystemFromParameters(const DtRwVariableBindings* sysDescriptor, DtReaderWriter* system);
97 
100  virtual DtString availableSystemName(const DtString& baseName);
101 
104  virtual DtSystemPropertyEditDialog* createSystemPropertyDialog(
105  const std::vector<DtRwVariableBindings*>& desc,
106  const DtComponentSystemDefinition* definition, QWidget* parentWidget);
107 
110  virtual const DtComponentSystemDefinition* findSystemInfoForFilename(const DtFilename& filename,
111  const DtSystemDefinitionInfoList& list, bool& exists, DtFilename* retFilename = 0) const;
112 
114  virtual QList<const DtRwVariableBindings*> systemsFor(const DtFilename&, DtRwVariableBindingsList* list) const;
115 
118  virtual void mergeBindings(const DtRwVariableBindings* source, DtRwVariableBindings* destination) const;
119 
122  virtual DtString uniqueName() const;
123 
125  virtual bool supportsSystems() const;
126 
128  virtual void createControls(QWidget* parent);
129 
131  virtual DtFilename getSystemFilename() const;
132 
134  virtual void addArticulatedPartsForSystem(const DtComponentSystemDefinition* systemDef,
135  const DtString& systemName);
136 
138  virtual void addArticulatedPartsForActuator(const DtActuatorComponentDescriptor* actuatorDesc,
139  const DtComponentSystemDefinition* systemDef, const DtString& systemName);
140 
141 public slots:
142  virtual void launchOpdEditor();
143 
144 protected:
148 };
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:20
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:27
Dialog which allows the user to view and edit the parameters for a system. Which parameters are edita...
Definition: systemPropertyEditDialog.h:31
DtComponentSystemDefinition.
Definition: componentSystemDefinition.h:25
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:23
std::string systemTypeToString(systemTypes t)
Definition: uiSystemElement.h:59
bool myPassEventsToDialog
Definition: uiSystemElement.h:147
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:70
Definition: uiSystemElement.h:25
DtString myCategory
Definition: uiSystemElement.h:145
#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:180
DtSystemDefinitionInfoList myAvailableSystems
Definition: uiSystemElement.h:146

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)