OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Protected Attributes | Friends | List of all members
ossimVpfExtent Class Reference

#include <ossimVpfExtent.h>

Public Member Functions

 ossimVpfExtent (double x1, double y1, double x2, double y2)
 
 ossimVpfExtent ()
 
 ossimVpfExtent (const extent_type &etype)
 
int contained (ossimVpfExtent &extent2)
 
int completely_within (ossimVpfExtent &extent2)
 
int within (double x, double y)
 
ossimVpfExtent operator+ (const ossimVpfExtent &b) const
 

Protected Attributes

extent_type theExtentType
 

Friends

ostream & operator<< (ostream &out, const ossimVpfExtent &data)
 

Detailed Description

Definition at line 30 of file ossimVpfExtent.h.

Constructor & Destructor Documentation

◆ ossimVpfExtent() [1/3]

ossimVpfExtent::ossimVpfExtent ( double  x1,
double  y1,
double  x2,
double  y2 
)

Definition at line 42 of file ossimVpfExtent.cpp.

References theExtentType, extent_type::x1, extent_type::x2, extent_type::y1, and extent_type::y2.

43 {
44  this->theExtentType.x1 = x1;
45  this->theExtentType.y1 = y1;
46  this->theExtentType.x2 = x2;
47  this->theExtentType.y2 = y2;
48 }
float x2
Definition: vpfview.h:56
float y2
Definition: vpfview.h:56
float x1
Definition: vpfview.h:56
extent_type theExtentType
float y1
Definition: vpfview.h:56

◆ ossimVpfExtent() [2/3]

ossimVpfExtent::ossimVpfExtent ( )

Definition at line 50 of file ossimVpfExtent.cpp.

References theExtentType, extent_type::x1, extent_type::x2, extent_type::y1, and extent_type::y2.

51 {
52  theExtentType.x1 = 0.0;
53  theExtentType.y1 = 0.0;
54  theExtentType.x2 = 0.0;
55  theExtentType.y2 = 0.0;
56 }
float x2
Definition: vpfview.h:56
float y2
Definition: vpfview.h:56
float x1
Definition: vpfview.h:56
extent_type theExtentType
float y1
Definition: vpfview.h:56

◆ ossimVpfExtent() [3/3]

ossimVpfExtent::ossimVpfExtent ( const extent_type etype)

Definition at line 58 of file ossimVpfExtent.cpp.

References theExtentType, extent_type::x1, extent_type::x2, extent_type::y1, and extent_type::y2.

59 {
60  theExtentType.x1 = etype.x1;
61  theExtentType.y1 = etype.y1;
62  theExtentType.x2 = etype.x2;
63  theExtentType.y2 = etype.y2;
64 }
float x2
Definition: vpfview.h:56
float y2
Definition: vpfview.h:56
float x1
Definition: vpfview.h:56
extent_type theExtentType
float y1
Definition: vpfview.h:56

Member Function Documentation

◆ completely_within()

int ossimVpfExtent::completely_within ( ossimVpfExtent extent2)

Definition at line 70 of file ossimVpfExtent.cpp.

References completely_within(), and theExtentType.

70  {
72 }
extent_type theExtentType
int completely_within(extent_type extent1, extent_type extent2)

◆ contained()

int ossimVpfExtent::contained ( ossimVpfExtent extent2)

Definition at line 66 of file ossimVpfExtent.cpp.

References contained(), and theExtentType.

66  {
68 }
VPF_BOOLEAN contained(extent_type extent1, extent_type extent2)
extent_type theExtentType

◆ operator+()

ossimVpfExtent ossimVpfExtent::operator+ ( const ossimVpfExtent b) const

◆ within()

int ossimVpfExtent::within ( double  x,
double  y 
)

Definition at line 74 of file ossimVpfExtent.cpp.

References fwithin(), theExtentType, x, and y.

74  {
76 }
ossim_uint32 x
ossim_uint32 y
VPF_BOOLEAN fwithin(float x, float y, extent_type extent)
extent_type theExtentType

Friends And Related Function Documentation

◆ operator<<

ostream& operator<< ( ostream &  out,
const ossimVpfExtent data 
)
friend

Definition at line 30 of file ossimVpfExtent.cpp.

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 }
float x2
Definition: vpfview.h:56
float y2
Definition: vpfview.h:56
float x1
Definition: vpfview.h:56
extent_type theExtentType
float y1
Definition: vpfview.h:56

Member Data Documentation

◆ theExtentType

extent_type ossimVpfExtent::theExtentType
protected

The documentation for this class was generated from the following files: