OpendTect-6_4  6.4
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PolyLineND< T > Class Template Reference

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

Inheritance diagram for PolyLineND< T >:
[legend]

Public Member Functions

 PolyLineND (bool closed=false)
 
 PolyLineND (const TypeSet< T > &coords, bool closed=false)
 
void setClosed (bool yn)
 
bool isClosed () const
 
double distTo (const T &pt, int *segmentidxptr=0, double *fractionptr=0) const
 
closestPoint (const T &pt) const
 
double arcLength (int idx, double frac=0.0) const
 
double arcLength (const T &pt) const
 
double arcLength () const
 
getPoint (int idx, double frac=0.0) const
 
getPoint (double arclen) const
 
- Public Member Functions inherited from TypeSet< T >
 TypeSet ()
 
 TypeSet (int nr, T typ)
 
 TypeSet (const T *t, int nr)
 
 TypeSet (const TypeSet< T > &t)
 
- Public Member Functions inherited from TypeSetBase< T, int >
virtual ~TypeSetBase ()
 
TypeSetBase< T, int > & operator= (const TypeSetBase< T, int > &ts)
 
size_type size () const
 
virtual int64_t nrItems () const
 
virtual bool setSize (size_type, T val=T())
 
virtual bool setCapacity (size_type sz, bool withmargin)
 
virtual size_type getCapacity () const
 
void setAll (T)
 
void replace (T, T)
 
T & operator[] (size_type)
 
const T & operator[] (size_type) const
 
T & first ()
 
const T & first () const
 
T & last ()
 
const T & last () const
 
virtual bool validIdx (int64_t) const
 
virtual size_type indexOf (T, bool forward=true, size_type start=-1) const
 
bool isPresent (const T &) const
 
size_type count (const T &) const
 
TypeSetBase< T, int > & add (const T &)
 
virtual void insert (size_type, const T &)
 
bool push (const T &)
 
pop ()
 
TypeSetBase< T, int > & operator+= (const T &t)
 
virtual bool append (const T *, size_type)
 
virtual bool append (const TypeSetBase< T, int > &)
 
virtual bool addIfNew (const T &)
 
virtual TypeSetBase< T, int > & copy (const T *, size_type)
 
virtual TypeSetBase< T, int > & copy (const TypeSetBase< T, int > &)
 
virtual void createUnion (const TypeSetBase< T, int > &)
 
virtual void createIntersection (const TypeSetBase< T, int > &)
 Only keeps common items. More...
 
virtual void createDifference (const TypeSetBase< T, int > &, bool must_preserve_order=false)
 Removes all items present in other set. More...
 
virtual void swap (int64_t, int64_t)
 
virtual void move (size_type from, size_type to)
 
virtual void getReOrdered (const size_type *, TypeSetBase< T, int > &)
 Fills as per the given array of indexes. More...
 
virtual void reverse ()
 
virtual void erase ()
 
virtual void removeSingle (size_type, bool preserver_order=true)
 
TypeSetBase< T, int > & operator-= (const T &)
 
virtual void removeRange (size_type from, size_type to)
 
virtual T * arr ()
 3rd party access More...
 
virtual const T * arr () const
 
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 TypeSetBase< T, int >
 TypeSetBase ()
 
 TypeSetBase (size_type nr, T typ)
 
 TypeSetBase (const T *, size_type nr)
 
 TypeSetBase (const TypeSetBase< T, size_type > &)
 
virtual T * gtArr () const
 

Protected Attributes

bool closed_
 
- Protected Attributes inherited from TypeSetBase< T, int >
VectorAccess< T, int > vec_
 

Additional Inherited Members

- Public Types inherited from TypeSetBase< T, int >
typedef int size_type
 
typedef T object_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

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

Member Function Documentation

template<class T >
double PolyLineND< T >::arcLength ( int  idx,
double  frac = 0.0 
) const
inline
template<class T >
double PolyLineND< T >::arcLength ( const T &  pt) const
inline
template<class T >
double PolyLineND< T >::arcLength ( ) const
inline
template<class T >
T PolyLineND< T >::closestPoint ( const T &  pt) const
inline
template<class T >
double PolyLineND< T >::distTo ( const T &  pt,
int *  segmentidxptr = 0,
double *  fractionptr = 0 
) const
inline
template<class T >
T PolyLineND< T >::getPoint ( int  idx,
double  frac = 0.0 
) const
inline
template<class T >
T PolyLineND< T >::getPoint ( double  arclen) const
inline
template<class T >
bool PolyLineND< T >::isClosed ( ) const
inline
template<class T >
int PolyLineND< T >::nextIdx ( int  idx) const
inlineprotected
template<class T >
void PolyLineND< T >::setClosed ( bool  yn)
inline

Member Data Documentation

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

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