0032218: Visualization - move V3d_View::ShadingModel() property to Graphic3d_Renderin...
[occt.git] / src / Graphic3d / Graphic3d_RenderingParams.cxx
1 // Created on: 2020-02-06
2 // Created by: Svetlana SHUTINA
3 // Copyright (c) 2020 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
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.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement. 
15
16 #include <Graphic3d_RenderingParams.hxx>
17
18 #include <Standard_Dump.hxx>
19
20 //=======================================================================
21 //function : DumpJson
22 //purpose  : 
23 //=======================================================================
24 void Graphic3d_RenderingParams::DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth) const
25 {
26   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, Method)
27   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, ShadingModel)
28   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, TransparencyMethod)
29   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, LineFeather)
30
31   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, PbrEnvPow2Size)
32   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, PbrEnvSpecMapNbLevels)
33   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, PbrEnvBakingDiffNbSamples)
34   
35   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, PbrEnvBakingSpecNbSamples)
36   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, PbrEnvBakingProbability)
37   
38   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, OitDepthFactor)
39   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, NbMsaaSamples)
40   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, RenderResolutionScale)
41   
42   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, ToEnableDepthPrepass)
43   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, ToEnableAlphaToCoverage)
44   
45   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, IsGlobalIlluminationEnabled)
46   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, SamplesPerPixel)
47   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, RaytracingDepth)
48   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, IsShadowEnabled)
49   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, IsReflectionEnabled)
50   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, IsAntialiasingEnabled)
51   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, IsTransparentShadowEnabled)
52   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, UseEnvironmentMapBackground)
53   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, ToIgnoreNormalMapInRayTracing)
54   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, CoherentPathTracingMode)
55
56   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, AdaptiveScreenSampling)
57   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, AdaptiveScreenSamplingAtomic)
58   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, ShowSamplingTiles)
59   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, TwoSidedBsdfModels)
60   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, RadianceClampingValue)
61   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, RebuildRayTracingShaders)
62   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, RayTracingTileSize)
63   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, NbRayTracingTiles)
64
65   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, CameraApertureRadius)
66   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, CameraFocalPlaneDist)
67   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, FrustumCullingState)
68   
69   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, ToneMappingMethod)
70   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, Exposure)
71   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, WhitePoint)
72   
73   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, StereoMode)
74   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, AnaglyphFilter)
75   OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &AnaglyphLeft)
76   OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &AnaglyphRight)
77   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, ToReverseStereo)
78   
79   OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, StatsPosition.get())
80   OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, ChartPosition.get())
81   OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &ChartSize)
82   OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, StatsTextAspect.get())
83   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, StatsUpdateInterval)
84   
85   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, StatsTextHeight)
86   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, StatsNbFrames)
87   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, StatsMaxChartTime)
88   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, CollectedStats)
89   
90   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, ToShowStats)
91   
92   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, Resolution)
93 }