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-2023 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
40
struct
rt_gen_worker_vars
{
41
struct
rt_i
*
rtip
;
42
struct
resource
*
resp
;
43
size_t
rays_cnt
;
44
fastf_t
*
rays
;
45
hitfunc_t
fhit
;
46
missfunc_t
fmiss
;
47
overlapfunc_t
foverlap
;
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
*/
defines.h
common.h
Header file for the BRL-CAD common definitions.
overlapfunc_t
int(* overlapfunc_t)(struct application *, struct partition *, struct region *, struct region *, struct partition *)
Definition:
worker.h:38
missfunc_t
int(* missfunc_t)(struct application *)
Definition:
worker.h:37
hitfunc_t
int(* hitfunc_t)(struct application *, struct partition *, struct seg *)
Definition:
worker.h:36
fastf_t
double fastf_t
fastest 64-bit (or larger) floating point type
Definition:
vmath.h:330
raytrace.h
application
Definition:
application.h:99
partition
Definition:
ray_partition.h:53
region
Definition:
region.h:44
resource
Definition:
resource.h:61
rt_gen_worker_vars
Definition:
worker.h:40
rt_gen_worker_vars::fmiss
missfunc_t fmiss
Definition:
worker.h:46
rt_gen_worker_vars::fhit
hitfunc_t fhit
Definition:
worker.h:45
rt_gen_worker_vars::curr_ind
int curr_ind
Definition:
worker.h:50
rt_gen_worker_vars::ind_src
int * ind_src
Definition:
worker.h:49
rt_gen_worker_vars::rays
fastf_t * rays
Definition:
worker.h:44
rt_gen_worker_vars::step
int step
Definition:
worker.h:48
rt_gen_worker_vars::rtip
struct rt_i * rtip
Definition:
worker.h:41
rt_gen_worker_vars::resp
struct resource * resp
Definition:
worker.h:42
rt_gen_worker_vars::rays_cnt
size_t rays_cnt
Definition:
worker.h:43
rt_gen_worker_vars::ptr
void * ptr
Definition:
worker.h:51
rt_gen_worker_vars::foverlap
overlapfunc_t foverlap
Definition:
worker.h:47
rt_i
Definition:
rt_instance.h:61
seg
Definition:
seg.h:59
include
analyze
worker.h
Generated on Tue Mar 7 2023 23:41:49 for BRL-CAD by
1.9.3