VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
hitZoneUiEventQVariant.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
10 
12 
13 #include <QMetaType>
14 
15 class DtRwHitZone;
16 
19 {
21  DtRwHitZone* myHitZone = nullptr;
22 
24  HitZoneColor myColor = {0.0f, 0.0f, 0.0f, 0.0f};
25 
26  DtVector myNewDimensions = DtVector::zero();
27  DtVector myNewOffset = DtVector::zero();
28 
29  bool myIsSelected = false;
30 
32  DtHitZoneUiEventData() = default;
33 
35  DtHitZoneUiEventData(DtRwHitZone* hitZone, const HitZoneColor& color, DtVector dimensions, DtVector offset, bool isSelected = false)
36  : myHitZone(hitZone)
37  , myColor(color)
38  , myNewDimensions(dimensions)
39  , myNewOffset(offset)
40  , myIsSelected(isSelected)
41  {
42  }
43 
45  DtHitZoneUiEventData(const DtHitZoneUiEventData& other) = default;
46 
48  DtHitZoneUiEventData& operator=(const DtHitZoneUiEventData& other) = default;
49 
51  bool operator==(const DtHitZoneUiEventData& other) const
52  { return myHitZone == other.myHitZone;
53  }
54 
56  bool operator!=(const DtHitZoneUiEventData& other) const
57  {
58  return !(*this == other);
59  }
60 };
61 
bool operator==(const DtHitZoneUiEventData &other) const
Equality operator.
Definition: hitZoneUiEventQVariant.h:51
DtVector myNewDimensions
Definition: hitZoneUiEventQVariant.h:26
namespace makVrv
Definition: vrfHitZoneVisualizer.h:31
HitZoneColor myColor
Color for hit zone visualization.
Definition: hitZoneUiEventQVariant.h:24
DtRwHitZone * myHitZone
Pointer to the hit zone (not owned by this struct)
Definition: hitZoneUiEventQVariant.h:21
Q_DECLARE_METATYPE(DtArticulatedPartEditDialogShdPtr)
bool operator!=(const DtHitZoneUiEventData &other) const
Inequality operator.
Definition: hitZoneUiEventQVariant.h:56
DtHitZoneUiEventData()=default
Default constructor.
DtHitZoneUiEventData(DtRwHitZone *hitZone, const HitZoneColor &color, DtVector dimensions, DtVector offset, bool isSelected=false)
Constructor with parameters.
Definition: hitZoneUiEventQVariant.h:35
bool myIsSelected
Definition: hitZoneUiEventQVariant.h:29
Struct to hold hit zone visualization data for use with QVariant.
Definition: hitZoneUiEventQVariant.h:18
DtVector myNewOffset
Definition: hitZoneUiEventQVariant.h:27
Defines configuration for a hit zone within the entity bounding volume. The hit zone is a box axis al...
Definition: rwHitZone.h:23
voidpf uLong offset
Definition: ioapi.h:42
DtHitZoneUiEventData & operator=(const DtHitZoneUiEventData &other)=default
Assignment operator.

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)