OpendTect-6_4  6.4
Classes | Macros | Functions
linerectangleclipper.h File Reference
Include dependency graph for linerectangleclipper.h:

Go to the source code of this file.

Classes

class  LineRectangleClipper< T >
 Clips a line between two points by a rectangle. The line may be completely outside, completely inside or partially inside. If partially inside, new endpoints are calculated. More...
 

Macros

#define mBoundaryClip(delta, offset)
 
#define mAdjustPoint(which)
 

Functions

template<class T >
void clipPolyLine (const Geom::Rectangle< T > &rect, const TypeSet< Geom::Point2D< T > > &polyline, ObjectSet< TypeSet< Geom::Point2D< T > > > &result)
 

Macro Definition Documentation

#define mAdjustPoint (   which)
Value:
{ \
Geom::Point2D<T> newpoint; \
newpoint.x = start.x + castDouble2T( dx * t##which ); \
newpoint.y = start.y + castDouble2T( dy * t##which ); \
which##changed_ = which##_ != newpoint; \
which##_ = newpoint; \
}
#define mBoundaryClip (   delta,
  offset 
)
Value:
{ \
if ( delta ) \
{ \
double tnew = (double) (offset) / (delta); \
if ( (delta) < 0 ) \
{ \
if ( tnew > tstop ) return; \
if ( tnew > tstart ) tstart = tnew; \
} \
else \
{ \
if ( tnew < tstart ) return; \
if ( tnew < tstop ) tstop = tnew; \
} \
} \
else \
if ( (offset) < 0 ) return; \
}
if(!noudf_ &&(mIsUdf(inpval)))
Definition: arrayndalgo.h:1662

Function Documentation

template<class T >
void clipPolyLine ( const Geom::Rectangle< T > &  rect,
const TypeSet< Geom::Point2D< T > > &  polyline,
ObjectSet< TypeSet< Geom::Point2D< T > > > &  result 
)
inline

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