te::vp::GeometryInfo Class Reference

#include <CommonDataStructures.h>

Public Member Functions

 GeometryInfo (std::size_t geometryIndex, te::gm::Geometry *geometry)
 Constructor. More...
 
 GeometryInfo (std::size_t geometryIndex, te::gm::Geometry *geometry, const te::gm::Envelope &filter)
 Constructor. More...
 
std::vector< SegmentInfogetAllSegments () const
 Gets the geometry. More...
 
const te::gm::GeometrygetGeometry () const
 Sets the geometry. This will cause the old geometry to be deleted and the index to be recreated. More...
 
std::size_t search (const te::gm::Envelope &filter, std::vector< SegmentInfo > &vecResult) const
 Gets the list of all segments of the geometry. More...
 
void setGeometry (te::gm::Geometry *geometry)
 
virtual ~GeometryInfo ()
 Searches the segments that interscepts the given filter. More...
 

Protected Attributes

GeometryInfoImpl * m_impl
 A internal pointer to the implementation of the class. This is used to avoid exporting dependencies. More...
 

Private Member Functions

void init (const te::gm::Envelope &filter)
 < Initializes the index More...
 

Detailed Description

Definition at line 272 of file CommonDataStructures.h.

Constructor & Destructor Documentation

◆ GeometryInfo() [1/2]

te::vp::GeometryInfo::GeometryInfo ( std::size_t  geometryIndex,
te::gm::Geometry geometry 
)

Constructor.

Parameters
geometrIndexThe index of this geometry in a vector. Can be zero if it is not added to a vector
geometryThe geometry to be fragmented

◆ GeometryInfo() [2/2]

te::vp::GeometryInfo::GeometryInfo ( std::size_t  geometryIndex,
te::gm::Geometry geometry,
const te::gm::Envelope filter 
)

Constructor.

Parameters
geometrIndexThe index of this geometry in a vector. Can be zero if it is not added to a vector
geometryThe geometry to be fragmented
filterThe enveope to be used as filter. Only segments intercepting the filter will be fragmented and indexed Destructor

◆ ~GeometryInfo()

virtual te::vp::GeometryInfo::~GeometryInfo ( )
virtual

Searches the segments that interscepts the given filter.

Member Function Documentation

◆ getAllSegments()

std::vector<SegmentInfo> te::vp::GeometryInfo::getAllSegments ( ) const

Gets the geometry.

◆ getGeometry()

const te::gm::Geometry* te::vp::GeometryInfo::getGeometry ( ) const

Sets the geometry. This will cause the old geometry to be deleted and the index to be recreated.

◆ init()

void te::vp::GeometryInfo::init ( const te::gm::Envelope filter)
private

< Initializes the index

◆ search()

std::size_t te::vp::GeometryInfo::search ( const te::gm::Envelope filter,
std::vector< SegmentInfo > &  vecResult 
) const

Gets the list of all segments of the geometry.

◆ setGeometry()

void te::vp::GeometryInfo::setGeometry ( te::gm::Geometry geometry)

Member Data Documentation

◆ m_impl

GeometryInfoImpl* te::vp::GeometryInfo::m_impl
protected

A internal pointer to the implementation of the class. This is used to avoid exporting dependencies.

Definition at line 313 of file CommonDataStructures.h.


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