VR-Vantage 3.0.3 API Documentation
Home
Modules
Namespaces
Classes
Files
Libraries
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
sensorFx
include
imageArea.h
Go to the documentation of this file.
1
2
// Copyright JRM Enterprises, Inc. 2006
3
// All rights reserved.
4
//
5
// This code is the intellectual property of JRM Enterprises, Inc.
6
// It may not be used or released as source or compiled binary form
7
// without the prior written consent of JRM Enterprises, Inc.
8
//
9
// Original Authors: Ken George
11
12
#ifndef __imageArea__
13
#define __imageArea__
14
15
class
imageArea
{
16
public
:
18
// imageArea
29
imageArea
(
int
llx
,
int
lly
,
int
urx
,
int
ury
,
30
int
width
= -1,
int
height
= -1) :
31
m_llx
(llx),
32
m_lly
(lly),
33
m_urx
(urx),
34
m_ury
(ury),
35
m_width
(
width
),
36
m_height
(
height
)
37
{
38
if
(
m_width
== -1)
m_width
=
urx
;
39
if
(
m_height
== -1)
m_height
=
ury
;
40
}
42
//imageArea
46
~imageArea
() {}
47
48
50
//llx
56
int
llx
(
void
)
const
{
return
m_llx
; }
58
//llx
63
void
llx
(
int
newllx) {
m_llx
= newllx; }
65
//lly
71
int
lly
(
void
)
const
{
return
m_lly
; }
73
//lly
78
void
lly
(
int
newlly) {
m_lly
= newlly; }
79
81
//urx
87
int
urx
(
void
)
const
{
return
m_urx
; }
89
//urx
94
void
urx
(
int
newurx) {
m_urx
= newurx; }
96
//ury
102
int
ury
(
void
)
const
{
return
m_ury
; }
104
//ury
109
void
ury
(
int
newury) {
m_ury
= newury; }
110
112
//width
118
int
width
(
void
)
const
{
return
m_width
; }
120
//width
125
void
width
(
int
newwidth) {
m_width
= newwidth; }
127
//height
133
int
height
(
void
)
const
{
return
m_height
; }
135
//height
140
void
height
(
int
newheight) {
m_height
= newheight; }
141
143
//setSubWindow
149
void
setSubWindow
(
int
subWidth,
int
subHeight){
150
m_urx
=
m_llx
+ subWidth;
151
m_ury
=
m_lly
+ subHeight;
152
}
154
//setSize
162
void
setSize
(
int
subWidth,
int
subHeight,
int
width
= -1,
int
height
= -1){
163
m_urx
=
m_llx
+ subWidth;
164
m_ury
=
m_lly
+ subHeight;
165
m_width
=
width
;
166
m_height
=
height
;
167
if
(
m_width
== -1)
m_width
=
m_urx
;
168
if
(
m_height
== -1)
m_height
=
m_ury
;
169
}
171
//imageArea
177
const
imageArea
&
operator =
(
const
imageArea
&
area
)
178
{
179
m_llx
= area.
m_llx
;
180
m_lly
= area.
m_lly
;
181
m_urx
= area.
m_urx
;
182
m_ury
= area.
m_ury
;
183
m_width
= area.
m_width
;
184
m_height
= area.
m_height
;
185
return
*
this
;
186
}
187
188
protected
:
189
int
m_llx
;
190
int
m_lly
;
191
int
m_urx
;
192
int
m_ury
;
193
int
m_width
;
194
int
m_height
;
195
};
196
197
#endif //__imageArea__
Copyright © 2005-2023 MAK Technologies. All Rights Reserved (
www.mak.com
)