1 /*
2 Teem: Tools to process and visualize scientific data and images .
3 Copyright (C) 2012, 2011, 2010, 2009 University of Chicago
4 Copyright (C) 2008, 2007, 2006, 2005 Gordon Kindlmann
5 Copyright (C) 2004, 2003, 2002, 2001, 2000, 1999, 1998 University of Utah
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 (LGPL) as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
11 The terms of redistributing and/or modifying this software also
12 include exceptions to the LGPL that facilitate static linking.
13
14 This library is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Lesser General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public License
20 along with this library; if not, write to Free Software Foundation, Inc.,
21 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 */
23
24 #include "hoover.h"
25
26 int
hooverStubRenderBegin(void ** rendInfoP,void * userInfo)27 hooverStubRenderBegin(void **rendInfoP, void *userInfo) {
28
29 AIR_UNUSED(userInfo);
30 *rendInfoP = NULL;
31 return 0;
32 }
33
34 int
hooverStubThreadBegin(void ** threadInfoP,void * rendInfo,void * userInfo,int whichThread)35 hooverStubThreadBegin(void **threadInfoP, void *rendInfo, void *userInfo,
36 int whichThread) {
37
38 AIR_UNUSED(rendInfo);
39 AIR_UNUSED(userInfo);
40 AIR_UNUSED(whichThread);
41 *threadInfoP = NULL;
42 return 0;
43 }
44
45 int
hooverStubRayBegin(void * threadInfo,void * renderInfo,void * userInfo,int uIndex,int vIndex,double rayLen,double rayStartWorld[3],double rayStartIndex[3],double rayDirWorld[3],double rayDirIndex[3])46 hooverStubRayBegin(void *threadInfo, void *renderInfo, void *userInfo,
47 int uIndex,
48 int vIndex,
49 double rayLen,
50 double rayStartWorld[3],
51 double rayStartIndex[3],
52 double rayDirWorld[3],
53 double rayDirIndex[3]) {
54
55 AIR_UNUSED(threadInfo);
56 AIR_UNUSED(renderInfo);
57 AIR_UNUSED(userInfo);
58 AIR_UNUSED(uIndex);
59 AIR_UNUSED(vIndex);
60 AIR_UNUSED(rayLen);
61 AIR_UNUSED(rayStartWorld);
62 AIR_UNUSED(rayStartIndex);
63 AIR_UNUSED(rayDirWorld);
64 AIR_UNUSED(rayDirIndex);
65 /*
66 char me[]="hooverStubRayBegin";
67 fprintf(stderr, "%s: ray(%d,%d), len=%g\n"
68 " start=(%g,%g,%g)\n"
69 " dir=(%g,%g,%g)\n",
70 me, uIndex, vIndex, rayLen,
71 rayStartWorld[0], rayStartWorld[1], rayStartWorld[2],
72 rayDirWorld[0], rayDirWorld[1], rayDirWorld[2]);
73 */
74
75 return 0;
76 }
77
78 double
hooverStubSample(void * threadInfo,void * renderInfo,void * userInfo,int num,double rayT,int inside,double samplePosWorld[3],double samplePosIndex[3])79 hooverStubSample(void *threadInfo, void *renderInfo, void *userInfo,
80 int num, double rayT,
81 int inside,
82 double samplePosWorld[3],
83 double samplePosIndex[3]) {
84
85 AIR_UNUSED(threadInfo);
86 AIR_UNUSED(renderInfo);
87 AIR_UNUSED(userInfo);
88 AIR_UNUSED(num);
89 AIR_UNUSED(rayT);
90 AIR_UNUSED(inside);
91 AIR_UNUSED(samplePosWorld);
92 AIR_UNUSED(samplePosIndex);
93
94 /*
95 char me[]="hooverStubSample";
96 fprintf(stderr, "%s: sample(%g,%g,%g)\n", me,
97 samplePosWorld[0], samplePosWorld[1], samplePosWorld[2]);
98 */
99
100 /* we want the stub renderer to actually finish */
101 return 1.0;
102 }
103
104 int
hooverStubRayEnd(void * threadInfo,void * rendInfo,void * userInfo)105 hooverStubRayEnd(void *threadInfo, void *rendInfo, void *userInfo) {
106
107 AIR_UNUSED(threadInfo);
108 AIR_UNUSED(rendInfo);
109 AIR_UNUSED(userInfo);
110
111 return 0;
112 }
113
114 int
hooverStubThreadEnd(void * threadInfo,void * rendInfo,void * userInfo)115 hooverStubThreadEnd(void *threadInfo, void *rendInfo, void *userInfo) {
116
117 AIR_UNUSED(threadInfo);
118 AIR_UNUSED(rendInfo);
119 AIR_UNUSED(userInfo);
120
121 return 0;
122 }
123
124 int
hooverStubRenderEnd(void * rendInfo,void * userInfo)125 hooverStubRenderEnd(void *rendInfo, void *userInfo) {
126
127 AIR_UNUSED(rendInfo);
128 AIR_UNUSED(userInfo);
129
130 return 0;
131 }
132
133