OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimVpfExtent.cpp
Go to the documentation of this file.
1 /*
2  * Copyright 1994, 1995 Vectaport Inc., Cartoactive Systems
3  *
4  * Permission to use, copy, modify, distribute, and sell this software and
5  * its documentation for any purpose is hereby granted without fee, provided
6  * that the above copyright notice appear in all copies and that both that
7  * copyright notice and this permission notice appear in supporting
8  * documentation, and that the names of the copyright holders not be used in
9  * advertising or publicity pertaining to distribution of the software
10  * without specific, written prior permission. The copyright holders make
11  * no representations about the suitability of this software for any purpose.
12  * It is provided "as is" without express or implied warranty.
13  *
14  * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
15  * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
16  * IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL,
17  * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
18  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
19  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
20  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21  *
22  */
23 
25 #include <ossim/base/ossimCommon.h>
26 #include <ossim/vec/vpf.h>
27 
28 /*****************************************************************************/
29 
31  const ossimVpfExtent& data)
32 {
33  out << "x1: " << data.theExtentType.x1 << endl
34  << "y1: " << data.theExtentType.y1 << endl
35  << "x2: " << data.theExtentType.x2 << endl
36  << "y2: " << data.theExtentType.y2;
37 
38  return out;
39 }
40 
41 
42 ossimVpfExtent::ossimVpfExtent (double x1, double y1, double x2, double y2)
43 {
44  this->theExtentType.x1 = x1;
45  this->theExtentType.y1 = y1;
46  this->theExtentType.x2 = x2;
47  this->theExtentType.y2 = y2;
48 }
49 
51 {
52  theExtentType.x1 = 0.0;
53  theExtentType.y1 = 0.0;
54  theExtentType.x2 = 0.0;
55  theExtentType.y2 = 0.0;
56 }
57 
59 {
60  theExtentType.x1 = etype.x1;
61  theExtentType.y1 = etype.y1;
62  theExtentType.x2 = etype.x2;
63  theExtentType.y2 = etype.y2;
64 }
65 
68 }
69 
72 }
73 
74 int ossimVpfExtent::within (double x, double y) {
76 }
77 
79 {
81 
86 
87  return m;
88 }
ossim_uint32 x
T max(T a, T b)
Definition: ossimCommon.h:236
int within(double x, double y)
ossim_uint32 y
int contained(ossimVpfExtent &extent2)
VPF_BOOLEAN contained(extent_type extent1, extent_type extent2)
ossimVpfExtent operator+(const ossimVpfExtent &b) const
int completely_within(ossimVpfExtent &extent2)
float x2
Definition: vpfview.h:56
float y2
Definition: vpfview.h:56
T min(T a, T b)
Definition: ossimCommon.h:203
VPF_BOOLEAN fwithin(float x, float y, extent_type extent)
float x1
Definition: vpfview.h:56
extent_type theExtentType
float y1
Definition: vpfview.h:56
ostream & operator<<(ostream &out, const ossimVpfExtent &data)
int completely_within(extent_type extent1, extent_type extent2)
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23