18 #ifndef GEOEDITLABEL_H
19 #define GEOEDITLABEL_H
21 #include <odinqt/float3d.h>
23 #include <odinpara/geometry.h>
25 #include <odindata/image.h>
27 #define REL_READVEC_LENGTH 0.2
28 #define READVEC_ARROW_LENGTH 0.1
29 #define CROSSSECT_COLOR "Red"
30 #define PROJECTION_COLOR "Green"
40 static const char* get_compName();
51 GeoEditLabel(
const Image& background,
unsigned int coarseFactor, QWidget *parent);
53 void drawImagingArea(
const Geometry& ia,
bool drawProj,
bool drawCross);
56 int xcoord2labelxpos(
double pos) {
return label->xpos2labelxpos(
int((
double)label->get_nx()*(0.5+
secureDivision(pos,backgr.get_geometry().get_FOV(readDirection)))));}
57 int ycoord2labelypos(
double pos) {
return label->ypos2labelypos(
int((
double)label->get_ny()*(0.5+
secureDivision(pos,backgr.get_geometry().get_FOV(phaseDirection)))));}
60 void drawSliceCrossSection(
const darray& connectPoints,
double slicethick,
GuiPainter& painter,
unsigned int slice);
67 void repaint() {
if(ia_cache) drawImagingArea(*ia_cache,drawProj_cache,drawCross_cache);}
double secureDivision(double numerator, double denominator)