OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimVpfExtent.h
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 #ifndef ossimVpfExtent_HEADER
24 #define ossimVpfExtent_HEADER
25 #include <iostream>
26 using namespace std;
27 #include <ossim/vec/vpf.h>
28 
29 
31 {
32 public:
33  friend ostream& operator <<(ostream& out,
34  const ossimVpfExtent& data);
35 
36  ossimVpfExtent (double x1, double y1, double x2, double y2);
38  ossimVpfExtent(const extent_type& etype);
39 
40  int contained (ossimVpfExtent& extent2);
41  int completely_within (ossimVpfExtent& extent2);
42  int within (double x, double y);
44 protected:
46 };
47 
48 #endif
ossim_uint32 x
ossim_uint32 y
VPF_BOOLEAN contained(extent_type extent1, extent_type extent2)
ostream & operator<<(ostream &out, const ossimAxes &axes)
Definition: ossimAxes.h:88
extent_type theExtentType
int completely_within(extent_type extent1, extent_type extent2)
ossimRationalNumber operator+(ossim_int32 i, ossimRationalNumber &r)
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23