zjf
2023-03-06 392b76515f40376b6d36f40a114850ef63650384
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
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
/////////////////////////////////////////////////////////////////////////////// 
// Copyright (C) 2002-2016, Open Design Alliance (the "Alliance"). 
// All rights reserved. 
// 
// This software and its documentation and related materials are owned by 
// the Alliance. The software may only be incorporated into application 
// programs owned by members of the Alliance, subject to a signed 
// Membership Agreement and Supplemental Software License Agreement with the
// Alliance. The structure and organization of this software are the valuable  
// trade secrets of the Alliance and its suppliers. The software is also 
// protected by copyright law and international treaty provisions. Application  
// programs incorporating this software must include the following statement 
// with their copyright notices:
//   
//   This application incorporates Teigha(R) software pursuant to a license 
//   agreement with Open Design Alliance.
//   Teigha(R) Copyright (C) 2002-2016 by Open Design Alliance. 
//   All rights reserved.
//
// By use of this software, its documentation or related materials, you 
// acknowledge and accept the above terms.
///////////////////////////////////////////////////////////////////////////////
 
#ifndef _DbRenderSettings_h_Included_
#define _DbRenderSettings_h_Included_
 
#include "Gi/GiEnvironment.h"
 
/** \details
    This class is a container class for the properties relevent to generic high-fidelity renderers.
 
    \remarks
    Database-resident OdDbRenderSettings objects are stored in the NamedObjectsDictionary
    under ACAD_RENDER_SETTINGS. 
    
    In addition, the active RenderSettings are stored in the NamedObjectsDictionary 
    under ACAD_RENDER_ACTIVE_SETTINGS. 
 
    \sa
    TD_Db
    <group OdDb_Classes> 
*/
class TOOLKIT_EXPORT OdDbRenderSettings : public OdDbObject
{
public:
  ODDB_DECLARE_MEMBERS(OdDbRenderSettings);
 
  OdDbRenderSettings();
  virtual ~OdDbRenderSettings();
 
  /** \details
    Returns the OdGiDrawable for this RenderSettings object.
  */
  virtual OdGiDrawable* drawable();
 
  /** \details
    Sets the name of this RenderSettings object.
    \param name [in]  Name.
    \remarks
    Returns eOk if successful, or an appropriate error code if not.    
    \note
    No check is made for RenderSettings objects with duplicate names.
  */
  OdResult setName(const OdString& name);
 
  /** \details
    Returns the name of this RenderSettings object.
  */
  OdString name() const;
 
  /** \details
    Sets the description of this RenderSettings object.
    \param description [in]  Description.
  */
  void setDescription(const OdString& description);
 
  /** \details
    Returns the description of this RenderSettings object.
  */
  OdString description() const;
 
  /** \details
    Sets the DisplayIndex of this RenderSettings object.
    \param displayIndex [in]  DisplayIndex.
    \remarks
    The DisplayIndex specfies the display order in the UI of the entries in the ACAD_RENDER_SETTINGS dictionary.
    
    DisplayIndices need not be positive or consecutive, and are not intended for use as ID numbers.
  */
  void setDisplayIndex(int displayIndex);
 
  /** \details
    Returns the DisplayIndex of this RenderSettings object.
    \remarks
    The DisplayIndex specfies the display order in the UI of the entries in the ACAD_RENDER_SETTINGS dictionary.
    
    DisplayIndices need not be positive or consecutive, and are not intended for use as ID numbers.
  */
  int displayIndex() const;
 
  
  /** \details
    Controls the rendering of materials on a per-object basis for this RenderSettings object.
    \param materialsEnabled [in]  Controls MaterialsEnabled.
    \remarks
    If true, materials are rendered on a per-object basis. If false, all objects
    are rendered with the global material.
    
    The default value for MaterialsEnabled == true.  
  */
  void setMaterialsEnabled(bool materialsEnabled);
 
  /** \details
    Returns true if and only if materials are rendered on a per-object basis for this RenderSettings object.
    \remarks
    If true, materials are rendered on a per-object basis. If false, all objects
    are rendered with the global material.
    
    The default value for MaterialsEnabled == true.  
  */
  bool materialsEnabled() const;
 
  /** \details
    Controls the sampling of image textures for this RenderSettings object.
    \param textureSampling [in]  Controls TextureSampling.
  */
  void setTextureSampling(bool textureSampling);
 
  /** \details
    Returns true if and only if texture sampling is enabled for this RenderSettings object.
  */
  bool textureSampling() const;
 
  /** \details
    Controls the rendering of back-facing faces for this RenderSettings object.
    \param backFacesEnabled [in]  Controls BackFacesEnabled.
    \remarks
    Back-facing faces are rendered if and only if BackFacesEanbled == true;
    
    \remarks
    The default value for BackFacesEnabled == true;
  */
  void setBackFacesEnabled(bool backFacesEnabled);
 
  /** \details
    Returns true if and only if back-facing faces are rendered for this RenderSettings object.
  */
  bool backFacesEnabled() const;
 
  /** \details
    Controls the casting of shadows for this RenderSettings object.
    \param shadowsEnabled [in]  Controls ShadowsEnabled.
    \remarks
    Shadows are cast if and only if ShadowsEnabled == true;
    
    \remarks
    The default value for ShadowsEnabled == true;
  */
  void setShadowsEnabled(bool shadowsEnabled);
 
  /** \details
    Returns true if and only if shadows are cast for this RenderSettings object.
  */
  bool shadowsEnabled() const;
 
 
  /** \details
    Sets the full filename of the preview image for this RenderSettings object.
    \param filename [in]  Filename.
 
    \remarks
    Returns eOk if successful, or an appropriate error code if not.
    
    If the PreviewImageFileName is blank, no preview image is associated with this RenderSettings object.
    
    The default value for PreviewImageFileName is blank.
  */
  OdResult setPreviewImageFileName(const OdString& filename);
 
  /** \details
    Returns the full filename of the preview image for this RenderSettings object.
    \remarks
 
    If the PreviewImageFileName is blank, no preview image is associated with this RenderSettings object.
    
  */
  OdString previewImageFileName() const;
 
  /** \details
    Controls the rendering of the diagnostic background for this RenderSettings object.
    \param diagnosticBackgroundEnabled [in]  Controls DiagnosticBackgroundEnabled.
    \remarks
    The diagnostic (checker) background overrides the background for this RenderSettings object.
    
    The default value of DiagnosticBackgroundEnabled == false.
  */
  void setDiagnosticBackgroundEnabled(bool diagnosticBackgroundEnabled);
 
  /** \details
    Return true if and only if the diagnostic background is enabled for this RenderSettings object.
  */
  bool diagnosticBackgroundEnabled() const;
 
  /** \details
    Sets flag which is identifies does this render settings are predefined or not.
    \param bSet [in]  Set flag.
    \remarks
    Returns eOk if successful, or an appropriate error code if not.
  */
  OdResult setIsPredefined(bool bSet);
 
  /** \details
    Returns flag which is identifies does this render settings are predefined or not.
  */
  bool isPredefined() const;
 
  // OdDbObject functions
 
  virtual OdResult dwgInFields(OdDbDwgFiler* pFiler);
  virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
  virtual OdResult dxfInFields(OdDbDxfFiler* pFiler);
  virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
 
  // OdGiDrawable functions
 
  virtual OdUInt32 subSetAttributes(OdGiDrawableTraits* pTraits)const;
 
  virtual bool operator==(const OdDbRenderSettings& settings);
};
 
/** \details
    This template class is a specialization of the OdSmartPtr class for OdDbRenderSettings object pointers.
*/
typedef OdSmartPtr<OdDbRenderSettings> OdDbRenderSettingsPtr;
 
 
/** \details
    This class is a container class for the properties relevent to mental ray renderers.
 
    \remarks
    Database-resident OdDbMentalRayRenderSettings objects are stored in the NamedObjectsDictionary
    under ACAD_RENDER_SETTINGS. 
    
    In addition, the active RenderSettings are stored in the NamedObjectsDictionary 
    under ACAD_RENDER_ACTIVE_SETTINGS. 
 
    \sa
    TD_Db
    <group OdDb_Classes> 
*/
class TOOLKIT_EXPORT OdDbMentalRayRenderSettings : public OdDbRenderSettings
{
public:
  /** \details
    Shadow sampling multiplier for area lights.
  */
  enum ShadowSamplingMultiplier
  {
    kSamplingMultiplierZero         = 0, // 0
    kSamplingMultiplierOneEighth    = 1, // 1/8
    kSamplingMultiplierOneFourth    = 2, // 1/4
    kSamplingMultiplierOneHalf      = 3, // 1/2
    kSamplingMultiplierOne          = 4, // 1
    kSamplingMultiplierTwo          = 5  // 2
  };
public:
  ODDB_DECLARE_MEMBERS(OdDbMentalRayRenderSettings);
 
  OdDbMentalRayRenderSettings();
 
  virtual ~OdDbMentalRayRenderSettings();
 
  /** \details
    Controls the minimum and maximum sampling rates when rendering a pixel for this MentalRayRenderSettings object.
    \param min [in]  Minimum sampling rate. [-3 .. 5]
    \param max [in]  Maximum sampling rate. [-3 .. 5]
    \returns
    Returns eOk if successful, or an appropriate error code if not.
    
    * Negative values enable subsampling.
    * -3 specifies one sample per 64 pixels
    * 5 specfies one sample per 1028 pixels
    * The default value of min == -1
    * The default value of max == 0
    * Min <= Max
  */
  OdResult setSampling(int min, int max);
 
  /** \details
    Returns the minimum and maximum sampling rates when rendering a pixel for this MentalRayRenderSettings object.
    \param min [out]  Receives the minimum sampling rate. [-3 .. 5]
    \param max [out]  Receives the maximum sampling rate. [-3 .. 5]
    \remarks
    * Negative values enable subsampling.
    * -3 specifies one sample per 64 pixels
    * 5 specfies one sample per 1028 pixels
    * The default value of min == -1
    * The default value of max == 0
  */
  void sampling(int& min, int& max) const;
 
  /** \details
    Sets the sampling filter parameters for this MentalRayRenderSettings object.
    \param filter [in]  Filter method.
    \param width [in]  Width of the filter area in pixels. [0.0 .. 8.0]
    \param height [in]  Height of the filter area in pixels. [0.0 .. 8.0]
    
    \remarks
    Returns eOk if successful, or an appropriate error code if not.
 
    The defaults are as follows:
    
    <table>
    Argument     Default
    filter     kBox
    width      1.0
    height     1.0
    </table>
  */
  OdResult setSamplingFilter(OdGiMrFilter filter, double width,
    double height);
 
  /** \details
    Returns the sampling filter parameters for this MentalRayRenderSettings object.
    \param filter [out]  Receives the filter method.
    \param width [out]  Receives the width of the filter area in pixels.
    \param height [out]  Receives the height of the filter area in pixels.
  */
  void SamplingFilter(OdGiMrFilter& filter, double& width, double& height)
    const;
 
  /** \details
    Sets the SamplingContrastColor for this MentalRayRenderSettings object.
    \param red [in]  Red color channel threshold. [0.0 .. 1.0]
    \param green [in]  Green channel threshold. [0.0 .. 1.0]
    \param blue [in]  Blue channel threshold. [0.0 .. 1.0]
    \param alpha [in]  Alpha channel threshold. [0.0 .. 1.0]
    
    \remarks
    Returns eOk if successful, or an appropriate error code if not.
 
    Additional color camples will be taken if the difference between
    a sample and its surrounding samples exceeds the SamplingContrastColor.
 
    The default value for each color channel is 1.0.
    
  */
  OdResult setSamplingContrastColor(float red, float green, float blue, float alpha);
 
  /** \details
    Returns the SamplingContrastColor for this MentalRayRenderSettings object.
    \param red [out]  Receives the red color channel threshold.
    \param green [out]  Receives the green channel threshold.
    \param blue [out]  Receives the blue channel threshold. 
    \param alpha [out]  Receives the alpha channel threshold.
  */
  void samplingContrastColor(float& red, float& green, float& blue, float& alpha) const;
 
  /** \details
    Sets the method of computing ray-traced shadows for this MentalRayRenderSettings object.
    \remarks
    The default value for ShadowMode == krSimple.
  */
  void setShadowMode(OdGiMrShadowMode shadowMode);
 
  /** \details
    Returns the method of computing ray-traced shadows for this MentalRayRenderSettings object.
  */
  OdGiMrShadowMode shadowMode() const;
 
  /** \details
    Controls the generation of shadow maps for this MentalRayRenderSettings object.
    \param shadowMapsEnabled [in]  Controls shadow maps.
    \remarks
    The default value of ShadowMapsEnabled == true;
  */
  void setShadowMapsEnabled(bool shadowMapsEnabled);
 
  /** \details
    Returns true if and only if shadow maps are generated for this MentalRayRenderSettings object.
  */
  bool shadowMapsEnabled() const;
 
  /** \details
    Controls ray tracing for this MentalRayRenderSettings object.
    \param rayTracingEnabled [in]  Controls ray tracing.
    \remarks
    The default value of RayTracing == true;
  */
  void setRayTracingEnabled(bool rayTracingEnabled);
 
  /** \details
    Returns true if and only if ray tracing is enabled for this MentalRayRenderSettings object.
  */
  bool rayTracingEnabled() const;
 
  /** \details
    Sets the maximum ray trace depths for this MentalRayRenderSettings object.
    
    \param reflection [in]  Maximum number of ray reflections. 
    \param refraction [in]  Maximum number of ray refractions.
    \param sum [in]  Maximum number of ray reflections and refractions.
    
    \remarks
    Returns eOk if successful, or an appropriate error code if not.
 
    The defaults are as follows:
    
    <table>
    Argument      Default
    reflection    2
    refraction    2
    sum           4
    </table>
  */
  OdResult setRayTraceDepth(int reflection, int refraction,
    int sum);
 
  /** \details
    Returns the maximum ray trace depths for this MentalRayRenderSettings object.
    
    \param reflection [out]  Receives the maximum number of ray reflections. 
    \param refraction [out]  Receives the maximum number of ray refractions.
    \param sum [out]  Receives the maximum number of ray reflections and refractions.
  */
  void rayTraceDepth(int& reflection, int& refraction, int& sum) const;
 
  /** \details
    Controls global illumination using photon mapping for this MentalRayRenderSettings object.
    \param globalIlluminationEnabled [in]  Controls GlobalIllumination.
    
    \remarks
    Global illumination permits indirect lighting effects such as color-bleeding.
    
    The default value of GlobalIllumination is false.
  */
  void setGlobalIlluminationEnabled(bool globalIlluminationEnabled);
 
  /** \details
    Returns true if and only if global illumination using photon mapping is 
    enabled for this MentalRayRenderSettings object.
  */
  bool globalIlluminationEnabled() const;
 
  /** \details
    Sets the number of photons used for computing global illumination
    near a sample point for this MentalRayRenderSettings object.
    \param numPhotons [in]  Number of photons.
    \remarks
    Returns eOk if successful, or an appropriate error code if not.
 
    The default value for GISampleCount == 500
    \sa
    setGISampleRadius
    setGISampleRadiusEnabled
  */
  OdResult setGISampleCount(int numPhotons);
 
  /** \details
    Returns the number of photons used for computing global illumination
    near a sample point for this MentalRayRenderSettings object.
  */
  int giSampleCount() const;
 
  /** \details
    Controls the use of the GISampleRadius for computing global illumination 
    for this MentalRayRenderSettings object.
    \param giSampleRadiusEnabled [in]  Controls GISampleRadiusEnabled.
    \remarks
    If GISampleRadiusEnabled == false, a default, the model space extents
    are used to computer a default radius.
    
    The default value of GISampleRadiusEnabled == false.
  */
  void setGISampleRadiusEnabled(bool giSampleRadiusEnabled);
 
  /** \details
    Returns true if and only if the GISampleRadius is used for computing 
    global illumination for this MentalRayRenderSettings object.
  */
  bool giSampleRadiusEnabled() const;
 
  /** \details
    Sets the radius for computing the photon count for global illumination for this 
    MentalRayRenderSettings object.
    
    \param radius [in]  Sample radius.
    \remarks
    Returns eOk if successful, or an appropriate error code if not.
    
    The default value for GISampleRadius == 1.0.
    
    \sa
    setGISampleCount
    setGISampleRadiusEnabled
  */
  OdResult setGISampleRadius(double radius);
 
  /** \details
    Returns the radius for computing the photon count for global illumination for this 
    MentalRayRenderSettings object.
  */
  double giSampleRadius() const;
 
  /** \details
    Sets the average the number of photons shot per light for this 
    MentalRayRenderSettings object.
    \param numPhotons [in]  Number of photons.
    \remarks
    Returns eOk if successful, or an appropriate error code if not.
    
    The default value for GIPhotonsPerLight == 10,000.
  */
  OdResult setGIPhotonsPerLight(int numPhotons);
 
  /** \details
    Returns the average the number of photons shot per light for this 
    MentalRayRenderSettings object.
  */
  int giPhotonsPerLight() const;
 
  /** \details
    Sets the maximum photon trace depths for this MentalRayRenderSettings object.
    
    \param reflection [in]  Maximum number of photon reflections. 
    \param refraction [in]  Maximum number of photon refractions.
    \param sum [in]  Maximum number of photon reflections and refractions.
    
    \remarks
    Returns eOk if successful, or an appropriate error code if not.
 
    The defaults are as follows:
    
    <table>
    Argument      Default
    reflection    5
    refraction    5
    sum           5
    </table>
  */
  OdResult setPhotonTraceDepth(int reflection, int refraction,
    int sum);
 
  /** \details
    Returns the maximum photon trace depths for this MentalRayRenderSettings object.
    
    \param reflection [out]  Receives the maximum number of photon reflections. 
    \param refraction [out]  Receives the maximum number of photon refractions.
    \param sum [out]  Receives the maximum number of photon reflections and refractions.
  */
  void photonTraceDepth(int& reflection, int& refraction, int& sum) const;
 
  /** \details
    Controls the application of final gathering for this MentalRayRenderSettings object.
    \param finalGatheringEnabled [in]  Controls final gathering.
    \remarks
    Final gathering permits indirect lighting effects such as color-bleeding.
  */
  void setFinalGatheringEnabled(bool finalGatheringEnabled);
 
  /** \details
    Returns true if and only if final gathering is enabled for this MentalRayRenderSettings object.
  */
  bool finalGatheringEnabled() const;
 
  /** \details
    Sets the final gathering ray count for this MentalRayRenderSettings object.
    \param fgRayCount [in]  Final gathering ray count.
    
    \remarks
    Returns eOk if successful, or an appropriate error code if not.
 
    In order to compute indirect illumination of a scent,
    FGRayCount rays are shot into the scene for each final gathering point.
     
    The default value for FGRayCount = 1000.
  */
  OdResult setFGRayCount(int fgRayCount);
 
  /** \details
    Returns the final gathering ray count for this MentalRayRenderSettings object.
    
    \remarks
    In order to compute indirect illumination of a scent,
    FGRayCount rays are shot into the scene for each final gathering point.
  */
  int fgRayCount() const;
 
  /** \details
    Controls the Final Gathering Sample Radius State for this MentalRayRenderSettings object.
    
    \param useMin [in]  True to use user-supplied minimum radius, false for default radius.
    \param useMax [in]  True to use user-supplied maximum radius, false for default radius.
    \param inPixels [in]  True if user-supplied radii are in pixels, false for drawing units.
    \remarks
    The default values for all parameters == false.
  */
  void setFGRadiusState(bool useMin, bool useMax, bool inPixels);
 
  /** \details
    Returns the the Final Gathering Sample Radius State for this MentalRayRenderSettings object.
    
    \param useMin [out]  Receives true if the user-supplied minimum radius is used, false for the default,
    \param useMax [out]  Receives true if the user-supplied maximum radius is used, false for the default,
    \param inPixels [out]  True if user-supplied radii are in pixels, false for drawing units.
  */
  void fgSampleRadiusState(bool& useMin, bool& useMax, bool& inPixels) const;
 
  /** \details
    Sets the Final Gathering Sample Radii for this MentalRayRenderSettings object.
    \param minRadius [in]  Minimum radius.
    \param maxRadius [in]  Maximum radius.
    \remarks
    Returns eOk if successful, or an appropriate error code if not.
    
    Default values are are 0.1 for drawing units, and 0.5 for pixels.
    
    minRadius <= maxRadius 
  */
  OdResult setFGSampleRadius(double minRadius, double maxRadius);
 
  /** \details
    Returns the Final Gathering Sample Radii for this MentalRayRenderSettings object.
    \param minRadius [out]  Receives the minimum radius.
    \param maxRadius [in]  Receives the maximum radius.
  */
  void fgSampleRadius(double& minRadius, double& maxRadius) const;
 
  /** \details
    Sets the magnitude of indirect illumination for this MentalRayRenderSettings object.
    \param energyMultiplier [in]  Energy multiplier.
    \remarks
    Returns eOk if successful, or an appropriate error code if not.
    
    The default value for EnergyMultiplier is 1.0.
    
    EnergyMultiplier serves as a volume control for the photon emmision of every light.
  */
  OdResult setEnergyMultiplier(float energyMultiplier);
 
  /** \details
    Returns the magnitude of indirect illumination for this MentalRayRenderSettings object.
    \remarks
    EnergyMultiplier serves as a volume control for the photon emmision of every light.
  */
  float energyMultiplier() const;
 
  /** \details
    Sets the diagnostic image rendering mode for this MentalRayRenderSettings object.
    \param diagnosticMode [in]  Diagnostic mode.
  */
  void setDiagnosticMode(OdGiMrDiagnosticMode diagnosticMode);
 
  /** \details
    Returns the diagnostic image rendering mode for this MentalRayRenderSettings object.
    \param diagnosticMode [in]  Diagnostic mode.
  */
  OdGiMrDiagnosticMode diagnosticMode() const;
 
  /** \details
    Sets the Diagnostic Grid for this MentalRayRenderSettings object.
    \param diagnosticGridMode [in]  Coordinate system for the grid.
    \param gridSpace [in]  Distance between grid lines.
    
    \remarks
    The default mode is krObject, the default grid space is 10.0.
  */
  OdResult setDiagnosticGridMode(
    OdGiMrDiagnosticGridMode diagnosticGridMode, float gridSpace);
 
  /** \details
    Returns the Diagnostic Grid for this MentalRayRenderSettings object.
    \param diagnosticGridMode [out]  Receives the coordinate system for the grid.
    \param gridSpace [out]  Receives the distance between grid lines.
  */
  void diagnosticGridMode(
    OdGiMrDiagnosticGridMode& diagnosticGridMode, float& gridSpace) const;
 
  /** \details
    Sets the Diagnostic Photon Mode for this MentalRayRenderSettings object.
    \param diagnosticPhotonMode [in]  Diagnostic Photon Mode.
    \remarks
    The default value for DiagnosticPhotonMode == krDensity.
  */
  void setDiagnosticPhotonMode(
    OdGiMrDiagnosticPhotonMode diagnosticPhotonMode);
 
  /** \details
    Returns the Diagnostic Photon Mode for this MentalRayRenderSettings object.
  */
  OdGiMrDiagnosticPhotonMode diagnosticPhotonMode() const;
 
  /** \details
    Controls the Diagnostic Samples Mode for this MentalRayRenderSettings object.
    \param diagnosticSamplesMode [in]  Diagnostic Samples Mode
    \remarks
    The default value for DiagnosticSamplesMode == false.
  */
  void setDiagnosticSamplesMode(bool diagnosticSamplesMode);
 
  /** \details
    Returns the Diagnostic Samples Mode for this MentalRayRenderSettings object.
    \remarks
    The default value for DiagnosticSamplesMode == false.
  */
  bool diagnosticSamplesMode() const;
 
  /** \details
    Sets the Diagnostic BSP Mode for this MentalRayRenderSettings object.
    \param diagnosticBSPMode [in]  Diagnostic BSP Mode.
    \remarks
    The default value for DiagnosticBSPMode is krDepth.
  */
  void setDiagnosticBSPMode(OdGiMrDiagnosticBSPMode diagnosticBSPMode);
 
  /** \details
    Returns the Diagnostic BSP Mode for this MentalRayRenderSettings object.
    \param diagnosticBSPMode [in]  Diagnostic BSP Mode.
    \remarks
    The default value for DiagnosticBSPMode is krDepth.
  */
  OdGiMrDiagnosticBSPMode diagnosticBSPMode() const;
 
  /** \details
    Controls the creation of an MI file after rendering for this MentalRayRenderSettings object.
    \param exportMIEnabled [in]  Export MI Enabled.
    \remarks
    The default value for ExportMIEnabled == false.
    \sa
    setExportMIFileName
  */
  void setExportMIEnabled(bool exportMIEnabled);
 
  /** \details
    Returns true if and only if an MI file is created after rendering for this MentalRayRenderSettings object.
  */
  bool exportMIEnabled() const;
 
  /** \details
    Sets the full filename of the exported MI file for this MentalRayRenderSettings object.
    \param filename [in]  Filename.
 
    \remarks
    Returns eOk if successful, or an appropriate error code if not.
    
    If the ExportMIFileName is blank, no MI file is associated with this MentalRayRenderSettings object.
    
    The default value for ExportMIFileName is blank.
  */
  OdResult setExportMIFileName(const OdString& filename);
 
  /** \details
    Returns the full filename of the exported MI file for this MentalRayRenderSettings object.
  */
  OdString exportMIFileName() const;
 
  /** \details
    Sets the image tile size used in rendering for this MentalRaySettings object.
    \param tileSize [in]  Tile size. [4..512]
    \remarks
    Returns eOk if successful, or an appropriate error code if not.
    
    Larger values decrease rendering time and update frequency during rendering.
    
    The default value for TileSize is 32.
  */
  OdResult setTileSize(int tileSize);
 
  /** \details
    Returns the image tile size used in rendering for this MentalRaySettings object.
  */
  int tileSize() const;
 
  /** \details
    Sets the tile order used in tile rendering for this MentalRaySettings object.
    \param tileOrder [in]  Tile order.
    \remarks
    The default value for TileOrder is krHilbert.
  */
  void setTileOrder(OdGiMrTileOrder tileOrder);
 
  /** \details
    Returns the tile order used in tile rendering for this MentalRaySettings object.
  */
  OdGiMrTileOrder tileOrder() const;
 
 
  /** \details
    Sets the maximum memory allocated for rendering for this MentalRaySettings object.
    \param memoryLimit [in]  Memory limit (MB) [>= 128]
    \remarks
    
    Returns eOk if successful, or an appropriate error code if not.
    
    The renderer will decrease performance so as to stay below the memory limit.
    
    The default value for MemoryLimit is 1048.
  */
  OdResult setMemoryLimit(int memoryLimit);
 
  /** \details
    Returns the maximum memory allocated for rendering for this MentalRaySettings object.
  */
  int memoryLimit() const;
 
  /** \details
    Sets the final gathering mode for this MentalRaySettings object.
    \param mode [in]  Final gathering mode.
    \remarks
    The default value for final gathering mode is krFinalGatherAuto.
  */
  OdResult setFinalGatheringMode(OdGiMrFinalGatheringMode mode);
 
  /** \details
    Returns the final gathering mode for this MentalRaySettings object.
  */
  OdGiMrFinalGatheringMode finalGatheringMode() const;
 
  /** \details
    Sets the light luminance scale factor for this MentalRaySettings object.
    \param fLuminance [in]  Luminance scale factor.
    \remarks
    The default value for light luminance scale factor is 1500.0.
  */
  OdResult setLightLuminanceScale(double fLuminance);
 
  /** \details
    Returns the light luminance scale factor for this MentalRaySettings object.
  */
  double lightLuminanceScale() const;
 
  /** \details
    Sets the MI mode for this MentalRaySettings object.
    \param eExportMIMode [in]  MI mode.
    \remarks
    The default value for MI mode is krExportMIOff.
  */
  OdResult setExportMIMode(OdGiMrExportMIMode eExportMIMode);
 
  /** \details
    Returns the MI mode for this MentalRaySettings object.
  */
  OdGiMrExportMIMode exportMIMode() const;
 
  /** \details
    Sets the shadow sampling multiplier for this MentalRaySettings object.
    \param multiplier [in]  Shadow sampling multiplier.
    \remarks
    The default value for shadow sampling multiplier is kSamplingMultiplierOne.
  */
  OdResult setShadowSamplingMultiplier(ShadowSamplingMultiplier multiplier);
 
  /** \details
    Returns the shadow sampling multiplier for this MentalRaySettings object.
  */
  ShadowSamplingMultiplier shadowSamplingMultiplier() const;
 
  // OdDbObject functions
  
  virtual OdResult dwgInFields(OdDbDwgFiler* pFiler);
  virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
  virtual OdResult dxfInFields(OdDbDxfFiler* pFiler);
  virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
 
  // OdGiDrawable functions
  
  virtual OdUInt32 subSetAttributes(OdGiDrawableTraits* pTraits) const;
 
  virtual bool operator==(const OdDbMentalRayRenderSettings& settings);
};
 
/** \details
    This template class is a specialization of the OdSmartPtr class for OdDbMentalRayRenderSettings object pointers.
*/
typedef OdSmartPtr<OdDbMentalRayRenderSettings> OdDbMentalRayRenderSettingsPtr;
 
 
/** \details
    This class is a container class for the properties relevent to rapid RT renderers.
 
    \remarks
    Database-resident OdDbRapidRTRenderSettings objects are stored in the NamedObjectsDictionary
    under ACAD_RENDER_RAPIDRT_SETTINGS.
 
    In addition, the active RenderSettings are stored in the NamedObjectsDictionary
    under ACAD_RENDER_ACTIVE_RAPIDRT_SETTINGS.
 
    \sa
    TD_Db
    <group OdDb_Classes>
*/
class TOOLKIT_EXPORT OdDbRapidRTRenderSettings : public OdDbRenderSettings
{
public:
  /** \details
    Rendring quit condition.
  */
  enum RenderTarget
  {
    krLevel = 0, // Quit by level
    krTime,      // Quit by time
    krInfinite   // Quit never
  };
public:
  ODDB_DECLARE_MEMBERS(OdDbRapidRTRenderSettings);
 
  OdDbRapidRTRenderSettings();
 
  virtual ~OdDbRapidRTRenderSettings();
 
  /** \details
    Sets render target.
    \param target [in]  New render target value.
    \remarks
    Returns eOk if successful, or an appropriate error code if not.
  */
  OdResult setRenderTarget(RenderTarget target);
 
  /** \details
    Returns currently set render target.
  */
  RenderTarget renderTarget() const;
 
  /** \details
    Sets render level.
    \param level [in]  New render level value.
    \remarks
    Returns eOk if successful, or an appropriate error code if not.
  */
  OdResult setRenderLevel(int level);
 
  /** \details
    Returns currently set render level.
  */
  int renderLevel() const;
 
  /** \details
    Sets render time.
    \param time [in]  New render time value.
    \remarks
    Returns eOk if successful, or an appropriate error code if not.
  */
  OdResult setRenderTime(int time);
 
  /** \details
    Returns currently set render time.
  */
  int renderTime() const;
 
  /** \details
    Sets render lighting model.
    \param mode [in]  New render lighting model value.
    \remarks
    Returns eOk if successful, or an appropriate error code if not.
  */
  OdResult setLightingModel(OdGiLightingMode mode);
 
  /** \details
    Returns currently set render lighting model.
  */
  OdGiLightingMode lightingModel() const;
 
  /** \details
    Sets render filter type.
    \param type [in]  New render filter type value.
    \remarks
    Returns eOk if successful, or an appropriate error code if not.
  */
  OdResult setFilterType(OdGiFilterType type);
 
  /** \details
    Returns currently set render filter type.
  */
  OdGiFilterType filterType() const;
 
  /** \details
    Sets render filter width.
    \param width [in]  New render filter width value.
    \remarks
    Returns eOk if successful, or an appropriate error code if not.
  */
  OdResult setFilterWidth(float width);
 
  /** \details
    Returns currently set render filter width.
  */
  float filterWidth() const;
 
  /** \details
    Sets render filter height.
    \param height [in]  New render filter height value.
    \remarks
    Returns eOk if successful, or an appropriate error code if not.
  */
  OdResult setFilterHeight(float height);
 
  /** \details
    Returns currently set render filter height.
  */
  float filterHeight() const;
 
  /** \details
    Sets render filter width and height.
    \param width [in]  New render filter width value.
    \param height [in]  New render filter height value.
    \remarks
    Returns eOk if successful, or an appropriate error code if not.
  */
  OdResult setFilterDimensions(float width, float height)
  {
    OdResult result = setFilterWidth(width);
    if (result == eOk)
      result = setFilterHeight(height);
    return result;
  }
 
  /** \details
    Returns currently set render filter width and height.
    \param width [out]  Render filter width value.
    \param height [out]  Render filter height value.
  */
  void filterDimensions(float &width, float &height) const
  {
    width = filterWidth();
    height = filterHeight();
  }
 
  // OdDbObject functions
 
  virtual OdResult dwgInFields(OdDbDwgFiler* pFiler);
  virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
  virtual OdResult dxfInFields(OdDbDxfFiler* pFiler);
  virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
 
  // OdGiDrawable functions
 
  virtual OdUInt32 subSetAttributes(OdGiDrawableTraits* pTraits) const;
 
  virtual bool operator==(const OdDbRapidRTRenderSettings& settings);
};
 
/** \details
    This template class is a specialization of the OdSmartPtr class for OdDbRapidRTRenderSettings object pointers.
*/
typedef OdSmartPtr<OdDbRapidRTRenderSettings> OdDbRapidRTRenderSettingsPtr;
 
 
/** \details
 
    \remarks
    Database-resident OdDbRenderEnvironment objects are stored in the NamedObjectsDictionary
    under ACAD_RENDER_ENVIRONMENT. 
    
    \sa
    TD_Db
    <group OdDb_Classes> 
*/
class TOOLKIT_EXPORT OdDbRenderEnvironment : public OdDbObject
{
public:
  ODDB_DECLARE_MEMBERS(OdDbRenderEnvironment);
 
  OdDbRenderEnvironment();
  virtual ~OdDbRenderEnvironment();
 
  void setFogEnabled(bool bEnable);
 
  bool fogEnabled() const;
 
  void setFogBackgroundEnabled(bool bEnable);
 
  bool fogBackgroundEnabled() const;
 
  void setFogColor(const OdCmEntityColor& color);
 
  OdCmEntityColor fogColor() const;
 
  OdResult setFogDensity(double dNear, double dFar);
 
  void fogDensity(double& dNear, double& dFar) const;
 
  OdResult setDistances(double dNear, double dFar);
 
  void distances(double& dNear, double& dFar) const;
 
  void setEnvironmentImageEnabled(bool bEnabled);
 
  bool environmentImageEnabled() const;
 
  OdResult setEnvironmentImageFileName(const OdString& sFileName);
 
  OdString environmentImageFileName() const;
 
  // OdDbObject functions
 
  OdGiDrawable* drawable();
  OdResult dwgInFields(OdDbDwgFiler* pFiler);
  void dwgOutFields(OdDbDwgFiler* pFiler) const;
  OdResult dxfInFields(OdDbDxfFiler* pFiler);
  void dxfOutFields(OdDbDxfFiler* pFiler) const;
 
  // OdGiDrawable functions
 
  OdUInt32 subSetAttributes(OdGiDrawableTraits* pTraits)const;
};
 
/** \details
    This template class is a specialization of the OdSmartPtr class for OdDbRenderEnvironment object pointers.
*/
typedef OdSmartPtr<OdDbRenderEnvironment> OdDbRenderEnvironmentPtr;
 
 
/** \details
    This class is a container for all global rendering properties. 
 
    \remarks
    Database-resident OdDbRenderGlobal objects are stored in the NamedObjectsDictionary
    under ACAD_RENDER_GLOBAL.
    
    \sa
    TD_Db
    <group OdDb_Classes> 
*/
class TOOLKIT_EXPORT OdDbRenderGlobal : public OdDbObject
{
public:
  ODDB_DECLARE_MEMBERS(OdDbRenderGlobal);
 
  enum Procedure
  {
    krView = 0,
    krCrop,
    krSelected
  };
 
  enum Destination
  {
    krWindow = 0,
    krViewport
  };
 
  OdDbRenderGlobal();
  virtual ~OdDbRenderGlobal();
 
  void setProcedureAndDestination(Procedure nProcedure, Destination nDestination);
 
  void procedureAndDestination(Procedure& nProcedure, Destination& nDestination) const;
 
  OdResult setProcedure(Procedure nProcedure);
 
  Procedure procedure();
 
  OdResult setDestination(Destination nDestination);
 
  Destination destination();
 
  void setSaveEnabled(bool bEnabled);
 
  bool saveEnabled() const;
 
  OdResult setSaveFileName(const OdString& sFileName);
 
  OdString saveFileName() const;
 
  OdResult setDimensions(int w, int h);
 
  void dimensions(int& w, int& h) const;
 
  void setPredefinedPresetsFirst(bool bPredefinedPresetsFirst);
 
  bool predefinedPresetsFirst() const;
 
  void setHighInfoLevel(bool bHighInfoLevel);
 
  bool highInfoLevel() const;
 
  OdResult setExposureType(OdGiMrExposureType type);
 
  OdGiMrExposureType exposureType() const;
 
  OdString dimensionName() const;
 
  // OdDbObject functions
 
  OdResult dwgInFields(OdDbDwgFiler* pFiler);
  void dwgOutFields(OdDbDwgFiler* pFiler) const;
  OdResult dxfInFields(OdDbDxfFiler* pFiler);
  void dxfOutFields(OdDbDxfFiler* pFiler) const;
};
 
/** \details
    This template class is a specialization of the OdSmartPtr class for OdDbRenderGlobal object pointers.
*/
typedef OdSmartPtr<OdDbRenderGlobal> OdDbRenderGlobalPtr;
 
 
/** \details
 
    \remarks
    Database-resident OdDbRenderEntry objects are stored in the NamedObjectsDictionary
    under ACAD_RENDER_ENTRIES.
    
    \sa
    TD_Db
    <group OdDb_Classes> 
*/
class TOOLKIT_EXPORT OdDbRenderEntry : public OdDbObject
{
public:
  ODDB_DECLARE_MEMBERS(OdDbRenderEntry);
 
  OdDbRenderEntry();
  virtual ~OdDbRenderEntry();
 
  OdResult setImageFileName(const OdString &fileName);
  OdString imageFileName() const;
 
  void setDisplayIndex(int nDisplay);
  int displayIndex() const;
 
  OdResult setPresetName(const OdString &name);
  OdString presetName() const;
 
  OdResult setViewName(const OdString &name);
  OdString viewName() const;
 
  OdResult setDimensions(int w, int h);
  void dimensions(int &w, int &h) const;
  int dimensionW() const { int w, h; dimensions(w, h); return w; }
  int dimensionH() const { int w, h; dimensions(w, h); return h; }
 
  OdResult setStartTime(const OdDbDate &date);
  const OdDbDate &startTime() const;
 
  OdResult setEndTime(const OdDbDate &date);
  const OdDbDate &endTime() const;
 
  void setRenderTime(float fTime);
  float renderTime() const;
 
  void setMemoryAmount(int nAmount);
  int memoryAmount() const;
 
  void setMaterialCount(int nCount);
  int materialCount() const;
 
  void setLightCount(int nCount);
  int lightCount() const;
 
  void setTriangleCount(int nCount);
  int triangleCount() const;
 
  // OdDbObject functions
 
  OdResult dwgInFields(OdDbDwgFiler* pFiler);
  void dwgOutFields(OdDbDwgFiler* pFiler) const;
  OdResult dxfInFields(OdDbDxfFiler* pFiler);
  void dxfOutFields(OdDbDxfFiler* pFiler) const;
};
 
/** \details
    This template class is a specialization of the OdSmartPtr class for OdDbRenderEntry object pointers.
*/
typedef OdSmartPtr<OdDbRenderEntry> OdDbRenderEntryPtr;
 
 
TOOLKIT_EXPORT OdDbObjectId oddbGetRenderSettingsDictionaryId(OdDbDatabase* pDb, bool createIfNotFound = false);
TOOLKIT_EXPORT OdDbDictionaryPtr oddbGetRenderSettingsDictionary(OdDbDatabase* pDb, OdDb::OpenMode mode, bool createIfNotFound = false);
TOOLKIT_EXPORT OdDbObjectId oddbGetRenderPlotSettingsDictionaryId(OdDbDatabase* pDb, bool createIfNotFound = false);
TOOLKIT_EXPORT OdDbDictionaryPtr oddbGetRenderPlotSettingsDictionary(OdDbDatabase* pDb, OdDb::OpenMode mode, bool createIfNotFound = false);
TOOLKIT_EXPORT OdDbObjectId oddbGetRenderGlobalObjectId(OdDbDatabase* pDb, bool createIfNotFound = false);
TOOLKIT_EXPORT OdDbRenderGlobalPtr oddbGetRenderGlobalObject(OdDbDatabase* pDb, OdDb::OpenMode mode, bool createIfNotFound = false);
TOOLKIT_EXPORT OdDbObjectId oddbGetRenderEnvironmentObjectId(OdDbDatabase* pDb, bool createIfNotFound = false);
TOOLKIT_EXPORT OdDbRenderEnvironmentPtr oddbGetRenderEnvironmentObject(OdDbDatabase* pDb, OdDb::OpenMode mode, bool createIfNotFound = false);
TOOLKIT_EXPORT OdDbObjectId oddbGetActiveRenderSettingsObjectId(OdDbDatabase* pDb, bool createIfNotFound = false);
TOOLKIT_EXPORT OdDbRenderSettingsPtr oddbGetActiveRenderSettingsObject(OdDbDatabase* pDb, OdDb::OpenMode mode, bool createIfNotFound = false);
TOOLKIT_EXPORT OdDbObjectId oddbGetRenderEntriesDictionaryId(OdDbDatabase* pDb, bool createIfNotFound = false);
TOOLKIT_EXPORT OdDbDictionaryPtr oddbGetRenderEntriesDictionary(OdDbDatabase* pDb, OdDb::OpenMode mode, bool createIfNotFound = false);
TOOLKIT_EXPORT OdDbObjectId oddbGetRenderRapidRTSettingsDictionaryId(OdDbDatabase* pDb, bool createIfNotFound = false);
TOOLKIT_EXPORT OdDbDictionaryPtr oddbGetRenderRapidRTSettingsDictionary(OdDbDatabase* pDb, OdDb::OpenMode mode, bool createIfNotFound = false);
TOOLKIT_EXPORT OdDbObjectId oddbGetActiveRenderRapidRTSettingsObjectId(OdDbDatabase* pDb, bool createIfNotFound = false);
TOOLKIT_EXPORT OdDbRenderSettingsPtr oddbGetActiveRenderRapidRTSettingsObject(OdDbDatabase* pDb, OdDb::OpenMode mode, bool createIfNotFound = false);
 
#endif