OpendTect-6_4  6.4
visrandomposbodydisplay.h
Go to the documentation of this file.
1 #ifndef visrandomposbodydisplay_h
2 #define visrandomposbodydisplay_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Yuancheng Liu
9  Date: January 2009
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 #include "vissurveymod.h"
17 #include "emposid.h"
18 #include "visobject.h"
19 #include "vissurvobj.h"
20 
21 namespace visBase { class RandomPos2Body; class Transformation; }
22 namespace EM { class RandomPosBody; }
23 
24 
25 namespace visSurvey
26 {
27 class Scene;
28 
32  public visSurvey::SurveyObject
34 public:
38  "RandomPosBodyDisplay",
39  toUiString(sFactoryKeyword()));
40 
41  MultiID getMultiID() const;
42  bool isInlCrl() const { return false; }
43 
44  bool hasColor() const { return true; }
45  Color getColor() const;
46  void setColor(Color);
47  bool allowMaterialEdit() const { return true; }
48  NotifierAccess* materialChange();
49 
50  void setDisplayTransformation(const mVisTrans*);
51  const mVisTrans* getDisplayTransformation() const;
52 
53  bool setVisBody(visBase::RandomPos2Body*);
55  bool setEMID(const EM::ObjectID&);
56  EM::ObjectID getEMID() const;
57  EM::RandomPosBody* getEMBody() const { return embody_; }
58 
59  const char* errMsg() const { return errmsg_.str(); }
60 
61 protected:
62 
63  static const char* sKeyPSEarthModelID() { return "EM ID"; }
64  virtual ~RandomPosBodyDisplay();
65 
66  bool updateVisFromEM();
67  virtual void fillPar(IOPar&) const;
68  virtual bool usePar(const IOPar&);
69 
73 };
74 
75 };
76 
77 
78 #endif
#define mExpClass(module)
Definition: commondefs.h:160
od_int32 ObjectID
Definition: emposid.h:24
Random position Body.
Definition: emrandomposbody.h:30
const char * str() const
Definition: odstring.h:48
bool hasColor() const
Definition: visrandomposbodydisplay.h:44
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Export_Basic uiString toUiString(ViewStyle)
Interface class for Notifier. See comments there.
Definition: callback.h:161
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
#define mDefaultFactoryInstantiation(baseclss, clss, keywrd, usernm)
Definition: factory.h:289
EM::RandomPosBody * embody_
Definition: visrandomposbodydisplay.h:72
const mVisTrans * transform_
Definition: visrandomposbodydisplay.h:70
Used for displaying a polyline, preview for a random line created throught well path.
Definition: visarrowdisplay.h:20
const char * errMsg() const
Definition: visrandomposbodydisplay.h:59
bool isInlCrl() const
Definition: visrandomposbodydisplay.h:42
VisualObjectImpl
Definition: visobject.h:128
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
#define mVisTrans
Definition: visdata.h:31
static const char * sKeyPSEarthModelID()
Definition: visrandomposbodydisplay.h:63
Definition: visrandompos2body.h:36
EM::RandomPosBody * getEMBody() const
Definition: visrandomposbodydisplay.h:57
used for displaying a set of random picks in xyz coordinate.
Definition: visrandomposbodydisplay.h:31
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
Definition: visannot.h:43
BufferString errmsg_
Definition: horizontracker.h:119
bool allowMaterialEdit() const
Definition: visrandomposbodydisplay.h:47
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:25
Base class for all &#39;Display&#39; objects.
Definition: vissurvobj.h:58
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
visBase::RandomPos2Body * displaybody_
Definition: visrandomposbodydisplay.h:71
Compound key consisting of ints.
Definition: multiid.h:25

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