BRL-CAD
worker.h
Go to the documentation of this file.
1 /* W O R K E R . H
2  * BRL-CAD
3  *
4  * Copyright (c) 2008-2024 United States Government as represented by
5  * the U.S. Army Research Laboratory.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public License
9  * version 2.1 as published by the Free Software Foundation.
10  *
11  * This library is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this file; see the file named COPYING for more
18  * information.
19  */
20 /** @addtogroup libanalyze
21  *
22  */
23 /** @{ */
24 /** @file analyze/worker.h */
25 
26 #ifndef ANALYZE_WORKER_H
27 #define ANALYZE_WORKER_H
28 
29 #include "common.h"
30 #include "raytrace.h"
31 
32 #include "analyze/defines.h"
33 
34 __BEGIN_DECLS
35 
36 typedef int (*hitfunc_t)(struct application *, struct partition *, struct seg *);
37 typedef int (*missfunc_t)(struct application *);
38 typedef int (*overlapfunc_t)(struct application *, struct partition *, struct region *, struct region *, struct partition *);
39 
41  struct rt_i *rtip;
42  struct resource *resp;
43  size_t rays_cnt;
48  int step; /* number of rays to be fired by this worker before calling back */
49  int *ind_src; /* source of starting index */
50  int curr_ind; /* current ray index */
51  void *ptr; /* application specific info */
52 };
53 
54 __END_DECLS
55 
56 #endif /* ANALYZE_WORKER_H */
57 
58 /** @} */
59 
60 /*
61  * Local Variables:
62  * tab-width: 8
63  * mode: C
64  * indent-tabs-mode: t
65  * c-file-style: "stroustrup"
66  * End:
67  * ex: shiftwidth=4 tabstop=8
68  */
Header file for the BRL-CAD common definitions.
int(* overlapfunc_t)(struct application *, struct partition *, struct region *, struct region *, struct partition *)
Definition: worker.h:38
int(* missfunc_t)(struct application *)
Definition: worker.h:37
int(* hitfunc_t)(struct application *, struct partition *, struct seg *)
Definition: worker.h:36
double fastf_t
fastest 64-bit (or larger) floating point type
Definition: vmath.h:334
Definition: region.h:44
missfunc_t fmiss
Definition: worker.h:46
hitfunc_t fhit
Definition: worker.h:45
fastf_t * rays
Definition: worker.h:44
struct rt_i * rtip
Definition: worker.h:41
struct resource * resp
Definition: worker.h:42
size_t rays_cnt
Definition: worker.h:43
overlapfunc_t foverlap
Definition: worker.h:47
Definition: seg.h:59