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

Public Member Functions

 ossimOgrGdalLayerNode (const ossimDrect &bounds)
 
bool intersects (const ossimDrect &rect) const
 
bool intersects (double minX, double minY, double maxX, double maxY) const
 
void getIdList (std::list< long > &idList, const ossimDrect &aoi) const
 

Public Attributes

std::vector< ossimOgrGdalFeatureNodetheFeatureList
 
ossimDrect theBoundingRect
 

Detailed Description

Definition at line 149 of file ossimGdalOgrVectorAnnotation.cpp.

Constructor & Destructor Documentation

◆ ossimOgrGdalLayerNode()

ossimOgrGdalLayerNode::ossimOgrGdalLayerNode ( const ossimDrect bounds)
inline

Definition at line 152 of file ossimGdalOgrVectorAnnotation.cpp.

153  : theBoundingRect(bounds)
154  {
155  }

Member Function Documentation

◆ getIdList()

void ossimOgrGdalLayerNode::getIdList ( std::list< long > &  idList,
const ossimDrect aoi 
) const

Definition at line 171 of file ossimGdalOgrVectorAnnotation.cpp.

References ossimDrect::completely_within(), intersects(), theBoundingRect, and theFeatureList.

173 {
174  if(!intersects(aoi))
175  {
176  return;
177  }
179  {
180  for(ossim_uint32 i = 0; i < theFeatureList.size(); ++i)
181  {
182  idList.push_back(theFeatureList[i].theId);
183  }
184  }
185  else
186  {
187  for(ossim_uint32 i = 0; i < theFeatureList.size(); ++i)
188  {
189  if(theFeatureList[i].intersects(aoi))
190  {
191  idList.push_back(theFeatureList[i].theId);
192  }
193  }
194  }
195 }
std::vector< ossimOgrGdalFeatureNode > theFeatureList
bool intersects(const ossimDrect &rect) const
bool completely_within(const ossimDrect &rect) const
Definition: ossimDrect.cpp:321
unsigned int ossim_uint32

◆ intersects() [1/2]

bool ossimOgrGdalLayerNode::intersects ( const ossimDrect rect) const
inline

Definition at line 156 of file ossimGdalOgrVectorAnnotation.cpp.

References ossimDrect::intersects(), and theBoundingRect.

Referenced by getIdList().

157  {
158  return theBoundingRect.intersects(rect);
159  }
bool intersects(const ossimDrect &rect) const
Definition: ossimDrect.cpp:289

◆ intersects() [2/2]

bool ossimOgrGdalLayerNode::intersects ( double  minX,
double  minY,
double  maxX,
double  maxY 
) const
inline

Definition at line 160 of file ossimGdalOgrVectorAnnotation.cpp.

References ossimDrect::intersects(), and theBoundingRect.

162  {
163  return theBoundingRect.intersects(ossimDrect(minX, minY, maxX, maxY));
164  }
bool intersects(const ossimDrect &rect) const
Definition: ossimDrect.cpp:289

Member Data Documentation

◆ theBoundingRect

ossimDrect ossimOgrGdalLayerNode::theBoundingRect

Definition at line 169 of file ossimGdalOgrVectorAnnotation.cpp.

Referenced by getIdList(), and intersects().

◆ theFeatureList

std::vector<ossimOgrGdalFeatureNode> ossimOgrGdalLayerNode::theFeatureList

Definition at line 167 of file ossimGdalOgrVectorAnnotation.cpp.

Referenced by getIdList().


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