1 // Created on: 2020-02-06
2 // Created by: Svetlana SHUTINA
3 // Copyright (c) 2020 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #include <Graphic3d_RenderingParams.hxx>
18 #include <Standard_Dump.hxx>
20 //=======================================================================
23 //=======================================================================
24 void Graphic3d_RenderingParams::DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth) const
26 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, Method)
27 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, TransparencyMethod)
28 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, LineFeather)
30 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, PbrEnvPow2Size)
31 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, PbrEnvSpecMapNbLevels)
32 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, PbrEnvBakingDiffNbSamples)
34 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, PbrEnvBakingSpecNbSamples)
35 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, PbrEnvBakingProbability)
37 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, OitDepthFactor)
38 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, NbMsaaSamples)
39 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, RenderResolutionScale)
41 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, ToEnableDepthPrepass)
42 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, ToEnableAlphaToCoverage)
44 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, IsGlobalIlluminationEnabled)
45 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, SamplesPerPixel)
46 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, RaytracingDepth)
47 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, IsShadowEnabled)
48 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, IsReflectionEnabled)
49 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, IsAntialiasingEnabled)
50 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, IsTransparentShadowEnabled)
51 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, UseEnvironmentMapBackground)
52 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, ToIgnoreNormalMapInRayTracing)
53 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, CoherentPathTracingMode)
55 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, AdaptiveScreenSampling)
56 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, AdaptiveScreenSamplingAtomic)
57 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, ShowSamplingTiles)
58 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, TwoSidedBsdfModels)
59 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, RadianceClampingValue)
60 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, RebuildRayTracingShaders)
61 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, RayTracingTileSize)
62 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, NbRayTracingTiles)
64 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, CameraApertureRadius)
65 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, CameraFocalPlaneDist)
66 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, FrustumCullingState)
68 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, ToneMappingMethod)
69 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, Exposure)
70 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, WhitePoint)
72 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, StereoMode)
73 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, AnaglyphFilter)
74 OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &AnaglyphLeft)
75 OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &AnaglyphRight)
76 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, ToReverseStereo)
78 OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, StatsPosition.get())
79 OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, ChartPosition.get())
80 OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &ChartSize)
81 OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, StatsTextAspect.get())
82 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, StatsUpdateInterval)
84 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, StatsTextHeight)
85 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, StatsNbFrames)
86 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, StatsMaxChartTime)
87 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, CollectedStats)
89 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, ToShowStats)
91 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, Resolution)