occt: master dc89236f
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
anv | bugmaster | master | 2018-02-08 15:41:09 | master 8bf738e6 |
Affected Issues | 0029097: Visualization - allow picking Graphic3d_TypeOfShadingModel per-object | |||
Changeset | 0029097: Visualization - allow picking Graphic3d_TypeOfShadingModel per-object Graphic3d_AspectFillArea3d has been extended by new property ::ShadingModel(), which is set to Graphic3d_TOSM_DEFAULT by default. The new API allows assigning Shading Model to specific Primitive Array groups instead of entire Viewer, which was the only possibility before. Graphic3d_TypeOfShadingModel has been extended with Graphic3d_TOSM_DEFAULT value meaining that Shading Model defined as default for the Viewer should be used. Graphic3d_TOSM_NONE has been renamed to Graphic3d_TOSM_UNLIT. Documentation of Shading Models has been improved by more details. V3d_TypeOfShadingModel enumeration has been merged into Graphic3d_TypeOfShadingModel avoiding duplicated definitions and confusion. Old values has been left for compatibility with old code and can be marked deprecated in future. Draw Harness command vaspects has been extended by new argument -setShadingModel for testing Shading Models assigned to entire objects. OpenGl_SetOfShaderPrograms now holds an array of Shading Models. OpenGl_ShaderManager interface has been modified and now requires enumeration as input in several places where Boolean flags have been used previously (methods ::BindFaceProgram(), ::BindLineProgram(), ::BindMarkerProgram()). OpenGl_Workspace now defines default (undefined) OpenGl_AspectFace as Graphic3d_TOSM_UNLIT to simplify indication of primitive groups with undefined Fill Area aspects, and so that Graphic3d_TOSM_UNLIT set as default Shading Model will not make artifacts on Lines and Markers. AIS_Manipulator::Axis::Compute() - added missing initialization of Fill Area aspects (leading to undefined behavior). |
|||
mod - dox/dev_guides/upgrade/upgrade.md | Diff File | |||
mod - src/AIS/AIS_Manipulator.cxx | Diff File | |||
mod - src/Graphic3d/Graphic3d_AspectFillArea3d.cxx | Diff File | |||
mod - src/Graphic3d/Graphic3d_AspectFillArea3d.hxx | Diff File | |||
mod - src/Graphic3d/Graphic3d_CView.cxx | Diff File | |||
mod - src/Graphic3d/Graphic3d_CView.hxx | Diff File | |||
mod - src/Graphic3d/Graphic3d_TypeOfShadingModel.hxx | Diff File | |||
mod - src/OpenGl/OpenGl_AspectFace.cxx | Diff File | |||
mod - src/OpenGl/OpenGl_AspectFace.hxx | Diff File | |||
mod - src/OpenGl/OpenGl_Context.cxx | Diff File | |||
mod - src/OpenGl/OpenGl_PrimitiveArray.cxx | Diff File | |||
mod - src/OpenGl/OpenGl_SetOfShaderPrograms.hxx | Diff File | |||
mod - src/OpenGl/OpenGl_ShaderManager.cxx | Diff File | |||
mod - src/OpenGl/OpenGl_ShaderManager.hxx | Diff File | |||
mod - src/OpenGl/OpenGl_Text.cxx | Diff File | |||
mod - src/OpenGl/OpenGl_TextureSet.cxx | Diff File | |||
mod - src/OpenGl/OpenGl_TextureSet.hxx | Diff File | |||
mod - src/OpenGl/OpenGl_View.cxx | Diff File | |||
mod - src/OpenGl/OpenGl_View.hxx | Diff File | |||
mod - src/OpenGl/OpenGl_View_Raytrace.cxx | Diff File | |||
mod - src/OpenGl/OpenGl_View_Redraw.cxx | Diff File | |||
mod - src/OpenGl/OpenGl_Workspace.cxx | Diff File | |||
mod - src/Prs3d/Prs3d_Drawer.cxx | Diff File | |||
mod - src/Prs3d/Prs3d_Drawer.hxx | Diff File | |||
mod - src/V3d/V3d_TypeOfShadingModel.hxx | Diff File | |||
mod - src/V3d/V3d_View.cxx | Diff File | |||
mod - src/V3d/V3d_View.hxx | Diff File | |||
mod - src/V3d/V3d_Viewer.cxx | Diff File | |||
mod - src/V3d/V3d_Viewer.hxx | Diff File | |||
mod - src/ViewerTest/ViewerTest.cxx | Diff File | |||
mod - src/ViewerTest/ViewerTest.hxx | Diff File | |||
mod - src/ViewerTest/ViewerTest_OpenGlCommands.cxx | Diff File | |||
mod - src/ViewerTest/ViewerTest_ViewerCommands.cxx | Diff File | |||
add - tests/v3d/glsl/shading_models | Diff File |