3 #ifndef __zqb_lith_engine_hpp
4 #define __zqb_lith_engine_hpp
13 #include <qnamespace.h>
28 #define LITH_PAT_SCALE 0.1
30 #define LITH_LP_FILENAME "LithBase.lp"
63 hcpS_BAD_PARAMETER = 100,
67 hcpS_BAD_CREATE_ENHANCED = 200,
68 hcpS_BAD_CLOSE_ENHANCED = 201,
72 hcpS_FSIO_UNKNOWN = 300,
74 hcpS_FSIO_BAD_OPEN_FILE = 301,
75 hcpS_FSIO_BAD_FILE_DATA = 302,
77 hcpS_FSIO_GOODBIT = 303,
78 hcpS_FSIO_EOFBIT = 304,
79 hcpS_FSIO_FAILBIT = 305,
80 hcpS_FSIO_BADBIT = 306
107 hcp_Status hcp_aux_ConvertUnits (hcp_Units,
int &);
115 hcp_Status hcp_aux_BoundsUnitsConvert (hcp_Units, QRect *);
123 hcp_Status hcp_aux_SearchVectMinMax (
int n,
float *,
float &,
float &);
139 std::string pict_filename;
140 std::string pict_desc;
142 hcp_Units pict_units;
147 hcp_Logic enable_frame;
148 hcp_Logic transp_backgr;
186 #define hcp_MAX_LCMD_LENGTH 50 // Maximal amount of chars in lithology command
188 #define hcp_MAX_LOCALIZ_LENGTH 3 // Maximal amount of chars in localization name
189 #define hcp_MAX_PATTERN_DESC_LENGTH 50 // Maximal amount of chars in current localization of lithology pattern name
192 #define hcp_LCMD_PATTERN_ID "LithPattern" // Lithology pattern identification [int]
194 #define hcp_LCMD_START_PATTERN "StartPattern" // Start of lithology pattern body block []
195 #define hcp_LCMD_END_PATTERN "EndPattern" // End of lithology pattern body block []
197 #define hcp_LCMD_PATTERN_DESC_ID "LithPatternDesc" // Start of lithology pattern description block [int]
198 #define hcp_LCMD_END_PATTERN_DESC "EndPatternDesc" // End of lithology pattern description block []
202 #define hcp_LCMD_PATTERN_WIDTH "PatternWidth" // Lithology pattern width [int]
203 #define hcp_LCMD_PATTERN_HEIGHT "PatternHeight" // Lithology pattern height [int]
207 #define hcp_LCMD_POINT "Point" // Draw point [int,int, int, int, int,int,int]
208 #define hcp_LCMD_LINE "Line" // Draw line [int,int, int,int, int, int,int,int]
209 #define hcp_LCMD_ARC "Arc" // Draw arc [int,int, int,int, float,float, int, int,int,int]
213 #define hcp_LCMD_PATTERN_NAME "PatternName" // Lithology pattern name in specified localization [char[hcp_MAX_LOCALIZ_LENGTH], char[hcp_MAX_PATTERN_DESC_LENGHT]]
224 std::string lp_filename;
225 std::string lpd_filename;
265 hcpLS_HORIZONTAL = 0,
279 hcp_LegendStyle legend_style;
287 const char *font_family;
305 hcp_Status aux_IFStream (ifstream *)
const;
306 hcp_Status aux_FindNext (ifstream *,
char*)
const;
314 hcp_Status LithPtrnExist (
int)
const;
316 hcp_Status LocalizeLithPtrn (
int,
char*,
char*)
const;
318 hcp_Status DrawLithPtrnDesc (QPainter *,
char [],
319 int,
int,
int,
const char *)
const;
321 hcp_Status DrawFluid (QPainter *, hcp_Units, QRect *,
323 hcp_Status DrawLithPtrn (QPainter *, hcp_Units,
int,
int,
324 int, QRect *, hcp_Logic)
const;
326 hcp_Status Fill (QPainter *, hcp_Units,
int, QRect *, hcp_Logic)
const;
343 int,
float *,
float *,
int *,
int *,
int *,
354 int,
int *,
char [],
int);
370 #define hcp_PI 3.1415926535897 // Pi constant
371 #define hcp_ARC_APPROX 10.0 // Arc aproximation constant
396 hcp_PointStyle pnt_style;
423 hcp_Status hcp_Point (QPainter *, QRect *,
int,
int, hcp_Units,
hcp_PointConfig *, hcp_Logic);
431 hcp_Status hcp_Line (QPainter *, QRect *,
int,
int,
int,
int, hcp_Units,
hcp_LineConfig *, hcp_Logic);
439 hcp_Status hcp_Arc (QPainter *, QRect *, QRect *,
double,
double, hcp_Units,
hcp_LineConfig *, hcp_Logic);
451 hcp_Status hcp_graux_BoundsIntersect (QRect *,
double,
double,
double,
double,
double &,
double &);
459 hcp_Status hcp_graux_BoundsAllIntersect (QRect *,
double,
double,
double,
double,
double &,
double &,
double &,
double &);
476 ZqbLithEngine (
const char *lp_filename_s,
const char *lpd_filename_s,
float scale_factor);
479 QBitmap* getRaster (
int lith_code);
Definition: zqb_lith_engine.hpp:222
Definition: zqb_lith_engine.hpp:250
Definition: zqb_lith_engine.hpp:158
Definition: zqb_lith_engine.hpp:137
Definition: zqb_lith_engine.hpp:465
Definition: zqb_lith_engine.hpp:277
Definition: zqb_lith_engine.hpp:391
Definition: zqb_lith_engine.hpp:237
Definition: zqb_lith_engine.hpp:406
Definition: zqb_lith_engine.hpp:297