OpendTect  6.3
probdenfuncdraw.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Bert
8  Date: Jan 2010
9 ________________________________________________________________________
10 
11 
12 */
13 
14 #include "algomod.h"
15 #include "probdenfunc.h"
16 
17 
23 {
24 public:
25 
27  : pdf_(p) { reset(); }
28  ~ProbDenFuncDraw();
29  void reset();
30 
31  inline int size() const { return vals_.size(); }
32  float value(int,bool redraw_if_used=true) const;
33  inline int useCount( int i ) const { return usecount_[i]; }
34 
35  const ProbDenFunc& pdf() const { return pdf_; }
36  const TypeSet<float>& vals() const { return vals_; }
37 
38 protected:
39 
40  const ProbDenFunc& pdf_;
43 
44  void reDraw();
45 
46 };
#define mExpClass(module)
Definition: commondefs.h:157
TypeSet< int > usecount_
Definition: probdenfuncdraw.h:42
Base class for Probability Density Functions.
Definition: probdenfunc.h:29
ProbDenFuncDraw(const ProbDenFunc &p)
Definition: probdenfuncdraw.h:26
const ProbDenFunc & pdf_
Definition: probdenfuncdraw.h:40
const TypeSet< float > & vals() const
Definition: probdenfuncdraw.h:36
Stores one draw of a probability density function.
Definition: probdenfuncdraw.h:22
const ProbDenFunc & pdf() const
Definition: probdenfuncdraw.h:35
int useCount(int i) const
Definition: probdenfuncdraw.h:33
int size() const
Definition: probdenfuncdraw.h:31
TypeSet< float > vals_
Definition: probdenfuncdraw.h:41

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