VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
hitZoneModificationWithModelDialog.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 #pragma once
7 #include "vrfHitZoneVisualizer.h"
9 
10 
11 #include <QDialog>
12 #include <QDialogButtonBox>
13 #include <QLineEdit>
14 #include <QRadioButton>
15 #include <QSpinBox>
16 #include <QTreeWidget>
17 #include <QComboBox>
18 #include <QPushButton>
19 #include <QLabel>
20 
22 #include <vrfutil/hitZoneId.h>
23 
24 
25 class DtRwHitZone;
26 class DtRwHitZoneList;
27 
29 {
30  Q_OBJECT
31 
32 public:
34  makVrf::DtEntityFacadeCollection*, DtRwHitZoneList*, DtEntityType, makVrv::DtDe&, QWidget* parent);
35 
36  const std::vector<DtRwHitZone*>& hitZonesToBeAdded() const { return myHitZonesToBeAddedList; }
37 
38  bool refreshList();
39  bool setUpList();
40 protected slots:
41  virtual void accept() override;
42  virtual void reject() override;
43  virtual void onZoneIdChanged();
44  virtual void onItemDoubleClicked(QTreeWidgetItem* item, int column);
45 
46 signals:
47  void signal_hitZoneLocationOrSizeChanged(
48  DtRwHitZone* zone, DtVector location, DtVector dimensions, HitZoneColor color, bool);
49  void signal_hitZoneAlterFinished();
50 
51 protected:
52  void applyChanges();
53  void populateHitZonesToBeAddedFromTreeWidget(QTreeWidget* treeWidget);
54  void populateHitZoneFromManualEntry();
55  int getZoneFunctionValue();
56  bool hitZoneIdAlreadyExists(DtHitZoneId);
57  bool getDamageZoneIdInts(makVrv::DtModelSemanticsMapper::States::Id, int&, int&);
58 
59  bool fillOutHitZoneWithModel(DtRwHitZone*);
60  bool fillOutDefaultHitZone(DtRwHitZone*);
61 
65 
67  QRadioButton* myTopRadioButton;
68  QRadioButton* myBottomRadioButton;
69 
73 
74  DtEntityType myType;
75 
77 
78  std::vector<DtRwHitZone*> myHitZonesToBeAddedList;
79 
80  QDialogButtonBox* myButtonBox;
81 };
DtRwHitZoneList * myExistingHitZoneList
Definition: hitZoneModificationWithModelDialog.h:63
QLabel * myZoneIdInvalidIcon
Definition: hitZoneModificationWithModelDialog.h:71
makVrv::DtDe & myDe
Definition: hitZoneModificationWithModelDialog.h:64
Contains the makVrf::DtEntityFacadeCollection class declaration.
namespace makVrv
Definition: vrfHitZoneVisualizer.h:31
QDialogButtonBox * myButtonBox
Definition: hitZoneModificationWithModelDialog.h:80
QTreeWidget * myHitZonesInModelList
Definition: hitZoneModificationWithModelDialog.h:66
ID value for a hit zone. Consists of a zone function (weapon, sensor, movement, etc.) and a zone number. Includes functions for packing/unpacking into an int.
Definition: hitZoneId.h:21
QRadioButton * myBottomRadioButton
Definition: hitZoneModificationWithModelDialog.h:68
Contains makVrv::DtModelSemanticsMapper class.
std::vector< DtRwHitZone * > myHitZonesToBeAddedList
Definition: hitZoneModificationWithModelDialog.h:78
makVrf::DtEntityFacadeCollection * myFacades
Definition: hitZoneModificationWithModelDialog.h:62
DtEntityType myType
Definition: hitZoneModificationWithModelDialog.h:74
Definition: hitZoneModificationWithModelDialog.h:28
Will create entity facades for each realized model set and manage them all.
Definition: entityFacadeCollection.h:67
const std::vector< DtRwHitZone * > & hitZonesToBeAdded() const
Definition: hitZoneModificationWithModelDialog.h:36
QLabel * myZoneIdValueLabel
Definition: hitZoneModificationWithModelDialog.h:72
QRadioButton * myTopRadioButton
Definition: hitZoneModificationWithModelDialog.h:67
QComboBox * myZoneFunctionCombo
Definition: hitZoneModificationWithModelDialog.h:70
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: rwHitZoneList.h:11
Defines configuration for a hit zone within the entity bounding volume. The hit zone is a box axis al...
Definition: rwHitZone.h:23
Id
Definition: DtModelSemanticsMapper.h:40
QSpinBox * myZoneIdNumberSpinbox
Definition: hitZoneModificationWithModelDialog.h:76
#define DT_DLL_simulationObjectEditorimpl
This file is used to determine how to build.
Definition: simulationObjectEditorImplDefines.h:33

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)