34 : passratio_(rf.passratio_) {}
46 static const char* typeStr();
47 static const char* ratioStr();
56 #define mSimpPosFilterDefFnsBase \ 57 const char* factoryKeyword() const { return type(); } \ 58 virtual const char* type() const { return typeStr(); } \ 59 virtual bool includes(const Coord&,float z=1e30) const { return drawRes(); } \ 60 static void initClass() 62 #define mSimpPosFilterDefFns3D(clssnm) \ 63 virtual bool includes(const BinID&,float z=1e30) const { return drawRes(); } \ 64 virtual bool is2D() const { return false; } \ 65 virtual Filter* clone() const { return new clssnm##Filter3D(*this); } \ 66 static Filter3D* create() { return new clssnm##Filter3D; } \ 67 mSimpPosFilterDefFnsBase 69 #define mSimpPosFilterDefFns2D(clssnm) \ 70 virtual bool includes(int,float z=1e30,int nr=0) const { return drawRes(); } \ 71 virtual bool is2D() const { return false; } \ 72 virtual Filter* clone() const { return new clssnm##Filter2D(*this); } \ 73 static Filter2D* create() { return new clssnm##Filter2D; } \ 74 mSimpPosFilterDefFnsBase 114 : each_(2), seqnr_(0) {}
116 : each_(sf.each_), seqnr_(sf.seqnr_) {}
127 static const char* typeStr();
128 static const char* eachStr();
134 bool drawRes()
const;
#define mExpClass(module)
Definition: commondefs.h:160
void reset()
Definition: posfilterstd.h:37
virtual float estRatio(const Provider &) const
Definition: posfilterstd.h:42
Passes each nth position.
Definition: posfilterstd.h:109
Provides a series of positions; can also be used for subselection.
Definition: posprovider.h:33
float passratio_
Definition: posfilterstd.h:44
virtual float estRatio(const Provider &) const
Definition: posfilterstd.h:123
FixedString Random()
Definition: keystrs.h:106
int seqnr_
Definition: posfilterstd.h:132
Passes each nth position (2D).
Definition: posfilterstd.h:156
RandomFilter(const RandomFilter &rf)
Definition: posfilterstd.h:33
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
SubsampFilter(const SubsampFilter &sf)
Definition: posfilterstd.h:115
Provides a filter related to 3D data.
Definition: posfilter.h:79
Passes a percentage of the positions (3D).
Definition: posfilterstd.h:81
Decides whether a given position should be included.
Definition: posfilter.h:45
Passes a percentage of the positions.
Definition: posfilterstd.h:27
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
Class that can execute a task.
Definition: task.h:169
RandomFilter()
Definition: posfilterstd.h:31
Position.
Definition: commontypes.h:42
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
#define mSimpPosFilterDefFns2D(clssnm)
Definition: posfilterstd.h:69
Provides a filter related to 2D seismic data.
Definition: posfilter.h:98
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Passes each nth position (3D).
Definition: posfilterstd.h:142
void reset()
Definition: posfilterstd.h:118
#define mSimpPosFilterDefFns3D(clssnm)
Definition: posfilterstd.h:62
Passes a percentage of the positions (2D).
Definition: posfilterstd.h:95
SubsampFilter()
Definition: posfilterstd.h:113
bool initialize(TaskRunner *tr=0)
Definition: posfilterstd.h:36
int each_
Definition: posfilterstd.h:125