CFx SDK Documentation  2020SP3
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
OdAveBGOpt::m_dGrHorizon
double m_dGrHorizon
Definition: AveRender.h:183
OdResult
OdResult
Definition: OdResult.h:29
OdAveFogOpt::m_Color
OdUInt32 m_Color
Definition: AveRender.h:161
OdAveRFileOpt::m_nY
OdInt16 m_nY
Definition: AveRender.h:134
OdAveRenderOption::m_FogOpt
OdAveFogOpt m_FogOpt
Definition: AveRender.h:222
OdAveBGOpt::m_GrColor3
OdUInt32 m_GrColor3
Definition: AveRender.h:182
OdAveBGOpt::m_dGrHeight
double m_dGrHeight
Definition: AveRender.h:184
OdString
Definition: OdString.h:95
OdDbDatabase
Definition: DbDatabase.h:421
OdAvePref::m_NorthUcsName
OdString m_NorthUcsName
Definition: AveRender.h:61
OdAveFullOpt
Definition: AveRender.h:78
OdAveBGOpt::m_pImage
OdAveBitmap * m_pImage
Definition: AveRender.h:177
OdAveRenderOption::m_ScanlOpt
OdAveScanlOpt m_ScanlOpt
Definition: AveRender.h:219
OdAveRFileOpt::m_bCompressed
bool m_bCompressed
Definition: AveRender.h:139
OdAveRenderOption::m_FullOpt
OdAveFullOpt m_FullOpt
Definition: AveRender.h:218
OdAvePref::m_dPreviewObjectSize
double m_dPreviewObjectSize
Definition: AveRender.h:51
OdAveRFileOpt::m_nFileType
OdInt16 m_nFileType
Definition: AveRender.h:132
OdDbObjectId
Definition: DbObjectId.h:99
OdAveFogOpt::m_bFogBackground
bool m_bFogBackground
Definition: AveRender.h:156
OdAve::RenderQuality
RenderQuality
Definition: AveDefs.h:74
OdAvePref::m_bQueryForSelections
bool m_bQueryForSelections
Definition: AveRender.h:57
OdAveFogOpt::OdAveFogOpt
OdAveFogOpt()
OdAvePref::m_dRoughness
double m_dRoughness
Definition: AveRender.h:66
OdAveBGOpt::m_dGrRotation
double m_dGrRotation
Definition: AveRender.h:185
OdAveFullOpt::m_RenderQuality
OdAve::RenderQuality m_RenderQuality
Definition: AveRender.h:82
OdAveRFileOpt::m_bGrayscale
bool m_bGrayscale
Definition: AveRender.h:138
OdAve::BackgroundType
BackgroundType
Definition: AveDefs.h:96
OdAveScanlOpt::m_dAdaptSamplThreshold
double m_dAdaptSamplThreshold
Definition: AveRender.h:102
OdAveRenderOption::m_RaytrOpt
OdAveRaytrOpt m_RaytrOpt
Definition: AveRender.h:220
TD_PackPop.h
OdAveRenderOption::writeRenderOption
OdResult writeRenderOption(OdDbDatabase *pDb)
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
OdInt16
short OdInt16
Definition: OdPlatformSettings.h:756
OdAveBGOpt::m_SolidColor
OdUInt32 m_SolidColor
Definition: AveRender.h:179
OdAveBGOpt
Definition: AveRender.h:171
OdAve::kRndOptAmount
@ kRndOptAmount
Definition: AveDefs.h:113
OdAvePref::m_dLightIconScale
double m_dLightIconScale
Definition: AveRender.h:49
OdAveRenderOption::getRenderOption
bool getRenderOption(OdDbDatabase *pDb)
OdAveScanlOpt::m_bAdaptSampl
bool m_bAdaptSampl
Definition: AveRender.h:103
OdAveRFileOpt::m_nOrientation
OdInt16 m_nOrientation
Definition: AveRender.h:140
OdAvePref::m_bSkipRenderDlg
bool m_bSkipRenderDlg
Definition: AveRender.h:58
OdAveScanlOpt::m_bDiscardBackFaces
bool m_bDiscardBackFaces
Definition: AveRender.h:104
OdAvePref::m_bShadows
bool m_bShadows
Definition: AveRender.h:53
OdAveScanlOpt::m_TextureMapSampling
OdAve::TextureMapSampling m_TextureMapSampling
Definition: AveRender.h:99
OdAveRaytrOpt::m_nRayTreeMaxDepth
OdInt16 m_nRayTreeMaxDepth
Definition: AveRender.h:118
OdAveRFileOpt::m_nX
OdInt16 m_nX
Definition: AveRender.h:133
AveDefs.h
OdAvePref::m_dDiffuseFactor
double m_dDiffuseFactor
Definition: AveRender.h:64
OdAveBGOpt::m_GrColor2
OdUInt32 m_GrColor2
Definition: AveRender.h:181
DbObjectId.h
OdAvePref::m_dLightIntensity
double m_dLightIntensity
Definition: AveRender.h:59
OdAvePref::m_nDiffuseColor
OdUInt32 m_nDiffuseColor
Definition: AveRender.h:67
OdAvePref::m_bCropWindow
bool m_bCropWindow
Definition: AveRender.h:55
OdAveRFileOpt
Definition: AveRender.h:128
OdAveRenderOption::m_Pref
OdAvePref m_Pref
Definition: AveRender.h:217
OdAveBitmap
Definition: AveDefs.h:148
OdAvePref::m_bApplyMaterials
bool m_bApplyMaterials
Definition: AveRender.h:54
OdAvePref::m_dAmbientFactor
double m_dAmbientFactor
Definition: AveRender.h:63
OdAveBGOpt::~OdAveBGOpt
~OdAveBGOpt()
TD_PackPush.h
OdAveScanlOpt::m_bNegativeNormal
bool m_bNegativeNormal
Definition: AveRender.h:105
OdAveBGOpt::m_EnvImageName
OdString m_EnvImageName
Definition: AveRender.h:187
OdAveFogOpt::m_dNearDistance
double m_dNearDistance
Definition: AveRender.h:157
OdAveRaytrOpt::OdAveRaytrOpt
OdAveRaytrOpt()
OdAveRFileOpt::m_nInterlace
OdInt16 m_nInterlace
Definition: AveRender.h:141
OdAveRFileOpt::m_nColorBits2
OdInt16 m_nColorBits2
Definition: AveRender.h:137
OdAveScanlOpt::OdAveScanlOpt
OdAveScanlOpt()
OdAvePref::m_dNorthAngle
double m_dNorthAngle
Definition: AveRender.h:62
OdAvePref::m_bRenderCache
bool m_bRenderCache
Definition: AveRender.h:56
OdAveBGOpt::m_GrColor1
OdUInt32 m_GrColor1
Definition: AveRender.h:180
OdAveRFileOpt::OdAveRFileOpt
OdAveRFileOpt()
OdAveFogOpt
Definition: AveRender.h:151
OdAvePref::m_nLightColor
OdUInt32 m_nLightColor
Definition: AveRender.h:60
OdAvePref::m_nSubSampling
OdInt16 m_nSubSampling
Definition: AveRender.h:48
OdAveFogOpt::m_dNearPercentage
double m_dNearPercentage
Definition: AveRender.h:159
OdAvePref::OdAvePref
OdAvePref()
OdAvePref::m_Scene
OdString m_Scene
Definition: AveRender.h:47
OdAveRaytrOpt
Definition: AveRender.h:114
OdAveFogOpt::m_dFarDistance
double m_dFarDistance
Definition: AveRender.h:158
OdAveScanlOpt::m_dShadowDepthMinBias
double m_dShadowDepthMinBias
Definition: AveRender.h:100
OdAveScanlOpt::m_dShadowDepthMaxBias
double m_dShadowDepthMaxBias
Definition: AveRender.h:101
OdAvePref
Definition: AveRender.h:41
OdAveScanlOpt
Definition: AveRender.h:94
OdAveBGOpt::m_bEnvBackground
bool m_bEnvBackground
Definition: AveRender.h:186
OdAveFogOpt::m_bFogEnabled
bool m_bFogEnabled
Definition: AveRender.h:155
OdAveRFileOpt::m_nColorBits1
OdInt16 m_nColorBits1
Definition: AveRender.h:136
OdAveRenderOption
Definition: AveRender.h:198
OdAvePref::m_dSpecularFactor
double m_dSpecularFactor
Definition: AveRender.h:65
OdAveRenderOption::m_BGOpt
OdAveBGOpt m_BGOpt
Definition: AveRender.h:223
OdAveRenderOption::m_RFileOpt
OdAveRFileOpt m_RFileOpt
Definition: AveRender.h:221
OdAveScanlOpt::m_AntiAliasing
OdAve::AntiAliasing m_AntiAliasing
Definition: AveRender.h:98
OdAvePref::m_RenderType
OdAve::RenderType m_RenderType
Definition: AveRender.h:45
OdAvePref::m_bSmoothShade
bool m_bSmoothShade
Definition: AveRender.h:52
OdAve::RenderDestination
RenderDestination
Definition: AveDefs.h:67
OdAvePref::m_dSmoothingAngle
double m_dSmoothingAngle
Definition: AveRender.h:50
OdAveFullOpt::m_bDiscardBackFaces
bool m_bDiscardBackFaces
Definition: AveRender.h:83
OdAveRFileOpt::m_nPostScriptImgSize
OdInt16 m_nPostScriptImgSize
Definition: AveRender.h:142
OdAveRFileOpt::m_nAspectRatio
OdInt16 m_nAspectRatio
Definition: AveRender.h:135
OdAve::AntiAliasing
AntiAliasing
Definition: AveDefs.h:80
OdAveRaytrOpt::m_dRayTreeCutoffThreshold
double m_dRayTreeCutoffThreshold
Definition: AveRender.h:119
OdAveBGOpt::OdAveBGOpt
OdAveBGOpt()
AVE_EXPORT
#define AVE_EXPORT
Definition: AveExport.h:37
OdAvePref::m_Destination
OdAve::RenderDestination m_Destination
Definition: AveRender.h:46
OdAvePref::m_bCurrentDiffuseColor
bool m_bCurrentDiffuseColor
Definition: AveRender.h:68
OdAveFullOpt::OdAveFullOpt
OdAveFullOpt()
OdAveBGOpt::m_BgType
OdAve::BackgroundType m_BgType
Definition: AveRender.h:176
OdAve::TextureMapSampling
TextureMapSampling
Definition: AveDefs.h:89
OdAve::RenderType
RenderType
Definition: AveDefs.h:60
OdAveBGOpt::m_bDefaultBackground
bool m_bDefaultBackground
Definition: AveRender.h:178
OdAveFullOpt::m_bNegativeNormal
bool m_bNegativeNormal
Definition: AveRender.h:84
OdAveFogOpt::m_dFarPercentage
double m_dFarPercentage
Definition: AveRender.h:160