te::vp::SegmentInfo Class Reference

#include <CommonDataStructures.h>

Public Member Functions

SegmentInfoclone () const
 Gets the segment start coordinate. More...
 
const te::gm::Coord2DgetCoord1 () const
 Gets the segment end coordinate. More...
 
const te::gm::Coord2DgetCoord2 () const
 Gets the segment envelope. More...
 
const te::gm::EnvelopegetEnvelope () const
 Gets the geometry index. More...
 
std::size_t getGeometryIndex () const
 Sets the geometry index. More...
 
 SegmentInfo (const te::gm::Coord2D &coord1, const te::gm::Coord2D &coord2, const te::gm::Envelope &envelope, std::size_t geometryIndex)
 Constructor. More...
 
void setGeometryIndex (std::size_t geometryIndex)
 
virtual ~SegmentInfo ()
 Clones the SegmentInfo. More...
 

Private Attributes

te::gm::Coord2D m_coord1
 
te::gm::Coord2D m_coord2
 The segment start coordinate. More...
 
te::gm::Envelope m_envelope
 The segment end coordinate. More...
 
std::size_t m_geometryIndex
 The segment envelope. More...
 

Detailed Description

Definition at line 230 of file CommonDataStructures.h.

Constructor & Destructor Documentation

◆ SegmentInfo()

te::vp::SegmentInfo::SegmentInfo ( const te::gm::Coord2D coord1,
const te::gm::Coord2D coord2,
const te::gm::Envelope envelope,
std::size_t  geometryIndex 
)

Constructor.

Parameters
coord1The segment start coordinate
coord2The segment end coordinate
evenlopeThe segment envelope
polygonIndexThe index of the polygon from which this segment came from Destructor

◆ ~SegmentInfo()

virtual te::vp::SegmentInfo::~SegmentInfo ( )
virtual

Clones the SegmentInfo.

Member Function Documentation

◆ clone()

SegmentInfo* te::vp::SegmentInfo::clone ( ) const

Gets the segment start coordinate.

◆ getCoord1()

const te::gm::Coord2D& te::vp::SegmentInfo::getCoord1 ( ) const

Gets the segment end coordinate.

◆ getCoord2()

const te::gm::Coord2D& te::vp::SegmentInfo::getCoord2 ( ) const

Gets the segment envelope.

◆ getEnvelope()

const te::gm::Envelope& te::vp::SegmentInfo::getEnvelope ( ) const

Gets the geometry index.

◆ getGeometryIndex()

std::size_t te::vp::SegmentInfo::getGeometryIndex ( ) const

Sets the geometry index.

◆ setGeometryIndex()

void te::vp::SegmentInfo::setGeometryIndex ( std::size_t  geometryIndex)

Member Data Documentation

◆ m_coord1

te::gm::Coord2D te::vp::SegmentInfo::m_coord1
private

Definition at line 266 of file CommonDataStructures.h.

◆ m_coord2

te::gm::Coord2D te::vp::SegmentInfo::m_coord2
private

The segment start coordinate.

Definition at line 267 of file CommonDataStructures.h.

◆ m_envelope

te::gm::Envelope te::vp::SegmentInfo::m_envelope
private

The segment end coordinate.

Definition at line 268 of file CommonDataStructures.h.

◆ m_geometryIndex

std::size_t te::vp::SegmentInfo::m_geometryIndex
private

The segment envelope.

Definition at line 269 of file CommonDataStructures.h.


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