VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
uiCustomAggregateElements.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2022 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
6 // \file uiCustomAggregateElements.h
7 // \ingroup customObjectEditor
8 
9 #pragma once
10 
12 
13 class DtRwPropertiesMap;
14 
16 {
17  Q_OBJECT
18 
19 public:
22 
25 
27 
28 
29 protected:
30 
32  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
33 
35  virtual void makeNewAssembly(const std::string& sAssemblyKeyword, const std::string& sGuiLabel, const DtModelSetEntry* pModelSetEntry) const;
36 
38  virtual void updateExistingAssembly(const std::string& sAssemblyKeyword,
39  const std::string& sGuiLabel,
40  const DtModelSetEntry* pModelSetEntry,
41  DtAssembliesReaderWriter::RwRootNode* pAssemblyNode) const;
42 
43  virtual void updateEquipment(DtAssembliesReaderWriter::RwRootNode* pAssemblyNode, const DtRwPropertiesMap* pRwMap) const;
44 
45  virtual void updateSystems(DtAssembliesReaderWriter::RwRootNode* pAssemblyNode, const DtRwVariableBindingsList& fromBindingsList) const;
46 
47  template <typename RW_Type>
48  void updateAssemblySingleVariableValue(const DtString& variableName) const;
49 
50  virtual void updateAssemblyCountedAttributes(DtAssembliesReaderWriter::RwRootNode* pAssemblyNode, const std::string& sAttributeType, const DtRwPropertiesMap* pRwMap) const;
51 
52  virtual void updateAssemblySingleVariables(DtAssembliesReaderWriter::RwRootNode* pAssemblyNode, const DtRwVariableBindings& fromBindings) const;
53  virtual void updateAssemblyPropertiesInt(DtAssembliesReaderWriter::RwRootNode* pAssemblyNode, std::vector<std::string>& keywords, const DtRwVariableBindings& fromBindings) const;
54  virtual void updateAssemblyPropertiesReal(DtAssembliesReaderWriter::RwRootNode* pAssemblyNode, std::vector<std::string>& keywords, const DtRwVariableBindings& fromBindings) const;
55  virtual void updateAssemblySingleProperty(DtAssembliesReaderWriter::RwRootNode* pAssemblyNode, const std::string& sAttributeType, const DtReaderWriter* pRW) const;
56 
57 
58 protected slots:
59  virtual void onCopyAsAssembly();
60 
61 public:
63 };
64 
65 
virtual void updateAssemblySingleVariables(DtAssembliesReaderWriter::RwRootNode *pAssemblyNode, const DtRwVariableBindings &fromBindings) const
Helper functions for making assembly from unit parameters.
virtual void updateAssemblyCountedAttributes(DtAssembliesReaderWriter::RwRootNode *pAssemblyNode, const std::string &sAttributeType, const DtRwPropertiesMap *pRwMap) const
Helper functions for making assembly from unit parameters.
virtual void setFromParameters(const std::vector< DtReaderWriter * > &parentRw)
Overridden to add a button.
Definition: rwVariableBindingsList.h:16
virtual void updateAssemblyPropertiesReal(DtAssembliesReaderWriter::RwRootNode *pAssemblyNode, std::vector< std::string > &keywords, const DtRwVariableBindings &fromBindings) const
virtual void makeNewAssembly(const std::string &sAssemblyKeyword, const std::string &sGuiLabel, const DtModelSetEntry *pModelSetEntry) const
Make an assembly.
QPushButton * myCopyAsAssembly
Definition: uiCustomAggregateElements.h:62
Definition: uiCustomAggregateElements.h:15
Definition: readerWriter.h:85
Definition: assembliesReaderWriter.h:31
Definition: uiAggregateElements.h:99
virtual void updateExistingAssembly(const std::string &sAssemblyKeyword, const std::string &sGuiLabel, const DtModelSetEntry *pModelSetEntry, DtAssembliesReaderWriter::RwRootNode *pAssemblyNode) const
Update an assembly.
ReaderWriter object that maintains a list of reader-writer variable bindings. It keeps a list of name...
Definition: rwVariableBindings.h:27
Definition: modelSetEntry.h:34
CustomAggregateAssembliesElement(makVrv::DtDe &)
Constructor.
Acts as a map for properties. A map is a definition that has a key and a prototype, with values being the key and prototype pair. The key can only be a string (DtRwStringType), int (DtRwIntType, DtRwInt8Type, DtRwInt16Type, DtRwInt32Type), or real (DtRwRealType, DtRwReal32Type, DtRwReal64Type).
Definition: rwPropertiesMap.h:41
static DtUiElement * CreatorFunction(makVrv::DtDe &)
virtual void updateSystems(DtAssembliesReaderWriter::RwRootNode *pAssemblyNode, const DtRwVariableBindingsList &fromBindingsList) const
Helper functions for making assembly from unit parameters.
virtual void updateEquipment(DtAssembliesReaderWriter::RwRootNode *pAssemblyNode, const DtRwPropertiesMap *pRwMap) const
Helper functions for making assembly from unit parameters.
virtual ~CustomAggregateAssembliesElement()
Destructor.
virtual void updateAssemblySingleProperty(DtAssembliesReaderWriter::RwRootNode *pAssemblyNode, const std::string &sAttributeType, const DtReaderWriter *pRW) const
Helper functions for making assembly from unit parameters.
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
virtual void updateAssemblyPropertiesInt(DtAssembliesReaderWriter::RwRootNode *pAssemblyNode, std::vector< std::string > &keywords, const DtRwVariableBindings &fromBindings) const
void updateAssemblySingleVariableValue(const DtString &variableName) const
Base class of the ui element class chain. Properties available through designer for all ui elements a...
Definition: uiElement.h:183

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)