MAK RTIspy API Documentation for HLA 1516
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
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 Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)