MAK RTIspy API Documentation for HLA 1.3
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
examples
hlaBounce
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
;
51
int
myXLowerBound
;
52
int
myXUpperBound
;
53
int
myYLowerBound
;
54
int
myYUpperBound
;
55
bool
myMarkedForDeletion
;
56
};
57
58
// Map of IDs to regions
59
typedef
std::map<std::wstring, DdmRegion*>
DdmRegionMap
;
60
61
#endif
Document ID: Generated on Fri Sep 27 00:57:56 EDT 2019 from SVN revision 201708
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (
www.mak.com
)