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
/////////////////////////////////////////////////////////////////////////////// 
// 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 OD_AVEMATERIAL_H
#define OD_AVEMATERIAL_H
 
#include "TD_PackPush.h"
 
#include "Ve/AveDefs.h"
#include "RxObject.h"
#include "DbEntity.h"
#include "IdArrays.h"
 
class OdDbObjectId;
class OdDbDatabase;
class OdAveMaterialImpl;
class OdAveMaterial;
/** \details
    This template class is a specialization of the OdSmartPtr class for OdAveMaterial object pointers.
*/
typedef OdSmartPtr<OdAveMaterial> OdAveMaterialPtr;
 
/** \details
    This class represents AVE Material properties for shaded entities.
 
    \remarks
    AVE Material properties may be attached to OdDbEntity and
    OdDbLayerTableRecord objects, and to color indicies (ACIs).
    
    Library: TD_Ave
    <group OdAve_Classes>
*/
class AVE_EXPORT OdAveMaterial : public OdRxObject
{
public:
  ODRX_DECLARE_MEMBERS(OdAveMaterial);
 
  /** \details
    Creates a Material object from the specified OdDbBlockReference.
    
    \param blockRefId [in]  Object ID of the block reference.
    
    \remarks
    The new Material object is attached to the specified block reference.
     
    Returns a SmartPointer to the new Material object.
  */
  static OdAveMaterialPtr getMaterial(const OdDbObjectId& blockRefId);
 
  /** \details
    Returns the Material name from the specified OdDbBlockReference.
    
    \param blockRefId [in]  Object ID of the block reference.
  */
  static OdString getMaterialName(const OdDbObjectId& blockRefId);
 
  /** \details
    Saves the Material properties to the OdDbBlockReference to which this Material object is associated.
 
    \param pDb [in]  Pointer to the database.
      
    \remarks
    If pDb is null, the database containing this Material object is used.
  */
  OdResult writeMaterial(OdDbDatabase* pDb = NULL, const OdDbHandle& holderHandle = 0);
 
  /** \details
    Attaches this Material object to the specified OdDbEntity.
    \param entityId [in]  Object ID of the entity.
    \remarks
    Returns true if and only if successful.
  */
  bool attachToObject(OdDbObjectId entityId);
 
  /** \details
    Attaches this Material object to the specified OdDbLayerTableRecord.
    \param layerId [in]  Object ID of the layer table record.
    \remarks
    Returns true if and only if successful.
  */
  bool attachToLayer(OdDbObjectId layerId);
 
  /** \details
    Attaches this Material object to the specified color index (ACI).
 
    \param colorIndex [in]  Color index. [1..255]
    
    \remarks
    Returns true if and only if successful.
 
    \remarks
    The attachment is made in the database of the holder of this Material Object.
    \sa
    OdCmEntityColor
  */
  bool attachToACI(OdUInt16 colorIndex);
  
  /** \details
    Detaches this Material object from the specified OdDbEntity.
    \param entityId [in]  Object ID of the entity.
  */
  static void detachFromObject(OdDbObjectId entityId);
 
  /** \details
    Detaches this Material object from the specified OdDbLayerTableRecord.
    \param layerId [in]  Object ID of the layer table record.
  */
  static void detachFromLayer(OdDbObjectId layerId);
 
  /** \details
    Detaches this Material object from the specified color index (ACI) for the specified database.
 
    \param colorIndex [in]  Color index. [1..255]
    \param pDb [in]  Pointer to the database for the ACI.
      
    \remarks
    \sa
    OdCmEntityColor
  */
  static void detachFromACI(OdDbDatabase* pDb, OdUInt16 colorIndex);
  
  /** \details
    Returns the object ID of the OdDbBlockReference associated with the material to which 
    the specified OdDbEntity, OeDbLayerTableRecord or color index (ACI)is attached.
 
    \param sourceId [in]  Object ID of the entity or layer table record.
    \param colorIndex [in]  Color index. [1..255]
    \param blockRefId [out]  Object ID of OdDbBlockReference associated with the material.
    \param pDb [in]  Pointer to the database of the ACI.
    \remarks
    Returns true if and only if a material is attached.
  */
  static bool getAttachedMaterial(const OdDbObjectId& sourceId, OdDbObjectId& blockRefId);
  static bool getAttachedMaterial(OdDbDatabase* pDb, OdUInt16 colorIndex, OdDbObjectId& blockRefId);
 
  /** \details
    Returns the ACI Material Map for the specified OdDbDatabase. 
 
    \param blockRefIds [out]  Receives an array[255] of block reference object IDs.
    \param pDb [in]  Pointer to the database for the ACI.
    
    \note
    The Object ID for ACI==n is in blockRefIds[n-1],
    
    \remarks
    Returns an empty array if not successful.
    
    blockRefIds are the object IDs of the OdDbBlockReferences associated with the materials.
  */
  static void getAciMaterialMap(OdDbDatabase* pDb, OdDbObjectIdArray& blockRefIds);
 
  /** \details
    Returns the type of this Material object.
    \remarks
    type() returns one of the following:
    
    <table>
    Name          Value
    kStandard     0
    kGranite      1
    kMarble       2
    kWood         3
    </table>
 
  */
  virtual OdAve::MaterialType type();
 
  /** \details
    Returns true if and only if any of the specified Material attributes
    are used in this Material object.
    \param attributes [in]  Material attributes.
    \remarks
    attributes must be a combination of one or more of the following:
 
    <table>
    Name              Value
    kAmbient          0x1  
    kDiffuse          0x2  
    kSpecular         0x4  
    kTransparency     0x8  
    kRoughness        0x20 
    kBumpMap          0x40 
    kReflectionProp   0x100
    kRefraction       0x200
    </table>
    
  */
  bool isAttribUsed(OdAve::MaterialAttrib attributes);
 
  /** \details
    Returns the name of this Material object.
    
  */
  OdString name() const;
  /** \details
    Returns the description of this Material object.
  */
  OdString description() const;
 
  /** \details
    Sets the name of this Material object.
    \param name [in]  Name.
    
    \remarks
    Names are truncated to 16 characters.
  */
  void setName(const OdString& name);
 
  /** \details
    Sets the description of this Material object.
    \param description [in]  Description.
  */
  void setDescription(const OdString& description);
 
  /** \details
    Returns the ambient (shadow) factor of this Material object.
    
    \remarks
    Returns a value in the range [0.0 .. 1.0].
 
  */
  double ambientFactor() const;
 
  /** \details
    Returns the ambient (shadow) color of this Material object.
    
    \remarks
    ambientColor() returns a 24-bit RGB color.
 
  */
  OdUInt32 ambientColor() const;
  /** \details
    Returns true if and only if the ambient (shadow) color for this Material object
    is the current entity color, CECOLOR.
  */
  bool ambientColorCurrent() const;
 
  /** \details
    Returns true if and only if the ambient lock flag has been set for this Material object.
  */
  bool ambientLock() const;
 
  /** \details
    Sets the ambient (shadow) factor of this Material object.
    
    \param ambientFactor [in]  Ambient factor. [0.0 .. 1.0]
  */
  void setAmbientFactor(double ambientFactor);
 
  /** \details
    Sets the ambient (shadow) color of this Material object.
    
    \param ambientColor [in]  24-bit RGB color.
  */
  void setAmbientColor(OdUInt32 ambientColor);
  /** \details
    Controls the use of the current entity color, CECOLOR,
    as the ambient (shadow) color of this Material object.
    \param currentColor [in]  Controls the use of CECOLOR.
  */
  void setAmbientColorCurrent(bool currentColor);
  /** \details
    Controls the ambient lock flag of this Material object.
    \param ambientLock [in]  Controls ambient lock.
  */
  void setAmbientLock(bool ambientLock);
 
 
  /** \details
    Returns the diffuse (main) factor of this Material object.
    
    \remarks
    Returns a value in the range [0.0 .. 1.0].
 
  */
  double diffuseFactor() const;
 
  /** \details
    Returns the diffuse (main) color of this Material object.
    
    \remarks
    diffuseColor() returns a 24-bit RGB color.
  */
  OdUInt32 diffuseColor() const;
  
  /** \details
    Returns true if and only if the diffuse (main) color for this Material object
    is the current entity color, CECOLOR.
 
  */
  bool diffuseColorCurrent() const;
  
  
  /** \details
    Returns a reference to the diffuse (main) bitmap for this Material object.
 
  */
  OdAveBitmap& diffuseBitmap() const;
 
  /** \details
    Sets the diffuse (main) factor of this Material object.
    
 
    diffuseFactor () Diffuse factor. [0.0 .. 1.0]
 
  */
  void setDiffuseFactor(double diffuseFactor);
  /** \details
    Sets the diffuse (main) color of this Material object.
    
    \param diffuseColor [in]  24-bit RGB color.
  */
  void setDiffuseColor(OdUInt32 diffuseColor);
 
  /** \details
    Controls the use of the current entity color, CECOLOR,
    as the diffuse (main) color of this Material object.
    \param currentColor [in]  Controls the use of CECOLOR.
 
  */
  void setDiffuseColorCurrent(bool currentColor);
 
  /** \details
    Returns the specular (reflection) factor of this Material object.
    
    \remarks
    Returns a value in the range [0.0 .. 1.0].
 
  */
  double specularFactor() const;
 
  /** \details
    Returns the specular (reflection) color of this Material object.
    
    \remarks
    specularColor() returns a 24-bit RGB color.
 
  */
  OdUInt32 specularColor() const;
  /** \details
    Returns true if and only if the specular (reflection) color for this Material object
    is the current entity color, CECOLOR.
 
  */
  bool specularColorCurrent() const;
  /** \details
    Returns true if and only if specular reflections are to be mirrored for this Material object.
 
  */
  bool specularMirror() const;
  
  /** \details
    Returns true if and only if the specular lock flag has been set for this Material object.
 
  */
  bool specularLock() const;
  
  /** \details
    Returns a reference to, or a copy of, the specular (reflection) bitmap of this Material object.
  */
  OdAveBitmap& specularBitmap();
  const OdAveBitmap& specularBitmap() const;
 
 
  /** \details
    Sets the specular (reflection) factor of this Material object.
    
    \param specularFactor [in]  Specular factor. [0.0 .. 1.0]
 
  */
  void setSpecularFactor(double specularFactor);
  /** \details
    Sets the specular (reflection) color of this Material object.
    
    \param specularColor [in]  24-bit RGB color.
 
  */
  void setSpecularColor(OdUInt32 specularColor);
 
  /** \details
    Controls the use of the current entity color, CECOLOR,
    as the specular (reflection) color of this Material object.
    \param currentColor [in]  Controls the use of CECOLOR.
 
  */
  void setSpecularColorCurrent(bool colorCurrrent);
  /** \details
    Controls the mirroring of specular reflections for this Material object.
    \param mirror [in]  Controls mirroring.
 
  */
  void setSpecularMirror(bool mirror);
 
  /** \details
    Controls the specular lock flag of this Material object.
    \param specularLock [in]  Controls specular lock
 
    \remarks
    The specular component is viewpoint dependent, and most apparent when the entity is highlighted.
  */
  void setSpecularLock(bool specularLock);
 
  /** \details
    Returns the roughness of this Material.
    
    \remarks
    Returns a value in the range [0.0 .. 1.0].
    
    Roughness controls the size of the material's reflective highlight.
    The higher the level of roughness, the greater the highlight. 
  */
  double roughness() const;
  /** \details
    Sets the roughness of this Material object.
    
    \param roughness [in]  Roughness. [0.0 .. 1.0]
    
    \remarks
    Roughness controls the size of the material's reflective highlight.
    The higher the level of roughness, the greater the highlight. 
  */
  void setRoughness(double);
 
  /** \details
    Returns the transparency of this Material object.
    
    \remarks
    <table>
    Value      Renders
    0.0        Opaque.
    1.0        Totally transparent.
    </table>
    
  */
  double transparency() const;
  /** \details
    Returns a reference to the transparency bitmap of this Material object.
  */
  OdAveBitmap& transparencyBitmap() const;
  /** \details
    Returns the transparency of this Material object.
    
    \param transparency [in]  Transparency. [0.0 .. 1.0]
    \remarks
    Returns a value in the r1ange [0.0 .. 1.0].
    
    <table>
    Value      Renders
    0.0        Opaque.
    1.0        Totally transparent.
    </table>
  */
  void setTransparency(double transparency);
 
  /** \details
    Returns the refraction index of this Material object.
    
  */
  double refraction() const;
 
  /** \details
    Sets the refraction index of this Material object.
    
    \param refraction [in]  Refraction.
    
  */
  void setRefraction(double refraction) const;
 
  /** \details
    Returns a reference to, or a copy of, the bump bitmap of this Material object.
    
    \remarks
    The bump bitmap may be used as an opacity map for this Material object.
  */
  OdAveBitmap& bumpMap();
  const OdAveBitmap& bumpMap() const;
 
  /** \details
    Returns the Object ID of the OdDbBlockReference associated with this Material object.
  */
  OdDbObjectId holderId() const;
 
  /** \details
  Returns the handle of the DbMaterial to which has been converted AveMaterial in A2008.
  */
  OdString handleDbMaterial() const;
 
  /** \details
  Sets the DbMaterial handle of this material in A2008.
  */
  void setHandleDbMaterial(const OdString& sDesc);
 
  ~OdAveMaterial();
protected:
  OdAveMaterial();
  OdAveMaterial(OdAveMaterialImpl* pImpl);
  
  OdAveMaterialImpl* m_pImpl;
  friend class OdAveMaterialImpl;
};
 
/** \details
    This class represents AVE Granite Material properties for shaded entities.
    
    \remarks
    AVE Granite Materials consist of a random distribution of four colors.
    Library: TD_Ave
 
    <group OdAve_Classes>
*/
class AVE_EXPORT OdAveGraniteMaterial : public OdAveMaterial
{
public:
  ODRX_DECLARE_MEMBERS(OdAveGraniteMaterial);
 
  /** \details
    Defines the color index for each of the four colors
    that are present in a Granite Material object.
  */
  enum GraniteColor
  {
    kFirst    = 0,
    kSecond   = 1,
    kThird    = 2,
    kFourth   = 3
  };
 
  virtual OdAve::MaterialType type();
 
  /** \details
    Returns the color factor for the specified granite color of this Granite Material object.
   
    \param graniteColor [in]  Granite color.
    
    \remarks
    Returns a value in the range [0.0 .. 1.0]. 
    
    There are four colors associated with a Granite Material object. 
    The color factors determine the relative amounts of the four granite colors.
    
    graniteColor must be one of the following:
    
    <table>
    Name      Value
    kFirst    0
    kSecond   1
    kThird    2
    kFourth   3
    </table>
    
  */
  double colorFactor(GraniteColor graniteColor);
 
  /** \details
    Returns the color for the specified granite color of this Granite Material object.
   
    \param graniteColor [in]  Granite color.
    
    \remarks
    color() returns a 24-bit RGB color.
    
    graniteColor must be one of the following:
    
    <table>
    Name      Value
    kFirst    0
    kSecond   1
    kThird    2
    kFourth   3
    </table>
  */
  OdUInt32 color(GraniteColor graniteColor);
 
  /** \details
    Sets the color factor for the specified granite color of this Granite Material object.
   
    \param graniteColor [in]  Granite color.
    \param colorFactor [in]  Color factor. [0.0 .. 1.0]
    
    \remarks
    There are four colors associated with a Granite Material object. 
    The color factors determine the relative amounts of the four granite colors.
 
    graniteColor must be one of the following:
    
    <table>
    Name      Value
    kFirst    0
    kSecond   1
    kThird    2
    kFourth   3
    </table>
    
    There are four colors associated with a Granite Material object. 
    To use less than four materials, make two or more of them the same,
    or set one or more of them to 0.
  */
  void setColorFactor(GraniteColor graniteColor, double colorFactor);
 
  /** \details
    Sets the color for the specified granite color for this Granite Material object.
   
    \param graniteColor [in]  Granite color.
    \param color [in]  24-bit RGB color.
    
    \remarks
    graniteColor must be one of the following:
    
    <table>
    Name      Value
    kFirst    0
    kSecond   1
    kThird    2
    kFourth   3
    </table>
    
    There are four colors associated with a Granite Material object. 
    To use less than four materials, make two or more of them the same,
    or set one or more of them to 0.
  */
  void setColor(GraniteColor graniteColor, OdUInt32 color);
 
  /** \details
    Returns the sharpness of this Material object.
 
    \remarks
    Returns a value in the range [0.0 .. 1.0]
 
    <table>
    Value      Renders
    0.0        Colors are melded.
    1.0        Colors are discrete.
    </table>
  */
  double sharpness();
  /** \details
    Sets the sharpness of this Granite Material object.
 
    \param sharpness [in]  Sharpness. [0.0 .. 1.0]
 
    \remarks
    <table>
    Value      Renders
    0.0        Colors are melded.
    1.0        Colors are discrete.
    </table>
  */
  void setSharpness(double sharpness);
 
  /** \details
    Returns the scale of this Granite Material object.
    
    \remarks
    The scale is with respect to the objects to which this Granite Material object
    are attached. Larger values result in a coarser texture with more graininess.
  */
  double scale();
  /** \details
    Sets the scale of this Granite Material object.
    
    \param scale [in]  Scale.
    
    \remarks
    The scale is with respect to the objects to which this Granite Material object
    are attached. Larger values result in a coarser texture with more graininess.
  */
  void setScale(double scale);
 
protected:
  OdAveGraniteMaterial();
  OdAveGraniteMaterial(OdAveMaterialImpl* pImpl);
};
/** \details
    This template class is a specialization of the OdSmartPtr class for OdAveGraniteMaterial object pointers.
*/
typedef OdSmartPtr<OdAveGraniteMaterial> OdAveGraniteMaterialPtr;
 
/** \details
    This class represents AVE Marble Material properties for shaded entities.
    
    \remarks
    AVE Marble Materials consist of a stone color and a vein color. 
    Library: TD_Ave
 
    <group OdAve_Classes>
*/
class AVE_EXPORT OdAveMarbleMaterial : public OdAveMaterial
{
public:
  ODRX_DECLARE_MEMBERS(OdAveMarbleMaterial);
 
  virtual OdAve::MaterialType type();
 
  /** \details
      Accesses the stone color for this Marble Material object.
      
      \remarks
      stoneColor() returns a 24-bit RGB color.
  */
  OdUInt32 stoneColor();
  /** \details
      Accesses the vein color for this Marble Material object.
      
      \remarks
      veinColor() returns a 24-bit RGB color.
  */
  OdUInt32 veinColor();
  
  /** \param color [in]  24-bit RGB color.
  */
  void stoneColor(OdUInt32 color);
  /** \param color [in]  24-bit RGB color.
  */
  void veinColor(OdUInt32 color);
 
  /** \details
    Returns the vein turbulance of this Marble Material object. 
    
    \remarks
    Higher values result in more swirling of the veins,
    and take longer to render. Values in the range [1..10] are recommended.
  */
  OdUInt32 turbulence();
  /** \details
    Sets the vein turbulance of this Marble Material object. 
    \param turbulence [in]  Turbulence.
    \remarks
    Higher values result in more swirling of the veins,
    and take longer to render. Values in the range [1..10] are recommended.
  */
  void setTurbulence(OdUInt32 turbulence);
 
  /** \details
    Returns the sharpness of this Marble Material object.
 
    \remarks
    Returns a value in the range [0.0 .. 1.0]
 
    <table>
    Value      Renders
    0.0        Colors are melded.
    1.0        Colors are discrete.
    </table>
  */
  double sharpness();
  /** \details
    Sets the sharpness of this Marble Material object.
 
    \param sharpness [in]  Sharpness. [0.0 .. 1.0]
 
    <table>
    Value      Renders
    0.0        Colors are melded.
    1.0        Colors are discrete.
    </table>
  */
  void setSharpness(double sharpness);
 
 
  /** \details
    Returns the scale of this Marble Material object.
    
    \remarks
    The scale is with respect to the objects to which this Marble Material object
    are attached. Smaller values result in less veins.
  */
  double scale();
  
  /** \details
    Sets the scale of this Marble Material object.
        
    \param scale [in]  Scale.
    
    \remarks
    The scale is with respect to the objects to which this Marble Material object
    are attached. Smaller values result in less veins.
  */
  void setScale(double scale);
 
protected:
  OdAveMarbleMaterial();
  OdAveMarbleMaterial(OdAveMaterialImpl* pImpl);
};
 
/** \details
    This template class is a specialization of the OdSmartPtr class for OdAveMarbleMaterial object pointers.
*/
typedef OdSmartPtr<OdAveMarbleMaterial> OdAveMarbleMaterialPtr;
 
/** \details
    This class represents Wood Material properties for shaded entities.
    \remarks
    Wood materials consist of a bicolor woodgrain pattern.
    
    <group OdAve_Classes>
*/
class AVE_EXPORT OdAveWoodMaterial : public OdAveMaterial
{
public:
  ODRX_DECLARE_MEMBERS(OdAveWoodMaterial);
 
  virtual OdAve::MaterialType type();
 
  /** \details
    Returns the light color of this Material object.
    \remarks
    lightColor() returns a 24-bit RGB color.
  */
  OdUInt32 lightColor();
  /** \details
    Returns the dark color of this Wood Material object.
    \remarks
    darkColor() returns a 24-bit RGB color.
  */
  OdUInt32 darkColor();
  /** \details
    Sets the light color of this Wood Material object.
    \param lightColor [in]  24-bit RGB color.
  */
  void setLightColor(OdUInt32 lightColor);
  /** \details
    Sets the dark color of this Wood Material object.
    \param darkColor [in]  24-bit RGB color.
  */
  void setDarkColor(OdUInt32 darkColor);
 
  /** \details
    Returns the mixture of light vs. dark rings in this Wood Material object.
    \remarks
    Returns a value in the range [0.0 .. 1.0].
    
    <table>
    Value      Renders
    0.0        Mostly dark.
    1.0        Mostly light.
    </table>
    
  */
  double lightDark();
  /** \details
    Sets the mixture of light vs. dark rings in this Wood Material object.
    \param lightDark [in]  Light/Dark mixture.  [0.0 .. 1.0]
    
    <table>
    Value      Renders
    0.0        Mostly dark.
    1.0        Mostly light.
    </table>
  */
  void setLightDark(double lightDark);
 
  /** \details
    Returns the ring density of this Wood Material object.
    
    \remarks
    The ring density is with respect to the objects to which this Wood Material object
    are attached. Smaller values result in a coarser texture with less rings.
  */
  double ringDensity();
  /** \details
    Sets the ring density of this Wood Material object.
    \param ringDensity [in]  Ring Density. 
    \remarks
    The ring density is with respect to the objects to which this Wood Material object
    are attached. Smaller values result in a coarser texture with less rings.
  */
  void setRingDensity(double ringDensity);
 
  /** \details
    Returns the ring width variation for this Wood Material object.
    
    \remarks
    Returns a value in the range [0.0 .. 1.0].
 
    <table>
    Value      Renders
    0.0        Rings are uniform.
    1.0        Rings have greatest variation.
    </table>
 
  */
  double ringWidth();
  /** \details
    Sets the ring width parameter for this Wood Material object.
    
    \param ringWidth [in]  Ring width parameter. [0.0 .. 1.0]
    \remarks
 
    <table>
    Value      Renders
    0.0        Rings are uniform.
    1.0        Rings have greatest variation.
    </table>
  */
  void setRingWidth(double ringWidth);
 
  /** \details
    Returns the ring shape parameters for this Wood Material object.
    
    \remarks
    Returns a value in the range [0.0 .. 1.0].
 
    <table>
    Value      Renders
    0.0        Circular rings.
    1.0        Most irregular rings.
    </table>
  */
   double ringShape();
  /** \details
    Sets the ring shape parameters for this Wood Material object.
    
    \param ringShape [in]  Ring shape parameter. [0.0 .. 1.0]
    \remarks
    
    <table>
    Value      Renders
    0.0        Circular rings.
    1.0        Most irregular rings.F
    </table>
  */
   void setRingShape(double ringShape) ;
 
  /** \details
    Returns the scale of this Wood Material object.
    
    \remarks
    The scale is with respect to the objects to which this Wood Material object
    are attached. Smaller values result in a finer texture with more rings.
  */
  double scale();
  
  /** \details
    Sets the scale of this Wood Material object.
        
    \param scale [in]  Scale.
    
    \remarks
    The scale is with respect to the objects to which this Wood Material object
    are attached. Smaller values result in a finer texture with rings.
  */
  void setScale(double scale);
 
protected:
  OdAveWoodMaterial();
  OdAveWoodMaterial(OdAveMaterialImpl* pImpl);
};
 
/** \details
    This template class is a specialization of the OdSmartPtr class for OdAveWoodMaterial object pointers.
*/
typedef OdSmartPtr<OdAveWoodMaterial> OdAveWoodMaterialPtr;
 
/** \details
  Returns an Iterator object that can be 
  used to traverse the OdAveMaterial objects in the specified database or material library.
  
  \param pDb [in]  Pointer to the database.
  \param pStreamBuf [in]  Pointer to the stream buffer.
*/
AVE_EXPORT OdRxIteratorPtr oddbGetMaterials(OdDbDatabase* pDb);
 
AVE_EXPORT void oddbGetMaterialIds(OdDbDatabase* pDb, OdDbObjectIdArray& ids);
 
AVE_EXPORT OdRxIteratorPtr oddbGetMaterials(OdStreamBuf* pStreamBuf);
 
#include "TD_PackPop.h"
 
#endif // OD_AVEMATERIAL_H