OpendTect-6_4  6.4
vismarchingcubessurface.h
Go to the documentation of this file.
1 #ifndef vismarchingcubessurface_h
2 #define vismarchingcubessurface_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: K. Tingdahl
9  Date: August 2006
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 #include "visbasemod.h"
17 #include "visobject.h"
18 #include "samplingdata.h"
19 
20 template <class T> class SamplingData;
23 class TaskRunner;
24 
25 namespace visBase
26 {
27 class Transformation;
28 class GeomIndexedShape;
29 
33 {
34 public:
37 
38  bool setSurface(::MarchingCubesSurface&,
39  TaskRunner*);
40  ::MarchingCubesSurface* getSurface();
41  const ::MarchingCubesSurface* getSurface() const;
42 
43  void setRightHandSystem(bool);
44 
45  void setScales(const SamplingData<float>&,
46  const SamplingData<float>&,
47  const SamplingData<float>&);
48  const SamplingData<float> getScale(int dim) const;
49 
50  bool touch(bool forall,TaskRunner* =0);
51  void setRenderMode( RenderMode );
52 
53  //For body section display only.
54  char enabledSection() const;
55  void enableSection(char);
60  void setSectionPosition(float);
61  float getSectionPosition();
62  void setBoxBoundary(float x,float y,float z);
63 
64  GeomIndexedShape* getShape() { return shape_; }
65  virtual void setDisplayTransformation(const mVisTrans*);
66  const mVisTrans* getDisplayTransformation() const;
67  void getTransformCoord(Coord3&);
68 
69 
70 
71 protected:
73  void updateHints();
74  void updateDisplayRange();
75  static const char* sKeyCoordIndex() { return "CoordIndex";}
76 
82 
84 
87 };
88 
89 };
90 
91 #endif
#define mExpClass(module)
Definition: commondefs.h:160
RenderMode
Base class for all objects that are visual on the scene.
Definition: visobject.h:34
ExplicitMarchingCubesSurface * surface_
Definition: vismarchingcubessurface.h:85
StepInterval< float > yrg_
Definition: vismarchingcubessurface.h:80
Definition: marchingcubes.h:82
Definition: visgeomindexedshape.h:40
Definition: vismarchingcubessurface.h:32
Class that can execute a task.
Definition: task.h:169
#define mVisTrans
Definition: visdata.h:31
GeomIndexedShape * shape_
Definition: vismarchingcubessurface.h:83
Definition: explicitmarchingcubes.h:27
A cartesian coordinate in 3D space.
Definition: coord.h:72
StepInterval< float > xrg_
Definition: vismarchingcubessurface.h:79
Definition: visannot.h:43
float sectionlocation_
Definition: vismarchingcubessurface.h:78
static MarchingCubesSurface * create()
Definition: vismarchingcubessurface.h:35
const visBase::Transformation * transform_
Definition: vismarchingcubessurface.h:86
char displaysection_
Definition: vismarchingcubessurface.h:77
Holds the fundamental sampling info: start and interval.
Definition: samplingdata.h:22
#define mCreateDataObj(clss)
Definition: visdata.h:209
StepInterval< float > zrg_
Definition: vismarchingcubessurface.h:81
Definition: visobject.h:72
static const char * sKeyCoordIndex()
Definition: vismarchingcubessurface.h:75

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