-
Notifications
You must be signed in to change notification settings - Fork 1
/
renderperson.h
284 lines (228 loc) · 36.4 KB
/
renderperson.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
//
// ReadyKitRenderer.h
// ReadyKitRenderer
//
// Created by Daniel Bui on 5/16/15.
// Copyright (c) 2015 Daniel Bui. All rights reserved.
//
#ifndef ReadyKitRenderer_h
#define ReadyKitRenderer_h
#include "plugin.h"
#include "dzrenderer.h"
#include "dzrenderdata.h"
#include "dzapp.h"
#include <QtCore/QStringList>
#include <QtCore/QProcess>
class ReadyKitRenderer : public DzRenderer {
Q_OBJECT
public:
ReadyKitRenderer();
//////////////////////////
// RENDERPERSON INTERFACE
// The graphics state consists of options, attributes and interface mode. Options affect the entire scene. Attributes can
// vary between individual objects within a scene.
/////////////////////////
class RendererGraphicsState
{
QString RendererName;
};
///////////////////////////
// Mode-Changing routines
// Scene is begun with DiWorldBegin(). Once called, option values are frozen and forbidden to call option-changing procedures
// until scene description is finished. Attributes can be changed within the scene. Geometry is described by using primitive
// geometry calls. The attributes in the current graphics state applies to the geometry at the time they are described using
// API calls.
//////////////////////////
virtual DtVoid DiWorldBegin() { dzApp->log("ReadyKitRenderer: unimplemented method: DiWorldBegin()"); }
virtual DtVoid DiWorldEnd() { dzApp->log("ReadyKitRenderer: unimplemented method: DiWorldEnd()"); }
virtual DtContextHandle DiGetContext() { dzApp->log("ReadyKitRenderer: unimplemented method: DiGetContext()"); }
virtual DtVoid DiContext( DtContextHandle handle ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiContext( DtContextHandle handle ) "); }
virtual DtVoid DiAttributeBegin() { dzApp->log("\nReadyKitRenderer: unimplemented method: DiAttributeBegin()"); }
virtual DtVoid DiAttributeEnd() { dzApp->log("ReadyKitRenderer: unimplemented method: DiAttributeEnd()"); }
virtual DtVoid DiTransformBegin() { dzApp->log("ReadyKitRenderer: unimplemented method: DiTransformBegin()"); }
virtual DtVoid DiTransformEnd() { dzApp->log("ReadyKitRenderer: unimplemented method: DiTransformEnd()"); }
virtual DtVoid DiSolidBegin( DtToken type ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiSolidBegin( DtToken type )"); }
virtual DtVoid DiSolidEnd() { dzApp->log("ReadyKitRenderer: unimplemented method: DiSolidEnd()"); }
virtual DtVoid DiMotionBeginV( DtInt N, DtFloat times[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiMotionBeginV( DtInt N, DtFloat times[] )"); }
virtual DtVoid DiMotionEnd() { dzApp->log("ReadyKitRenderer: unimplemented method: DiMotionEnd() "); }
virtual DtToken DiDeclare( const char *name, const char *declaration ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiDeclare( const char *name, const char *declaration )"); }
virtual DtVoid DiScreenWindow( DtFloat left, DtFloat right, DtFloat bot, DtFloat top ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiScreenWindow( DtFloat left, DtFloat right, DtFloat bot, DtFloat top )"); }
virtual DtVoid DiIfBeginV( DtToken expression, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiIfBeginV( DtToken expression, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiElseIfV( DtToken expression, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiElseIfV( DtToken expression, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiElse() { dzApp->log("ReadyKitRenderer: unimplemented method: DiElse()"); }
virtual DtVoid DiIfEnd() { dzApp->log("ReadyKitRenderer: unimplemented method: DiIfEnd()"); }
virtual DtVoid DiErrorHandler( DtErrorHandler handler ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiErrorHandler( DtErrorHandler handler )"); }
virtual DtVoid DiSynchronize( DtToken ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiSynchronize( DtToken )"); }
// ------------------ Attributes
virtual DtVoid DiAttributeV( DtToken name, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiAttributeV( DtToken name, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiBound( DtBound bound ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiBound( DtBound bound )"); }
virtual DtVoid DiColor( DtColor Cs ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiColor( DtColor Cs )"); }
virtual DtVoid DiDetail( DtBound bound ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiDetail( DtBound bound )"); }
virtual DtVoid DiDetailRange( DtFloat minvis, DtFloat lowtran, DtFloat uptran, DtFloat maxvis ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiDetailRange( DtFloat minvis, DtFloat lowtran, DtFloat uptran, DtFloat maxvis )"); }
virtual DtVoid DiGeometricApproximation( DtToken type, DtFloat value ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiGeometricApproximation( DtToken type, DtFloat value )"); }
virtual DtVoid DiIlluminate( DtLightHandle light, DtBoolean onoff ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiIlluminate( DtLightHandle light, DtBoolean onoff )"); }
virtual DtVoid DiMatte( DtBoolean onoff ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiMatte( DtBoolean onoff )"); }
virtual DtVoid DiMultiplyShadingRate( DtFloat ratemultiplier ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiMultiplyShadingRate( DtFloat ratemultiplier )"); }
virtual DtVoid DiOpacity( DtColor Cs ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiOpacity( DtColor Cs )"); }
virtual DtVoid DiOrientation( DtToken orientation ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiOrientation( DtToken orientation )"); }
virtual DtVoid DiReverseOrientation() { dzApp->log("ReadyKitRenderer: unimplemented method: DiReverseOrientation()"); }
virtual DtVoid DiShadingInterpolation( DtToken type ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiShadingInterpolation( DtToken type )"); }
virtual DtVoid DiShadingRate( DtFloat size ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiShadingRate( DtFloat size )"); }
virtual DtVoid DiSides( DtInt nsides ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiSides( DtInt nsides )"); }
virtual DtVoid DiTextureCoordinates( DtFloat s1, DtFloat t1, DtFloat s2, DtFloat t2, DtFloat s3, DtFloat t3, DtFloat s4, DtFloat t4 ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiTextureCoordinates( DtFloat s1, DtFloat t1, DtFloat s2, DtFloat t2, DtFloat s3, DtFloat t3, DtFloat s4, DtFloat t4 )"); }
// ------------------ Shaders
virtual DtLightHandle DiAreaLightSourceV( DtToken name, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiAreaLightSourceV( DtToken name, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiAtmosphereV( DtToken name, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiAtmosphereV( DtToken name, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiDisplacementV( DtToken name, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiDisplacementV( DtToken name, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiExteriorV( DtToken name, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiExteriorV( DtToken name, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiImagerV( DtToken name, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiImagerV( DtToken name, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiInteriorV( DtToken name, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiInteriorV( DtToken name, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtLightHandle DiLightSourceV( DtToken name, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiLightSourceV( DtToken name, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiShaderV( DtToken name, DtToken handle, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiShaderV( DtToken name, DtToken handle, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiSurfaceV( DtToken name, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiSurfaceV( DtToken name, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
// ------------------ Transformations
virtual DtVoid DiConcatTransform( DtMatrix transform ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiConcatTransform( DtMatrix transform )"); }
virtual DtVoid DiCoordinateSystem( DtToken space ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiCoordinateSystem( DtToken space )"); }
virtual DtVoid DiCoordSysTransform( DtToken space ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiCoordSysTransform( DtToken space )"); }
virtual DtVoid DiIdentity() { dzApp->log("ReadyKitRenderer: unimplemented method: DiIdentity()"); }
virtual DtVoid DiPerspective( DtFloat fov ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiPerspective( DtFloat fov )"); }
virtual DtVoid DiRotate( DtFloat angle, DtFloat dx, DtFloat dy, DtFloat dz ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiRotate( DtFloat angle, DtFloat dx, DtFloat dy, DtFloat dz )"); }
virtual DtVoid DiScale( DtFloat dx, DtFloat dy, DtFloat dz ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiScale( DtFloat dx, DtFloat dy, DtFloat dz )"); }
virtual DtVoid DiScopedCoordinateSystem( DtToken space ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiScopedCoordinateSystem( DtToken space )"); }
virtual DtVoid DiSkew( DtFloat angle, DtFloat dx1, DtFloat dy1, DtFloat dz1, DtFloat dx2, DtFloat dy2, DtFloat dz2 ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiSkew( DtFloat angle, DtFloat dx1, DtFloat dy1, DtFloat dz1, DtFloat dx2, DtFloat dy2, DtFloat dz2 )"); }
virtual DtVoid DiTransform( DtMatrix transform ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiTransform( DtMatrix transform )"); }
virtual DtPoint* DiTransformPoints( DtToken fromspace, DtToken tospace, DtInt npoints, DtPoint *points ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiTransformPoints( DtToken fromspace, DtToken tospace, DtInt npoints, DtPoint *points )"); }
virtual DtVoid DiTranslate( DtFloat dx, DtFloat dy, DtFloat dz ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiTranslate( DtFloat dx, DtFloat dy, DtFloat dz )"); }
// ------------------ Geometric Primitives
virtual DtVoid DiBasis( DtBasis ubasis, DtInt ustep, DtBasis vbasis, DtInt vstep ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiBasis( DtBasis ubasis, DtInt ustep, DtBasis vbasis, DtInt vstep )"); }
virtual DtVoid DiBlobbyV( DtInt nleaf, DtInt ncode, DtInt code[], DtInt nflt, DtFloat flt[], DtInt nstr, DtString str[], DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiBlobbyV( DtInt nleaf, DtInt ncode, DtInt code[], DtInt nflt, DtFloat flt[], DtInt nstr, DtString str[], DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiConeV( DtFloat height, DtFloat radius, DtFloat thetamax, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiConeV( DtFloat height, DtFloat radius, DtFloat thetamax, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiCurvesV( DtToken degree, DtInt ncurves, DtInt nverts[], DtToken wrap, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiCurvesV( DtToken degree, DtInt ncurves, DtInt nverts[], DtToken wrap, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiCylinderV( DtFloat radius, DtFloat zmin, DtFloat zmax, DtFloat thetamax, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiCylinderV( DtFloat radius, DtFloat zmin, DtFloat zmax, DtFloat thetamax, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiDiskV( DtFloat height, DtFloat radius, DtFloat thetamax, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiDiskV( DtFloat height, DtFloat radius, DtFloat thetamax, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiGeneralPolygonV (DtInt nloops, DtInt *nverts, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiGeneralPolygonV (DtInt nloops, DtInt *nverts, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiGeometryV( DtToken type, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiGeometryV( DtToken type, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiHyperboloidV( DtPoint point1, DtPoint point2, DtFloat thetamax, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiHyperboloidV( DtPoint point1, DtPoint point2, DtFloat thetamax, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiNuCurvesV( DtInt ncurves, DtInt nvertices[], DtInt order[], DtFloat knot[], DtFloat min[], DtFloat max[], DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiNuCurvesV( DtInt ncurves, DtInt nvertices[], DtInt order[], DtFloat knot[], DtFloat min[], DtFloat max[], DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiNuPatchV( DtInt nu, DtInt uorder, DtFloat *uknot, DtFloat umin, DtFloat umax, DtInt nv, DtInt vorder, DtFloat *vknot, DtFloat vmin, DtFloat vmax, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiNuPatchV( DtInt nu, DtInt uorder, DtFloat *uknot, DtFloat umin, DtFloat umax, DtInt nv, DtInt vorder, DtFloat *vknot, DtFloat vmin, DtFloat vmax, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiParaboloidV( DtFloat rmax, DtFloat zmin, DtFloat zmax, DtFloat thetamax, DtInt n, const DtToken tokens[], DtPointer params[] ){ dzApp->log("ReadyKitRenderer: unimplemented method: DiParaboloidV( DtFloat rmax, DtFloat zmin, DtFloat zmax, DtFloat thetamax, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiPatchV( DtToken type, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiPatchV( DtToken type, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiPatchMeshV( DtToken type, DtInt nu, DtToken uwrap, DtInt nv, DtToken vwrap, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiPatchMeshV( DtToken type, DtInt nu, DtToken uwrap, DtInt nv, DtToken vwrap, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiPointsV( DtInt npts, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiPointsV( DtInt npts, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiPointsGeneralPolygonsV( DtInt npolys, DtInt *nloops, DtInt *nverts, DtInt *verts, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiPointsGeneralPolygonsV( DtInt npolys, DtInt *nloops, DtInt *nverts, DtInt *verts, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiPointsPolygonsV( DtInt npolys, DtInt *nverts, DtInt *verts, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiPointsPolygonsV( DtInt npolys, DtInt *nverts, DtInt *verts, DtInt n, const DtToken tokens[], DtPointer params[] )");
virtual DtVoid DiPolygonV( DtInt nvertices, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiPolygonV( DtInt nvertices, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiSphereV( DtFloat radius, DtFloat zmin, DtFloat zmax, DtFloat thetamax, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiSphereV( DtFloat radius, DtFloat zmin, DtFloat zmax, DtFloat thetamax, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiSubdivisionMeshV( DtToken scheme, DtInt nfaces, DtInt nvertices[], DtInt vertices[], DtInt ntags, const DtToken tags[], DtInt nargs[], DtInt intargs[], DtFloat floatargs[], DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiSubdivisionMeshV( DtToken scheme, DtInt nfaces, DtInt nvertices[], DtInt vertices[], DtInt ntags, const DtToken tags[], DtInt nargs[], DtInt intargs[], DtFloat floatargs[], DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiHierarchicalSubdivisionMeshV( DtToken scheme, DtInt nfaces, DtInt nvertices[], DtInt vertices[], DtInt ntags, const DtToken tags[], DtInt nargs[], DtInt intargs[], DtFloat floatargs[], const DtToken stringargs[], DtInt n, const DtToken tokens[], DtPointer params[]) { dzApp->log("ReadyKitRenderer: unimplemented method: DiHierarchicalSubdivisionMeshV( DtToken scheme, DtInt nfaces, DtInt nvertices[], DtInt vertices[], DtInt ntags, const DtToken tags[], DtInt nargs[], DtInt intargs[], DtFloat floatargs[], const DtToken stringargs[], DtInt n, const DtToken tokens[], DtPointer params[])"); }
virtual DtVoid DiTorusV( DtFloat majorrad, DtFloat minorrad, DtFloat phimin, DtFloat phimax, DtFloat thetamax, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiTorusV( DtFloat majorrad, DtFloat minorrad, DtFloat phimin, DtFloat phimax, DtFloat thetamax, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiTrimCurve( DtInt nloops, DtInt *ncurves, DtInt *order, DtFloat *knot, DtFloat *amin, DtFloat *amax, DtInt *n, DtFloat *u, DtFloat *v, DtFloat *w ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiTrimCurve( DtInt nloops, DtInt *ncurves, DtInt *order, DtFloat *knot, DtFloat *amin, DtFloat *amax, DtInt *n, DtFloat *u, DtFloat *v, DtFloat *w )"); }
// ------------------ Procedural primitives
virtual DtVoid DiProcedural( DtPointer data, DtBound bound, DtVoid (*subdivfunc) (DtPointer, DtFloat), DtVoid (*freefunc) (DtPointer) ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiProcedural( DtPointer data, DtBound bound, DtVoid (*subdivfunc) (DtPointer, DtFloat), DtVoid (*freefunc) (DtPointer) )"); }
virtual DtVoid DiProcDelayedReadArchive (DtPointer data, DtFloat detail) { dzApp->log("ReadyKitRenderer: unimplemented method: DiProcDelayedReadArchive (DtPointer data, DtFloat detail)"); }
virtual DtVoid DiProcRunProgram (DtPointer data, DtFloat detail) { dzApp->log("ReadyKitRenderer: unimplemented method: DiProcRunProgram (DtPointer data, DtFloat detail)"); }
virtual DtVoid DiProcDynamicLoad (DtPointer data, DtFloat detail) { dzApp->log("ReadyKitRenderer: unimplemented method: DiProcDynamicLoad (DtPointer data, DtFloat detail)"); }
// ------------------ Object Instancing
virtual DtObjectHandle DiObjectBegin() { dzApp->log("ReadyKitRenderer: unimplemented method: DiObjectBegin()"); }
virtual DtObjectHandle DiObjectBeginV( DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiObjectBeginV( DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiObjectEnd() { dzApp->log("ReadyKitRenderer: unimplemented method: DiObjectEnd()"); }
virtual DtVoid DiObjectInstance( DtObjectHandle handle ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiObjectInstance( DtObjectHandle handle )"); }
// ------------------ Resourcing
virtual DtVoid DiResourceV(DtToken handle, DtToken type, DtInt n, const DtToken tokens[], DtPointer params[]) { dzApp->log("ReadyKitRenderer: unimplemented method: DiResourceV(DtToken handle, DtToken type, DtInt n, const DtToken tokens[], DtPointer params[])"); }
virtual DtVoid DiResourceBegin() { dzApp->log("ReadyKitRenderer: unimplemented method: DiResourceBegin()"); }
virtual DtVoid DiResourceEnd() { dzApp->log("ReadyKitRenderer: unimplemented method: DiResourceEnd()"); }
// ------------------ Texture map creation */
virtual DtVoid DiMakeBrickMapV( DtInt nptc, const char *const *ptcnames, const char *bkmname, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiMakeBrickMapV( DtInt nptc, const char *const *ptcnames, const char *bkmname, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiMakeBumpV( const char *picturename, const char *texturename, DtToken swrap, DtToken twrap, DtFilterFunc filterfunc, DtFloat swidth, DtFloat twidth, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiMakeBumpV( const char *picturename, const char *texturename, DtToken swrap, DtToken twrap, DtFilterFunc filterfunc, DtFloat swidth, DtFloat twidth, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiMakeCubeFaceEnvironmentV( const char *px, const char *nx, const char *py, const char *ny, const char *pz, const char *nz, const char *tex, DtFloat fov, DtFilterFunc filterfunc, DtFloat swidth, DtFloat twidth, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiMakeCubeFaceEnvironmentV( const char *px, const char *nx, const char *py, const char *ny, const char *pz, const char *nz, const char *tex, DtFloat fov, DtFilterFunc filterfunc, DtFloat swidth, DtFloat twidth, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiMakeLatLongEnvironmentV( const char *pic, const char *tex, DtFilterFunc filterfunc, DtFloat swidth, DtFloat twidth, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiMakeLatLongEnvironmentV( const char *pic, const char *tex, DtFilterFunc filterfunc, DtFloat swidth, DtFloat twidth, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiMakeShadowV( const char *pic, const char *tex, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiMakeShadowV( const char *pic, const char *tex, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiMakeTextureV( const char *pic, const char *tex, DtToken swrap, DtToken twrap, DtFilterFunc filterfunc, DtFloat swidth, DtFloat twidth, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiMakeTextureV( const char *pic, const char *tex, DtToken swrap, DtToken twrap, DtFilterFunc filterfunc, DtFloat swidth, DtFloat twidth, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
// ------------------ Reading and writing archive files
virtual DtVoid DiArchiveRecord( DtToken type, const char *format, ... ){ dzApp->log("ReadyKitRenderer: unimplemented method: DiArchiveRecord( DtToken type, const char *format, ... )"); }
virtual DtVoid DiReadArchiveV( DtString filename, DtArchiveCallback callback, int n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiReadArchiveV( DtString filename, DtArchiveCallback callback, int n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtArchiveHandle DiArchiveBeginV( DtToken archivename, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiArchiveBeginV( DtToken archivename, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiArchiveEnd() { dzApp->log("ReadyKitRenderer: unimplemented method: DiArchiveEnd()"); }
// ------------------ Renderer options
virtual DtVoid DiCameraV( DtToken camera, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiCameraV( DtToken camera, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiClipping( DtFloat hither, DtFloat yon ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiClipping( DtFloat hither, DtFloat yon )"); }
virtual DtVoid DiClippingPlane( DtFloat x, DtFloat y, DtFloat z, DtFloat nx, DtFloat ny, DtFloat nz ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiClippingPlane( DtFloat x, DtFloat y, DtFloat z, DtFloat nx, DtFloat ny, DtFloat nz )"); }
virtual DtVoid DiColorSamples( DtInt N, DtFloat *nRGB, DtFloat *RGBn ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiColorSamples( DtInt N, DtFloat *nRGB, DtFloat *RGBn )"); }
virtual DtVoid DiCropWindow( DtFloat xmin, DtFloat xmax, DtFloat ymin, DtFloat ymax ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiCropWindow( DtFloat xmin, DtFloat xmax, DtFloat ymin, DtFloat ymax )"); }
virtual DtVoid DiDepthOfField( DtFloat fstop, DtFloat focallength, DtFloat focaldistance ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiDepthOfField( DtFloat fstop, DtFloat focallength, DtFloat focaldistance )"); }
virtual DtVoid DiDisplayV( const char *name, DtToken type, DtToken mode, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiDisplayV( const char *name, DtToken type, DtToken mode, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiDisplayChannelV( const char *channel, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiDisplayChannelV( const char *channel, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiExposure( DtFloat gain, DtFloat gamma ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiExposure( DtFloat gain, DtFloat gamma )"); }
virtual DtVoid DiFormat( DtInt xres, DtInt yres, DtFloat aspect ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiFormat( DtInt xres, DtInt yres, DtFloat aspect )"); }
virtual DtVoid DiFrameAspectRatio( DtFloat aspect ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiFrameAspectRatio( DtFloat aspect )"); }
virtual DtVoid DiHiderV( DtToken type, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiHiderV( DtToken type, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiOptionV( DtToken name, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiOptionV( DtToken name, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiPixelFilter( DtFilterFunc function, DtFloat xwidth, DtFloat ywidth ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiPixelFilter( DtFilterFunc function, DtFloat xwidth, DtFloat ywidth )"); }
virtual DtVoid DiPixelSamples( DtFloat xsamples, DtFloat ysamples ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiPixelSamples( DtFloat xsamples, DtFloat ysamples )"); }
virtual DtVoid DiPixelVariance( DtFloat variation ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiPixelVariance( DtFloat variation )"); }
virtual DtVoid DiProjectionV( DtToken name, DtInt n, const DtToken tokens[], DtPointer params[] ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiProjectionV( DtToken name, DtInt n, const DtToken tokens[], DtPointer params[] )"); }
virtual DtVoid DiQuantize( DtToken type, DtInt one, DtInt qmin, DtInt qmax, DtFloat ampl ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiQuantize( DtToken type, DtInt one, DtInt qmin, DtInt qmax, DtFloat ampl )"); }
virtual DtVoid DiRelativeDetail( DtFloat relativedetail ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiRelativeDetail( DtFloat relativedetail )"); }
virtual DtVoid DiShutter( DtFloat smin, DtFloat smax ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiShutter( DtFloat smin, DtFloat smax )"); }
// ------------------ Shader Language Interrogation
virtual int DSlo_SetPath( const char *i_path ) { dzApp->log("ReadyKitRenderer: unimplemented method: DSlo_SetPath( const char *i_path )"); }
virtual int DSlo_SetShader( const char *i_name ) { dzApp->log("ReadyKitRenderer: unimplemented method: DSlo_SetShader( const char *i_name )"); }
virtual const char* DSlo_GetName() { dzApp->log("ReadyKitRenderer: unimplemented method: DSlo_GetName()"); return "ReadyKitRenderer RenderKit"; }
virtual DSLO_TYPE DSlo_GetType() { dzApp->log("ReadyKitRenderer: unimplemented method: DSlo_GetType()"); }
virtual int DSlo_HasMethod( const char *i_name ) { dzApp->log("ReadyKitRenderer: unimplemented method: DSlo_HasMethod( const char *i_name )"); }
virtual const char* const* DSlo_GetMethodNames(){ dzApp->log("ReadyKitRenderer: unimplemented DSlo call"); };
virtual int DSlo_GetNArgs() { dzApp->log("ReadyKitRenderer: unimplemented method: DSlo_GetNArgs()"); }
virtual DSLO_VISSYMDEF* DSlo_GetArgById( int i_id ) { dzApp->log("ReadyKitRenderer: unimplemented method: DSlo_GetArgById( int i_id )"); }
virtual DSLO_VISSYMDEF* DSlo_GetArgByName( const char *i_name ) { dzApp->log("ReadyKitRenderer: unimplemented method: DSlo_GetArgByName( const char *i_name )"); }
virtual DSLO_VISSYMDEF* DSlo_GetArrayArgElement( DSLO_VISSYMDEF *i_array, int i_index ) { dzApp->log("ReadyKitRenderer: unimplemented method: DSlo_GetArrayArgElement( DSLO_VISSYMDEF *i_array, int i_index )"); }
virtual int DSlo_GetNAnnotations() { dzApp->log("ReadyKitRenderer: unimplemented method: DSlo_GetNAnnotations()"); }
virtual const char* DSlo_GetAnnotationKeyById( int i_id ) { dzApp->log("ReadyKitRenderer: unimplemented method: DSlo_GetAnnotationKeyById( int i_id )"); }
virtual const char* DSlo_GetAnnotationByKey( const char *i_key ) { dzApp->log("ReadyKitRenderer: unimplemented method: DSlo_GetAnnotationByKey( const char *i_key )"); }
virtual void DSlo_EndShader() { dzApp->log("ReadyKitRenderer: unimplemented method: DSlo_EndShader()"); }
virtual const char* DSlo_TypetoStr( DSLO_TYPE i_type ) { dzApp->log("ReadyKitRenderer: unimplemented method: DSlo_TypetoStr( DSLO_TYPE i_type )"); }
virtual const char* DSlo_StortoStr( DSLO_STORAGE i_storage ) { dzApp->log("ReadyKitRenderer: unimplemented method: DSlo_StortoStr( DSLO_STORAGE i_storage )"); }
virtual const char* DSlo_DetailtoStr( DSLO_DETAIL i_detail ) { dzApp->log("ReadyKitRenderer: unimplemented method: DSlo_DetailtoStr( DSLO_DETAIL i_detail )"); }
// ------------------ Rendering
virtual bool render( DzRenderHandler *handler, DzCamera *camera, const DzRenderOptions &opt ) { dzApp->log("ReadyKitRenderer: unimplemented method: render( DzRenderHandler *handler, DzCamera *camera, const DzRenderOptions &opt )"); }
virtual bool customRender( DzRenderHandler *handler, DzCamera *camera, DzLightList &lights, DzNodeList &nodes, const DzRenderOptions &opt ) { dzApp->log("ReadyKitRenderer: unimplemented method: customRender( DzRenderHandler *handler, DzCamera *camera, DzLightList &lights, DzNodeList &nodes, const DzRenderOptions &opt )"); }
//////////////////////////////////////////////////////////
//////////// ********* public slots ********//////////////
//////////////////////////////////////////////////////////
public slots:
//
// MANIPULATORS
//
virtual void prepareImage( const DzTexture *img, const QString &filename ) { dzApp->log("ReadyKitRenderer: unimplemented method: prepareImage( const DzTexture *img, const QString &filename )"); }
virtual QString compileShader( const QString &shaderPath, QString &output ) { dzApp->log("ReadyKitRenderer: unimplemented method: compileShader( const QString &shaderPath, QString &output )"); }
virtual DzShaderDescription* getShaderInfo( const QString &shaderPath ) { dzApp->log("ReadyKitRenderer: unimplemented method: getShaderInfo( const QString &shaderPath )"); }
virtual void killRender() { dzApp->log("ReadyKitRenderer: unimplemented method: killRender()"); }
virtual bool bake( DzRenderHandler *handler, DzCamera *camera, DzLightListIterator &lights, DzNodeListIterator &nodes, const DzBakerOptions &opt ) { dzApp->log("ReadyKitRenderer: unimplemented method: bake( DzRenderHandler *handler, DzCamera *camera, DzLightListIterator &lights, DzNodeListIterator &nodes, const DzBakerOptions &opt )"); }
virtual bool autoBake( DzRenderHandler *handler, DzCamera *camera, DzLightListIterator &lights, DzNodeListIterator &nodes, const DzBakerOptions &opt ) { dzApp->log("ReadyKitRenderer: unimplemented method: autoBake( DzRenderHandler *handler, DzCamera *camera, DzLightListIterator &lights, DzNodeListIterator &nodes, const DzBakerOptions &opt )"); }
virtual void stopBaking() { dzApp->log("ReadyKitRenderer: unimplemented method: stopBaking()"); }
virtual void saveBakeImage( const DzBakerOptions &opt, bool wait ) { dzApp->log("ReadyKitRenderer: unimplemented method: saveBakeImage( const DzBakerOptions &opt, bool wait )"); }
virtual bool textureConvert( DzRenderHandler *handler, DzCamera *camera, const DzTextureConvertorOptions &opt ) { dzApp->log("ReadyKitRenderer: unimplemented method: textureConvert( DzRenderHandler *handler, DzCamera *camera, const DzTextureConvertorOptions &opt )"); DzRenderer::textureConvert(handler, camera, opt); }
//
// ACCESSORS
//
virtual QString getShaderCompilerPath() { dzApp->log("ReadyKitRenderer: unimplemented method: getShaderCompilerPath()"); }
virtual QString getTextureUtilityPath() { dzApp->log("ReadyKitRenderer: unimplemented method: getTextureUtilityPath()"); }
virtual QStringList getShaderSearchPaths() const { dzApp->log("ReadyKitRenderer: unimplemented method: getShaderSearchPaths()"); }
virtual QString processShaderName( const QString &shaderName ) const { dzApp->log("ReadyKitRenderer: unimplemented method: processShaderName( const QString &shaderName )"); }
virtual QString getShaderPath( const QString &shaderName, bool withExtension = true ) const { dzApp->log("ReadyKitRenderer: unimplemented method: getShaderPath( const QString &shaderName, bool withExtension = true )"); }
virtual QString getShaderFileName( const QString &shaderName ) const { dzApp->log("ReadyKitRenderer: unimplemented method: getShaderFileName( const QString &shaderName )"); }
virtual QString getShaderExtension() const { dzApp->log("ReadyKitRenderer: unimplemented method: getShaderExtension()"); }
virtual bool isRendering() const { dzApp->log("ReadyKitRenderer: unimplemented method: isRendering()"); }
virtual QString getName() const { dzApp->log("ReadyKitRenderer: unimplemented method: getName()"); }
virtual DzNode* getCurrentNode() const { dzApp->log("ReadyKitRenderer: unimplemented method: getCurrentNode()"); }
public:
virtual DzOptionsFrame* getOptionsFrame() const ;
virtual DtFilterFunc getFilterFunction( DzRenderOptions::PixelFilter filterType ) const { dzApp->log("ReadyKitRenderer: unimplemented method: getFilterFunction( DzRenderOptions::PixelFilter filterType )");
protected:
// ------------------ Basic control flow, scoping, stacks
virtual DtVoid DiBegin( DtToken name ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiBegin( DtToken name )"); }
virtual DtVoid DiEnd() { dzApp->log("ReadyKitRenderer: unimplemented method: DiEnd()"); }
virtual DtVoid DiFrameBegin( DtInt number ) { dzApp->log("ReadyKitRenderer: unimplemented method: DiFrameBegin( DtInt number )"); }
virtual DtVoid DiFrameEnd() { dzApp->log("ReadyKitRenderer: unimplemented method: DiFrameEnd()"); }
private:
};
#endif // ReadyKitRenderer_h