OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Types | Public Member Functions | Public Attributes | List of all members
ossimRangeDome Struct Reference

#include <ossimRangeDomeTileSource.h>

Public Types

enum  Classification {
  UNASSIGNED = 0, FRIENDLY_UNSPECIFIED = 1, FRIENDLY_LEVEL_1 = 2, FRIENDLY_LEVEL_2 = 3,
  FRIENDLY_LEVEL_3 = 4, THREAT_UNSPECIFIED = 101, THREAT_LEVEL_1 = 102, THREAT_LEVEL_2 = 103,
  THREAT_LEVEL_3 = 104
}
 

Public Member Functions

 ossimRangeDome (std::vector< ossimString > &tokens)
 
ossimGrect boundingRect () const
 

Public Attributes

bool valid
 
ossim_uint32 id
 
ossimGpt centerGpt
 
ossimDpt centerIpt
 
double radiusMeters
 
ossim_uint32 radiusPixelsSq
 
Classification classification
 
double startAz
 
double endAz
 
ossimString description
 

Detailed Description

Definition at line 22 of file ossimRangeDomeTileSource.h.

Member Enumeration Documentation

◆ Classification

Constructor & Destructor Documentation

◆ ossimRangeDome()

ossimRangeDome::ossimRangeDome ( std::vector< ossimString > &  tokens)

Definition at line 28 of file ossimRangeDomeTileSource.cpp.

References centerGpt, classification, description, endAz, ossimGpt::hgt, ossimGpt::lat, ossimGpt::lon, radiusMeters, size, startAz, ossimString::trim(), and valid.

29 : valid (false),
30  id (0),
31  radiusMeters (0),
32  radiusPixelsSq (0),
34  startAz (0),
35  endAz (0)
36 {
37  if ((tokens.size() < 6) || (tokens[0].size() && (tokens[0].chars()[0] == '#')))
38  return;
39 
40  ossim_uint32 i = 0;
41  id = tokens[i++].toUInt32();
42  centerGpt.lat = tokens[i++].toDouble();
43  centerGpt.lon = tokens[i++].toDouble();
44  centerGpt.hgt = tokens[i++].toDouble();
45  radiusMeters = tokens[i++].toDouble();
46  classification = (Classification) tokens[i++].toInt32();
47  valid = true;
48 
49  if (tokens.size() >= 8)
50  {
51  startAz = tokens[i++].toDouble();
52  endAz = tokens[i++].toDouble();
53  if (endAz == 360.0)
54  endAz = 0.0;
55  }
56 
57  if ( tokens.size()-i )
58  {
59  description = tokens[i];
60  description.trim();
61  }
62 }
ossim_float64 hgt
Height in meters above the ellipsiod.
Definition: ossimGpt.h:274
Classification classification
yy_size_t size
ossim_float64 lon
Definition: ossimGpt.h:266
unsigned int ossim_uint32
ossimString trim(const ossimString &valueToTrim=ossimString(" \\)) const
this will strip lead and trailing character passed in.
ossim_float64 lat
Definition: ossimGpt.h:265

Member Function Documentation

◆ boundingRect()

ossimGrect ossimRangeDome::boundingRect ( ) const

Definition at line 64 of file ossimRangeDomeTileSource.cpp.

References centerGpt, ossimGpt::lat, ossimGpt::lon, ossimGpt::metersPerDegree(), radiusMeters, ossimDpt::x, and ossimDpt::y.

65 {
67  double dlat = radiusMeters/scale.y;
68  double dlon = radiusMeters/scale.x;
69  return ossimGrect(centerGpt.lat+dlat, centerGpt.lon-dlon,
70  centerGpt.lat-dlat, centerGpt.lon+dlon);
71 }
double y
Definition: ossimDpt.h:165
ossim_float64 lon
Definition: ossimGpt.h:266
double x
Definition: ossimDpt.h:164
ossimDpt metersPerDegree() const
Definition: ossimGpt.cpp:498
ossim_float64 lat
Definition: ossimGpt.h:265

Member Data Documentation

◆ centerGpt

ossimGpt ossimRangeDome::centerGpt

Definition at line 42 of file ossimRangeDomeTileSource.h.

Referenced by boundingRect(), and ossimRangeDome().

◆ centerIpt

ossimDpt ossimRangeDome::centerIpt

Definition at line 43 of file ossimRangeDomeTileSource.h.

◆ classification

Classification ossimRangeDome::classification

Definition at line 46 of file ossimRangeDomeTileSource.h.

Referenced by ossimRangeDome().

◆ description

ossimString ossimRangeDome::description

Definition at line 49 of file ossimRangeDomeTileSource.h.

Referenced by ossimRangeDome().

◆ endAz

double ossimRangeDome::endAz

Definition at line 48 of file ossimRangeDomeTileSource.h.

Referenced by ossimRangeDome().

◆ id

ossim_uint32 ossimRangeDome::id

Definition at line 41 of file ossimRangeDomeTileSource.h.

◆ radiusMeters

double ossimRangeDome::radiusMeters

Definition at line 44 of file ossimRangeDomeTileSource.h.

Referenced by boundingRect(), and ossimRangeDome().

◆ radiusPixelsSq

ossim_uint32 ossimRangeDome::radiusPixelsSq

Definition at line 45 of file ossimRangeDomeTileSource.h.

◆ startAz

double ossimRangeDome::startAz

Definition at line 47 of file ossimRangeDomeTileSource.h.

Referenced by ossimRangeDome().

◆ valid

bool ossimRangeDome::valid

Definition at line 40 of file ossimRangeDomeTileSource.h.

Referenced by ossimRangeDomeTileSource::open(), and ossimRangeDome().


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