1 #ifndef explfaultsticksurface_h 2 #define explfaultsticksurface_h 15 #include "geometrymod.h" 28 class FaultStickSurface;
29 class ExplFaultStickTexturePositionExtracter;
34 #define mFltTriProj Geometry::ExplFaultStickSurface::TriProjection 42 float zscale=
mUdf(
float));
58 void setZScale(
float );
60 void display(
bool sticks,
bool panels);
67 void setMaximumTextureSize(
int);
68 void setTexturePowerOfTwo(
bool yn);
70 const RowCol& getTextureSize()
const;
71 void needUpdateTexture(
bool yn);
72 bool needsUpdateTexture()
const;
83 static const char*
sKeyTextureI() {
return "Fault texture i column"; }
84 static const char*
sKeyTextureJ() {
return "Fault texture j column"; }
88 friend class ExplFaultStickSurfaceUpdater;
89 friend class ExplFaultStickTexturePositionExtracter;
94 void emptyStick(
int stickidx);
95 void fillStick(
int stickidx);
96 void removeStick(
int stickidx);
97 void insertStick(
int stickidx);
99 void emptyPanel(
int panelidx);
100 void fillPanel(
int panelidx);
101 void removePanel(
int panelidx);
102 void insertPanel(
int panelidx);
104 void surfaceChange(CallBacker*);
105 void surfaceMovement(CallBacker*);
107 void updateTextureCoords();
108 bool updateTextureSize();
109 int textureColSz(
const int panelidx);
111 int point2LineSampleSz(
const Coord3& point,
114 Coord3 getCoord(
int stickidx,
int texturerow)
const;
115 float getAvgDistance(
int stickidx,
117 void shiftStick(
int stickidx,
int nrunits);
118 void updateStickShifting();
119 bool reTriangulateSurface();
120 bool setProjTexturePositions(
DataPointSet& dpset,
int id=-1);
#define mExpClass(module)
Definition: commondefs.h:160
Definition: indexedshape.h:182
bool needsUpdate() const
Definition: explfaultsticksurface.h:47
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
int sceneidx_
Definition: explfaultsticksurface.h:129
BinIDValue texturesampling_
Definition: explfaultsticksurface.h:144
Set of data points with group selection.
Definition: datapointset.h:48
bool displaypanels_
Definition: explfaultsticksurface.h:125
ObjectSet< IndexedGeometry > paneltriangles_
Definition: explfaultsticksurface.h:136
bool createsNormals() const
Definition: explfaultsticksurface.h:64
ObjectSet< IndexedGeometry > sticks_
Definition: explfaultsticksurface.h:135
RowCol texturesize_
Definition: explfaultsticksurface.h:142
const BinIDValue getBinIDValue()
Definition: explfaultsticksurface.h:81
FixedString Crossline()
Definition: keystrs.h:50
bool areSticksDisplayed() const
Definition: explfaultsticksurface.h:61
bool needsupdate_
Definition: explfaultsticksurface.h:131
const FaultStickSurface * getSurface() const
Definition: explfaultsticksurface.h:56
Definition: indexedshape.h:126
Definition: faultsticksurface.h:20
FixedString Inline()
Definition: keystrs.h:75
bool arePanelsDisplayed() const
Definition: explfaultsticksurface.h:62
void setSceneIdx(int idx)
Definition: explfaultsticksurface.h:45
Definition: oduicommon.h:36
static const char * sKeyTextureI()
Definition: explfaultsticksurface.h:83
TriProjection triangulateAlg() const
Definition: explfaultsticksurface.h:51
#define mDeclareEnumUtils(enm)
Some utilities surrounding the often needed enum <-> string table.
Definition: enums.h:258
FixedString None()
Definition: keystrs.h:90
ObjectSet< IndexedGeometry > panellines_
Definition: explfaultsticksurface.h:137
Set of pointers to objects.
Definition: commontypes.h:32
bool createsTextureCoords() const
Definition: explfaultsticksurface.h:65
static const char * sKeyTextureJ()
Definition: explfaultsticksurface.h:84
bool needsupdatetexture_
Definition: explfaultsticksurface.h:132
Class that can execute a task.
Definition: task.h:169
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:272
FaultStickSurface * getSurface()
Definition: explfaultsticksurface.h:55
BinID and a value.
Definition: binidvalue.h:31
TypeSet< int > texturecolcoords_
Definition: explfaultsticksurface.h:139
Coord3 scalefacs_
Definition: explfaultsticksurface.h:128
A cartesian coordinate in 3D space.
Definition: coord.h:72
IdxPair used for its row() and col().
Definition: rowcol.h:25
TriProjection trialg_
Definition: explfaultsticksurface.h:133
bool texturepot_
Definition: explfaultsticksurface.h:143
Definition: explfaultsticksurface.h:37
TriProjection
Definition: explfaultsticksurface.h:49
ObjectSet< TypeSet< int > > textureknotcoords_
Definition: explfaultsticksurface.h:140
int maximumtexturesize_
Definition: explfaultsticksurface.h:141
Definition: arraytesselator.h:21
FaultStickSurface * surface_
Definition: explfaultsticksurface.h:127
bool displaysticks_
Definition: explfaultsticksurface.h:124