mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0024887: Visualization - revise and extend Raytracing controls
Fix material test case. Fix ray-tracing test case and sample.
This commit is contained in:
@@ -135,6 +135,8 @@ uses
|
||||
PrintAlgo from Aspect,
|
||||
ClipPlane_Handle from Graphic3d,
|
||||
SequenceOfHClipPlane from Graphic3d,
|
||||
RenderingMode from Graphic3d,
|
||||
RenderingParams from Graphic3d,
|
||||
XYZ from gp
|
||||
raises
|
||||
|
||||
@@ -1627,37 +1629,15 @@ is
|
||||
-- @param theDXv [in] the translation in "x" direction.
|
||||
-- @param theDYv [in] the translation in "y" direction.
|
||||
|
||||
SetRaytracingMode (me : mutable) is static;
|
||||
---Level: Public
|
||||
---Purpose: enables OpenCL-based ray-tracing mode
|
||||
|
||||
SetRasterizationMode (me : mutable) is static;
|
||||
---Level: Public
|
||||
---Purpose: enables OpenGL-based rasterization mode
|
||||
|
||||
EnableRaytracedShadows (me : mutable) is static;
|
||||
---Level: Public
|
||||
---Purpose: enables sharp shadows in OpenCL-based ray-tracing mode
|
||||
|
||||
EnableRaytracedReflections (me : mutable) is static;
|
||||
---Level: Public
|
||||
---Purpose: enables specular reflections in OpenCL-based ray-tracing mode
|
||||
|
||||
EnableRaytracedAntialiasing (me : mutable) is static;
|
||||
---Level: Public
|
||||
---Purpose: enables antialiasing in OpenCL-based ray-tracing mode
|
||||
|
||||
DisableRaytracedShadows (me : mutable) is static;
|
||||
---Level: Public
|
||||
---Purpose: disables sharp shadows in OpenCL-based ray-tracing mode
|
||||
|
||||
DisableRaytracedReflections (me : mutable) is static;
|
||||
---Level: Public
|
||||
---Purpose: disables specular reflections in OpenCL-based ray-tracing mode
|
||||
|
||||
DisableRaytracedAntialiasing (me : mutable) is static;
|
||||
---Level: Public
|
||||
---Purpose: disables antialiasing in OpenCL-based ray-tracing mode
|
||||
RenderingParams (me) returns RenderingParams from Graphic3d is static;
|
||||
---C++: return const &
|
||||
---Level: Public
|
||||
---Purpose: Returns current rendering parameters and effect settings.
|
||||
|
||||
ChangeRenderingParams (me : mutable) returns RenderingParams from Graphic3d is static;
|
||||
---C++: return &
|
||||
---Level: Public
|
||||
---Purpose: Returns reference to current rendering parameters and effect settings.
|
||||
|
||||
fields
|
||||
|
||||
|
@@ -53,60 +53,14 @@ Standard_Boolean V3d_View::IsGLLightEnabled() const
|
||||
return MyView->IsGLLightEnabled();
|
||||
}
|
||||
|
||||
void V3d_View::SetRaytracingMode()
|
||||
const Graphic3d_RenderingParams& V3d_View::RenderingParams() const
|
||||
{
|
||||
Graphic3d_CView* cView = (Graphic3d_CView* )MyView->CView();
|
||||
|
||||
cView->IsRaytracing = 1;
|
||||
return static_cast<Graphic3d_CView*> (MyView->CView())->RenderParams;
|
||||
}
|
||||
|
||||
void V3d_View::SetRasterizationMode()
|
||||
Graphic3d_RenderingParams& V3d_View::ChangeRenderingParams()
|
||||
{
|
||||
Graphic3d_CView* cView = (Graphic3d_CView* )MyView->CView();
|
||||
|
||||
cView->IsRaytracing = 0;
|
||||
}
|
||||
|
||||
void V3d_View::EnableRaytracedShadows()
|
||||
{
|
||||
Graphic3d_CView* cView = (Graphic3d_CView* )MyView->CView();
|
||||
|
||||
cView->IsShadowsEnabled = 1;
|
||||
}
|
||||
|
||||
void V3d_View::EnableRaytracedReflections()
|
||||
{
|
||||
Graphic3d_CView* cView = (Graphic3d_CView* )MyView->CView();
|
||||
|
||||
cView->IsReflectionsEnabled = 1;
|
||||
}
|
||||
|
||||
void V3d_View::EnableRaytracedAntialiasing()
|
||||
{
|
||||
Graphic3d_CView* cView = (Graphic3d_CView* )MyView->CView();
|
||||
|
||||
cView->IsAntialiasingEnabled = 1;
|
||||
}
|
||||
|
||||
void V3d_View::DisableRaytracedShadows()
|
||||
{
|
||||
Graphic3d_CView* cView = (Graphic3d_CView* )MyView->CView();
|
||||
|
||||
cView->IsShadowsEnabled = 0;
|
||||
}
|
||||
|
||||
void V3d_View::DisableRaytracedReflections()
|
||||
{
|
||||
Graphic3d_CView* cView = (Graphic3d_CView* )MyView->CView();
|
||||
|
||||
cView->IsReflectionsEnabled = 0;
|
||||
}
|
||||
|
||||
void V3d_View::DisableRaytracedAntialiasing()
|
||||
{
|
||||
Graphic3d_CView* cView = (Graphic3d_CView* )MyView->CView();
|
||||
|
||||
cView->IsAntialiasingEnabled = 0;
|
||||
return static_cast<Graphic3d_CView*> (MyView->CView())->RenderParams;
|
||||
}
|
||||
|
||||
void V3d_View::SetLayerMgr(const Handle(V3d_LayerMgr)& aMgr)
|
||||
|
Reference in New Issue
Block a user