CFx SDK Documentation  2022 SP0
AveRender.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 
25 
26 #ifndef OD_AVERENDER_H
27 #define OD_AVERENDER_H
28 
29 #include "TD_PackPush.h"
30 
31 #include "Ve/AveDefs.h"
32 #include "DbObjectId.h"
33 
41 {
42 public:
44 
45  OdAve::RenderType m_RenderType; // Description: Render type.
46  OdAve::RenderDestination m_Destination; // Description: Render destination.
47  OdString m_Scene; // Description: Scene name.
48  OdInt16 m_nSubSampling; // Description: Sub-Sampling (1 = Best, 8 = Fastest)
49  double m_dLightIconScale; // Description: Light icon scale.
50  double m_dSmoothingAngle; // Description: Smoothing angle (delta from coincident).
51  double m_dPreviewObjectSize; // Description: Preview object size.
52  bool m_bSmoothShade; // Description: True to apply smooth shading.
53  bool m_bShadows; // Description: True to render shadows.
54  bool m_bApplyMaterials; // Description: True to apply materials.
55  bool m_bCropWindow; // Description: True to crop window.
56  bool m_bRenderCache; // Description: True to use render cache.
57  bool m_bQueryForSelections; // Description: True to query for selections.
58  bool m_bSkipRenderDlg; // Description: True to skip render dialog.
59  double m_dLightIntensity; // Description: Ambient light intensity
60  OdUInt32 m_nLightColor; // Description: Ambient light color.
61  OdString m_NorthUcsName; // Description: North UCS name.
62  double m_dNorthAngle; // Description: North angle.
63  double m_dAmbientFactor; // Description: Default ambient factor.
64  double m_dDiffuseFactor; // Description: Default diffuse factor.
65  double m_dSpecularFactor; // Description: Default specular factor.
66  double m_dRoughness; // Description: Default roughness.
67  OdUInt32 m_nDiffuseColor; // Description: Default diffuse.
68  bool m_bCurrentDiffuseColor; // Description: True to use CECOLOR as diffuse color.
69 };
70 
78 {
79 public:
81 
82  OdAve::RenderQuality m_RenderQuality; // Description: Render quality.
83  bool m_bDiscardBackFaces; // Description: True to discard back faces.
84  bool m_bNegativeNormal; // Description: True if back faces have negative normals.
85 };
86 
94 {
95 public:
97 
98  OdAve::AntiAliasing m_AntiAliasing; // Description: Anti=Aliasing.
99  OdAve::TextureMapSampling m_TextureMapSampling; // Description: Texture Map Sampling.
100  double m_dShadowDepthMinBias; // Description: Shadow depth minimum bias.
101  double m_dShadowDepthMaxBias; // Description: Shadow depth maximum bias.
102  double m_dAdaptSamplThreshold; // Description: Adaptive sampling threshold.
103  bool m_bAdaptSampl; // Description: True to use adaptive sampling.
104  bool m_bDiscardBackFaces; // Description: True to discard back faces.
105  bool m_bNegativeNormal; // Description: True if back faces have negative normals.
106 };
114 {
115 public:
117 
118  OdInt16 m_nRayTreeMaxDepth; // Ray tree depth.
119  double m_dRayTreeCutoffThreshold; // Ray tree cutoff threshold.
120 };
128 {
129 public:
131 
132  OdInt16 m_nFileType; // Description: File type: BMP=1, PCX=2, PostScript=3, TGA=4, TIFF=5
133  OdInt16 m_nX; // Description: Image width in pixels.
134  OdInt16 m_nY; // Description: Image height in pixels.
135  OdInt16 m_nAspectRatio; // Description: Width/height pixel size.
136  OdInt16 m_nColorBits1; // Description: Color Bits 1.
137  OdInt16 m_nColorBits2; // Description: Color Bits 2.
138  bool m_bGrayscale; // Description: True if grayscale.
139  bool m_bCompressed; // Description: True if compresssed.
140  OdInt16 m_nOrientation; // Description: True if Bottom to top
141  OdInt16 m_nInterlace; // Description: Interlace
142  OdInt16 m_nPostScriptImgSize; // Description: Image width in pixels for Postscript.
143 };
144 
152 public:
154 
155  bool m_bFogEnabled; // Description: True if fog is enabled.
156  bool m_bFogBackground; // Description: True to apply fog to background.
157  double m_dNearDistance; // Description: Where fog begins as percentage of distance to front clip plane.
158  double m_dFarDistance; // Description: Where fog ends as percentage of distance to front clip plane.
159  double m_dNearPercentage; // Description: Fog percentage at near distance.
160  double m_dFarPercentage; // Description: Fog percentage at far distance.
161  OdUInt32 m_Color; // Description: Color of fog.
162 };
163 
171 {
172 public:
175 
176  OdAve::BackgroundType m_BgType; // Description: Background type.
177  OdAveBitmap* m_pImage; // Description: Pointer to background image.
178  bool m_bDefaultBackground; // Description: True to use the default (editor) background.
179  OdUInt32 m_SolidColor; // Description: Solid background color.
180  OdUInt32 m_GrColor1; // Description: Gradient top color.
181  OdUInt32 m_GrColor2; // Description: Gradient middle color.
182  OdUInt32 m_GrColor3; // Description: Gradient bottom color.
183  double m_dGrHorizon; // Description: Position of gradient horizon (0 = Bottom, 1 = Top).
184  double m_dGrHeight; // Description: Gradient height (fraction of view).
185  double m_dGrRotation; // Description: Gradient rotation.
186  bool m_bEnvBackground; // Description: True to use envirionment background image.
187  OdString m_EnvImageName; // Description: Environment image filename.
188 };
189 
198 {
199 public:
216 
217  OdAvePref m_Pref; // Description: Render preferences.
218  OdAveFullOpt m_FullOpt; // Description: Photo options.
219  OdAveScanlOpt m_ScanlOpt; // Description: Scanline options.
220  OdAveRaytrOpt m_RaytrOpt; // Description: Raytrace options.
221  OdAveRFileOpt m_RFileOpt; // Description: Render file options.
222  OdAveFogOpt m_FogOpt; // Description: Fog options.
223  OdAveBGOpt m_BGOpt; // Description: Background options.
224 
225 private:
227 };
228 
229 
230 #include "TD_PackPop.h"
231 
232 #endif // OD_AVERENDER_H
#define AVE_EXPORT
Definition: AveExport.h:37
unsigned int OdUInt32
short OdInt16
OdResult
Definition: OdResult.h:29
OdUInt32 m_GrColor2
Definition: AveRender.h:181
OdUInt32 m_SolidColor
Definition: AveRender.h:179
OdString m_EnvImageName
Definition: AveRender.h:187
bool m_bEnvBackground
Definition: AveRender.h:186
double m_dGrHeight
Definition: AveRender.h:184
double m_dGrRotation
Definition: AveRender.h:185
OdAveBitmap * m_pImage
Definition: AveRender.h:177
double m_dGrHorizon
Definition: AveRender.h:183
OdUInt32 m_GrColor1
Definition: AveRender.h:180
OdAve::BackgroundType m_BgType
Definition: AveRender.h:176
OdUInt32 m_GrColor3
Definition: AveRender.h:182
bool m_bDefaultBackground
Definition: AveRender.h:178
bool m_bFogBackground
Definition: AveRender.h:156
double m_dNearDistance
Definition: AveRender.h:157
OdUInt32 m_Color
Definition: AveRender.h:161
double m_dFarPercentage
Definition: AveRender.h:160
double m_dNearPercentage
Definition: AveRender.h:159
bool m_bFogEnabled
Definition: AveRender.h:155
double m_dFarDistance
Definition: AveRender.h:158
bool m_bDiscardBackFaces
Definition: AveRender.h:83
bool m_bNegativeNormal
Definition: AveRender.h:84
OdAve::RenderQuality m_RenderQuality
Definition: AveRender.h:82
double m_dSmoothingAngle
Definition: AveRender.h:50
double m_dDiffuseFactor
Definition: AveRender.h:64
bool m_bRenderCache
Definition: AveRender.h:56
double m_dAmbientFactor
Definition: AveRender.h:63
OdInt16 m_nSubSampling
Definition: AveRender.h:48
bool m_bCurrentDiffuseColor
Definition: AveRender.h:68
OdAve::RenderType m_RenderType
Definition: AveRender.h:45
double m_dNorthAngle
Definition: AveRender.h:62
bool m_bShadows
Definition: AveRender.h:53
bool m_bSmoothShade
Definition: AveRender.h:52
OdString m_Scene
Definition: AveRender.h:47
OdString m_NorthUcsName
Definition: AveRender.h:61
double m_dRoughness
Definition: AveRender.h:66
OdAve::RenderDestination m_Destination
Definition: AveRender.h:46
bool m_bApplyMaterials
Definition: AveRender.h:54
double m_dLightIconScale
Definition: AveRender.h:49
double m_dLightIntensity
Definition: AveRender.h:59
bool m_bSkipRenderDlg
Definition: AveRender.h:58
double m_dPreviewObjectSize
Definition: AveRender.h:51
OdUInt32 m_nLightColor
Definition: AveRender.h:60
OdUInt32 m_nDiffuseColor
Definition: AveRender.h:67
bool m_bCropWindow
Definition: AveRender.h:55
bool m_bQueryForSelections
Definition: AveRender.h:57
double m_dSpecularFactor
Definition: AveRender.h:65
OdInt16 m_nPostScriptImgSize
Definition: AveRender.h:142
OdInt16 m_nY
Definition: AveRender.h:134
OdInt16 m_nOrientation
Definition: AveRender.h:140
bool m_bCompressed
Definition: AveRender.h:139
OdInt16 m_nColorBits2
Definition: AveRender.h:137
OdInt16 m_nInterlace
Definition: AveRender.h:141
OdInt16 m_nX
Definition: AveRender.h:133
OdInt16 m_nColorBits1
Definition: AveRender.h:136
bool m_bGrayscale
Definition: AveRender.h:138
OdInt16 m_nFileType
Definition: AveRender.h:132
OdInt16 m_nAspectRatio
Definition: AveRender.h:135
OdInt16 m_nRayTreeMaxDepth
Definition: AveRender.h:118
double m_dRayTreeCutoffThreshold
Definition: AveRender.h:119
OdAveFullOpt m_FullOpt
Definition: AveRender.h:218
OdAveFogOpt m_FogOpt
Definition: AveRender.h:222
OdAveRaytrOpt m_RaytrOpt
Definition: AveRender.h:220
OdAveRFileOpt m_RFileOpt
Definition: AveRender.h:221
bool getRenderOption(OdDbDatabase *pDb)
OdAvePref m_Pref
Definition: AveRender.h:217
OdAveScanlOpt m_ScanlOpt
Definition: AveRender.h:219
OdResult writeRenderOption(OdDbDatabase *pDb)
OdAveBGOpt m_BGOpt
Definition: AveRender.h:223
double m_dShadowDepthMinBias
Definition: AveRender.h:100
bool m_bDiscardBackFaces
Definition: AveRender.h:104
bool m_bAdaptSampl
Definition: AveRender.h:103
OdAve::AntiAliasing m_AntiAliasing
Definition: AveRender.h:98
double m_dShadowDepthMaxBias
Definition: AveRender.h:101
bool m_bNegativeNormal
Definition: AveRender.h:105
double m_dAdaptSamplThreshold
Definition: AveRender.h:102
OdAve::TextureMapSampling m_TextureMapSampling
Definition: AveRender.h:99
BackgroundType
Definition: AveDefs.h:96
RenderDestination
Definition: AveDefs.h:67
TextureMapSampling
Definition: AveDefs.h:89
AntiAliasing
Definition: AveDefs.h:80
@ kRndOptAmount
Definition: AveDefs.h:113
RenderType
Definition: AveDefs.h:60
RenderQuality
Definition: AveDefs.h:74