MAK RTIspy API Documentation for HLA 4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
regionData.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MaK Technologies, Inc.
3 ** All rights reserved.
4 ********************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: .h,v $ $Revision: 1.2 $ $State: Exp $
7 *******************************************************************************/
8 
9 #ifndef RegionData_H_
10 #define RegionData_H_
11 
12 #include <map>
13 #include <string>
14 class QGraphicsRectItem;
15 
16 // Class with all information on a single region
17 class DdmRegion
18 {
19 public:
20 
21  DdmRegion();
22  virtual ~DdmRegion();
23 
24  // Get and set range bounds
25  int xLowerBound() const;
26  void setXLowerBound(int newXLowerBound);
27  int xUpperBound() const;
28  void setXUpperBound(int newXUpperBound);
29  int yLowerBound() const;
30  void setYLowerBound(int newYLowerBound);
31  int yUpperBound() const;
32  void setYUpperBound(int newYUpperBound);
33  void setRangeBounds(int newXLowerBound, int newYLowerBound,
34  int newXUpperBound, int newYUpperBound);
35 
36  // If true, region will be deleted by the GUI at the next update
37  bool isMarkedForDeletion() const;
38  void markForDeletion(bool mark);
39 
40  // Unique region ID (based on HLA region handle)
41  // Implemented by protocol specific derived classes
42  virtual const std::wstring& id() const = 0;
43 
44  // Pointer to the Qt item for this ball
45  QGraphicsRectItem* graphicsItem();
46  void setGraphicsItem(QGraphicsRectItem* item);
47 
48 protected:
49 
50  QGraphicsRectItem* myGraphicsItem;
56 };
57 
58 // Map of IDs to regions
59 typedef std::map<std::wstring, DdmRegion*> DdmRegionMap;
60 
61 #endif
void setYUpperBound(int newYUpperBound)
int yLowerBound() const
int xLowerBound() const
bool myMarkedForDeletion
Definition: regionData.h:55
virtual const std::wstring & id() const =0
int myXUpperBound
Definition: regionData.h:52
Definition: regionData.h:17
int myXLowerBound
Definition: regionData.h:51
int yUpperBound() const
QGraphicsRectItem * myGraphicsItem
Definition: regionData.h:50
void setGraphicsItem(QGraphicsRectItem *item)
void setXLowerBound(int newXLowerBound)
void markForDeletion(bool mark)
void setYLowerBound(int newYLowerBound)
void setXUpperBound(int newXUpperBound)
int xUpperBound() const
std::map< std::wstring, DdmRegion * > DdmRegionMap
Definition: regionData.h:59
void setRangeBounds(int newXLowerBound, int newYLowerBound, int newXUpperBound, int newYUpperBound)
int myYUpperBound
Definition: regionData.h:54
virtual ~DdmRegion()
QGraphicsRectItem * graphicsItem()
bool isMarkedForDeletion() const
int myYLowerBound
Definition: regionData.h:53

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)