OpendTect 8.0
Loading...
Searching...
No Matches
PolyLineND< T > Class Template Reference

(Closed) sequence(s) of connected n-D coordinates. Undefined coordinates separate consecutive sequences. More...

#include <polylinend.h>

Inheritance diagram for PolyLineND< T >:
[legend]

Public Member Functions

 PolyLineND (bool closed=false)
 
 PolyLineND (const TypeSet< T > &coords, bool closed=false)
 
double arcLength () const
 
double arcLength (const T &pt) const
 
double arcLength (int idx, double frac=0.0) const
 
T closestPoint (const T &pt) const
 
double distTo (const T &pt, int *segmentidxptr=0, double *fractionptr=0) const
 
T getPoint (double arclen) const
 
T getPoint (int idx, double frac=0.0) const
 
bool isClosed () const
 
void setClosed (bool yn)
 
- Public Member Functions inherited from TypeSet< T >
 TypeSet ()
 
 TypeSet (const T *t, size_type sz)
 
 TypeSet (const TypeSet &oth)
 
 TypeSet (size_type sz, T typ)
 
 TypeSet (T typ)
 
 ~TypeSet ()
 
TypeSet * clone () const override
 
- Public Member Functions inherited from OD::ValVec< T, od_int32 >
virtual ~ValVec ()
 
ValVec & add (const T &)
 
virtual bool addIfNew (const T &)
 
virtual bool append (const T *, size_type)
 
virtual bool append (const ValVec &)
 
virtual T * arr ()
 3rd party access
 
virtual const T * arr () const
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
virtual ValVec & copy (const T *, size_type)
 
virtual ValVec & copy (const ValVec &)
 
size_type count (const T &) const
 
virtual void createDifference (const ValVec &, bool must_preserve_order=false)
 Removes all items present in other set.
 
virtual void createIntersection (const ValVec &)
 Only keeps common items.
 
virtual void createUnion (const ValVec &)
 
void emplace_back (Args &&... args)
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
void erase () override
 
std::enable_if< std::is_arithmetic< U >::value >::type fillWithIncreasingValues (U startval=0)
 
T & first ()
 
const T & first () const
 
T & get (idx_type)
 
const T & get (idx_type) const
 
virtual size_type getCapacity () const
 
idx_type getIdx (const_iterator it) const
 
idx_type getIdx (iterator it) const
 
virtual idx_type indexOf (T, bool forward=true, idx_type start=-1) const
 
virtual void insert (idx_type, const T &)
 
bool isPresent (const T &) const
 
T & last ()
 
const T & last () const
 
size_type max_size () const
 
virtual void move (idx_type from, idx_type to)
 
od_int64 nrItems () const override
 
bool operator!= (const ValVec &oth) const
 
ValVec & operator+= (const T &t)
 
ValVec & operator-= (const T &t)
 
ValVec & operator= (const ValVec &oth)
 
bool operator== (const ValVec &) const
 
T & operator[] (idx_type i)
 
const T & operator[] (idx_type i) const
 
T pop ()
 
bool push (const T &)
 
virtual void removeRange (idx_type from, idx_type to)
 
virtual void removeSingle (idx_type, bool preserver_order=true)
 
void replace (T, T)
 
void reverse () override
 
void setAll (T)
 
virtual bool setCapacity (size_type sz, bool withmargin)
 
virtual bool setSize (size_type sz, T val=T())
 
size_type size () const
 
void swap (od_int32, od_int32)
 
void swap (ValVec &oth)
 
void swapItems (od_int64 i1, od_int64 i2) override
 
virtual void useIndexes (const idx_type *)
 
bool validIdx (od_int64) const override
 
std::vector< T > & vec ()
 
const std::vector< T > & vec () const
 
- Public Member Functions inherited from OD::Set
virtual ~Set ()
 
bool isEmpty () const
 
void setEmpty ()
 

Protected Member Functions

int nextIdx (int) const
 
- Protected Member Functions inherited from OD::ValVec< T, od_int32 >
 ValVec ()
 
 ValVec (const T *, size_type sz)
 
 ValVec (const ValVec &)
 
 ValVec (size_type sz, T typ)
 
T * gtArr () const
 

Protected Attributes

bool closed_
 
- Protected Attributes inherited from OD::ValVec< T, od_int32 >
impl_type vec_
 

Additional Inherited Members

- Public Types inherited from TypeSet< T >
typedef OD::ValVec< T, od_int32 >::idx_type idx_type
 
typedef OD::ValVec< T, od_int32 >::size_type size_type
 
- Public Types inherited from OD::ValVec< T, od_int32 >
typedef impl_type::const_iterator const_iterator
 
typedef const value_type & const_reference
 
typedef size_type difference_type
 
typedef size_type idx_type
 
typedef impl_type::iterator iterator
 
typedef T object_type
 
typedef value_type & reference
 
typedef od_int32 size_type
 
typedef T value_type
 
- Static Public Member Functions inherited from OD::Set
static od_int32 maxIdx32 ()
 
static od_int64 maxIdx64 ()
 
- Protected Types inherited from OD::ValVec< T, od_int32 >
typedef VectorAccess< T, od_int32 > impl_type
 

Detailed Description

template<class T>
class PolyLineND< T >

(Closed) sequence(s) of connected n-D coordinates. Undefined coordinates separate consecutive sequences.

Constructor & Destructor Documentation

◆ PolyLineND() [1/2]

template<class T>
PolyLineND< T >::PolyLineND ( bool closed = false)
inline

◆ PolyLineND() [2/2]

template<class T>
PolyLineND< T >::PolyLineND ( const TypeSet< T > & coords,
bool closed = false )
inline

Member Function Documentation

◆ arcLength() [1/3]

template<class T>
double PolyLineND< T >::arcLength ( ) const
inline

◆ arcLength() [2/3]

template<class T>
double PolyLineND< T >::arcLength ( const T & pt) const
inline

◆ arcLength() [3/3]

template<class T>
double PolyLineND< T >::arcLength ( int idx,
double frac = 0.0 ) const
inline

◆ closestPoint()

template<class T>
T PolyLineND< T >::closestPoint ( const T & pt) const
inline

◆ distTo()

template<class T>
double PolyLineND< T >::distTo ( const T & pt,
int * segmentidxptr = 0,
double * fractionptr = 0 ) const
inline

◆ getPoint() [1/2]

template<class T>
T PolyLineND< T >::getPoint ( double arclen) const
inline

◆ getPoint() [2/2]

template<class T>
T PolyLineND< T >::getPoint ( int idx,
double frac = 0.0 ) const
inline

◆ isClosed()

template<class T>
bool PolyLineND< T >::isClosed ( ) const
inline

◆ nextIdx()

template<class T>
int PolyLineND< T >::nextIdx ( int idx) const
inlineprotected

◆ setClosed()

template<class T>
void PolyLineND< T >::setClosed ( bool yn)
inline

Member Data Documentation

◆ closed_

template<class T>
bool PolyLineND< T >::closed_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2026