occt: master c357e426

Author Committer Branch Timestamp Parent
apl kgv master 2015-09-22 08:49:33 master 97d87ffa
Affected Issues  0024776: Visualization - inherit OpenGl_View from Graphic3d_CView
Changeset 0024776: Visualization - inherit OpenGl_View from Graphic3d_CView

Expose interface of OpenGl_View (OpenGL graphics rendering methods) to client code
and collecting all high-level API methods of application views in V3d_View class.

1) Exposing interface of OpenGl_View:

The OpenGl_View inherits from new class Graphic3d_CView.
Graphic3d_CView is an interface class that declares abstract methods for managing displayed structures,
display properties and a base layer code that implements computation
and management of HLR (or more broadly speaking view-depended) structures.

In new implementation it takes place of eliminated Visual3d_View.
As before the instance of Graphic3d_CView is still completely managed by V3d_View classes.
It can be accessed through V3d_View interface but normally this should not be required as all its methods are completely wrapped.

In more details, a concrete specialization of Graphic3d_CView is created and returned by graphical driver on request.
Right after creation the views is directly used for setting rendering properties and adding graphical structures to be displayed.

The rendering of graphics is possible after mapping a window and activating the view.
The direct setting of properties makes obsolete usage of intermediate structures with display parameter
like Visual3d_ContextView and etc (the whole package of Visual3d become redundant).

2) Collecting all high-level API methods of application views in V3d package:

The patch includes elimination of Visual3d layer.
All of its methods that could be previously used by application are now exposed and should be accessed on the level of V3d entities.
- Introduced new class Graphic3d_CView.
  This is a base class for render views.
  Made possible to specialize concrete instances of the class by graphical driver.
- Moved all methods managing rendering views into interface of Graphic3d_CView.
  The corresponding methods were removed from interface of graphical driver.

3) Eliminated Visual3d package:

- Logic of managing display of structures was put from Visual3d_ViewManager into Graphic3d_StructureManager.
- Removed Visual3d_View class. Logic of managing computed structures was put into base layer of Graphi3d_CView.
- Removed all intermediate structures for storing view parameters e.g. Visual3d_ContextView.
  All settings are kept by instances of Graphic3d_CView
- Removed Visual3d_Light intermediate class.
  All light properties are still stored in Graphic3d_CLight structure.
  The structure is directly access by instance of V3d_Light classes.
- Moved all needed enumerations into Graphic3d package.

4) Update package D3DHost to new changes.

5) Update code of OCCT samples to new changes.
mod - adm/UDLIST Diff File
mod - samples/CSharp/OCCTProxy_D3D/OCCTProxyD3D.cpp Diff File
mod - samples/mfc/standard/03_Viewer2d/src/StdAfx.h Diff File
mod - samples/mfc/standard/Common/OCC_3dView.cpp Diff File
mod - samples/mfc/standard/Common/OCC_BaseDoc.cpp Diff File
mod - samples/mfc/standard/Common/StdAfx.h Diff File
mod - samples/qt/Common/src/View.cxx Diff File
mod - src/AIS/AIS_InteractiveContext.cxx Diff File
mod - src/AIS/AIS_InteractiveContext_1.cxx Diff File
mod - src/AIS/AIS_InteractiveContext_2.cxx Diff File
mod - src/AIS/AIS_LocalContext.cxx Diff File
mod - src/AIS/AIS_LocalContext_1.cxx Diff File
mod - src/Aspect/Aspect_GraphicCallbackProc.hxx Diff File
mod - src/D3DHost/D3DHost_GraphicDriver.cxx Diff File
mod - src/D3DHost/D3DHost_GraphicDriver.hxx Diff File
mod - src/D3DHost/FILES Diff File
mod - src/Graphic3d/FILES Diff File
mod - src/Graphic3d/Graphic3d_Camera.cxx Diff File
mod - src/Graphic3d/Graphic3d_CAspectFillArea.hxx Diff File
mod - src/Graphic3d/Graphic3d_CAspectLine.hxx Diff File
mod - src/Graphic3d/Graphic3d_CAspectMarker.hxx Diff File
mod - src/Graphic3d/Graphic3d_CAspectText.hxx Diff File
mod - src/Graphic3d/Graphic3d_CLight.hxx Diff File
mod - src/Graphic3d/Graphic3d_CStructure.hxx Diff File
add - src/Graphic3d/Graphic3d_CView.cxx Diff File
mod - src/Graphic3d/Graphic3d_CView.hxx Diff File
mod - src/Graphic3d/Graphic3d_GraduatedTrihedron.hxx Diff File
mod - src/Graphic3d/Graphic3d_GraphicDriver.cxx Diff File
mod - src/Graphic3d/Graphic3d_GraphicDriver.hxx Diff File
mod - src/Graphic3d/Graphic3d_Group.cxx Diff File
mod - src/Graphic3d/Graphic3d_MaterialAspect.hxx Diff File
mod - src/Graphic3d/Graphic3d_Structure.cxx Diff File
mod - src/Graphic3d/Graphic3d_StructureManager.cxx Diff File
mod - src/Graphic3d/Graphic3d_StructureManager.hxx Diff File
mod - src/Graphic3d/Graphic3d_TextureEnv.hxx Diff File
mod - src/InterfaceGraphic/FILES Diff File
rm - src/InterfaceGraphic/InterfaceGraphic_Aspect.hxx Diff File
rm - src/InterfaceGraphic/InterfaceGraphic_Visual3d.hxx Diff File
mod - src/OpenGl/FILES Diff File
mod - src/OpenGl/OpenGl_Context.cxx Diff File
mod - src/OpenGl/OpenGl_Context.hxx Diff File
rm - src/OpenGl/OpenGl_CView.hxx Diff File
mod - src/OpenGl/OpenGl_GraduatedTrihedron.cxx Diff File
mod - src/OpenGl/OpenGl_GraduatedTrihedron.hxx Diff File
mod - src/OpenGl/OpenGl_GraphicDriver.cxx Diff File
mod - src/OpenGl/OpenGl_GraphicDriver.hxx Diff File
rm - src/OpenGl/OpenGl_GraphicDriver_4.cxx Diff File
rm - src/OpenGl/OpenGl_GraphicDriver_7.cxx Diff File
rm - src/OpenGl/OpenGl_GraphicDriver_713.cxx Diff File
rm - src/OpenGl/OpenGl_GraphicDriver_Export.cxx Diff File
mod - src/OpenGl/OpenGl_Group.cxx Diff File
mod - src/OpenGl/OpenGl_Layer.cxx Diff File
mod - src/OpenGl/OpenGl_LayerList.cxx Diff File
mod - src/OpenGl/OpenGl_LayerList.hxx Diff File
mod - src/OpenGl/OpenGl_Light.hxx Diff File
mod - src/OpenGl/OpenGl_ShaderManager.cxx Diff File
mod - src/OpenGl/OpenGl_ShaderManager.hxx Diff File
mod - src/OpenGl/OpenGl_ShaderStates.hxx Diff File
mod - src/OpenGl/OpenGl_telem_util.cxx Diff File
mod - src/OpenGl/OpenGl_Text.cxx Diff File
mod - src/OpenGl/OpenGl_Trihedron.cxx Diff File
mod - src/OpenGl/OpenGl_Trihedron.hxx Diff File
mod - src/OpenGl/OpenGl_View.cxx Diff File
mod - src/OpenGl/OpenGl_View.hxx Diff File
rm - src/OpenGl/OpenGl_View_2.cxx Diff File
mod - src/OpenGl/OpenGl_View_Raytrace.cxx Diff File
add - src/OpenGl/OpenGl_View_Redraw.cxx Diff File
mod - src/OpenGl/OpenGl_Window.cxx Diff File
mod - src/OpenGl/OpenGl_Window.hxx Diff File
mod - src/OpenGl/OpenGl_Window_1.mm Diff File
mod - src/OpenGl/OpenGl_Workspace.cxx Diff File
mod - src/OpenGl/OpenGl_Workspace.hxx Diff File
rm - src/OpenGl/OpenGl_Workspace_5.cxx Diff File
mod - src/PrsMgr/PrsMgr_Presentation.cxx Diff File
mod - src/PrsMgr/PrsMgr_PresentationManager.cxx Diff File
mod - src/PrsMgr/PrsMgr_PresentationManager.hxx Diff File
mod - src/PrsMgr/PrsMgr_PresentationManager.lxx Diff File
mod - src/QABugs/QABugs_8.cxx Diff File
mod - src/StdSelect/StdSelect_ViewerSelector3d.cxx Diff File
mod - src/TKV3d/CMakeLists.txt Diff File
mod - src/TKV3d/PACKAGES Diff File
mod - src/V3d/V3d.cxx Diff File
mod - src/V3d/V3d.hxx Diff File
mod - src/V3d/V3d_AmbientLight.cxx Diff File
mod - src/V3d/V3d_AmbientLight.hxx Diff File
mod - src/V3d/V3d_CircularGrid.cxx Diff File
mod - src/V3d/V3d_DirectionalLight.cxx Diff File
mod - src/V3d/V3d_DirectionalLight.hxx Diff File
mod - src/V3d/V3d_Light.cxx Diff File
mod - src/V3d/V3d_Light.hxx Diff File
mod - src/V3d/V3d_Plane.cxx Diff File
mod - src/V3d/V3d_PositionalLight.cxx Diff File
mod - src/V3d/V3d_PositionalLight.hxx Diff File
mod - src/V3d/V3d_PositionLight.cxx Diff File
mod - src/V3d/V3d_PositionLight.hxx Diff File
mod - src/V3d/V3d_RectangularGrid.cxx Diff File
mod - src/V3d/V3d_SpotLight.cxx Diff File
mod - src/V3d/V3d_SpotLight.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/V3d/V3d_Viewer_1.cxx Diff File
mod - src/V3d/V3d_Viewer_2.cxx Diff File
mod - src/V3d/V3d_Viewer_3.cxx Diff File
mod - src/V3d/V3d_Viewer_4.cxx Diff File
mod - src/V3d/V3d_View_1.cxx Diff File
mod - src/V3d/V3d_View_2.cxx Diff File
mod - src/V3d/V3d_View_3.cxx Diff File
mod - src/V3d/V3d_View_4.cxx Diff File
mod - src/V3d/V3d_View_5.cxx Diff File
mod - src/V3d/V3d_View_Print.cxx Diff File
mod - src/ViewerTest/ViewerTest_ObjectCommands.cxx Diff File
mod - src/ViewerTest/ViewerTest_OpenGlCommands.cxx Diff File
mod - src/ViewerTest/ViewerTest_ViewerCommands.cxx Diff File
rm - src/Visual3d/FILES Diff File
rm - src/Visual3d/Visual3d_ClipDefinitionError.hxx Diff File
rm - src/Visual3d/Visual3d_ContextPick.cxx Diff File
rm - src/Visual3d/Visual3d_ContextPick.hxx Diff File
rm - src/Visual3d/Visual3d_ContextPickDefinitionError.hxx Diff File
rm - src/Visual3d/Visual3d_ContextView.cxx Diff File
rm - src/Visual3d/Visual3d_ContextView.hxx Diff File
rm - src/Visual3d/Visual3d_DepthCueingDefinitionError.hxx Diff File
rm - src/Visual3d/Visual3d_HSequenceOfLight.hxx Diff File
rm - src/Visual3d/Visual3d_HSequenceOfView.hxx Diff File
rm - src/Visual3d/Visual3d_LayerDefinitionError.hxx Diff File
rm - src/Visual3d/Visual3d_Light.cxx Diff File
rm - src/Visual3d/Visual3d_Light.hxx Diff File
rm - src/Visual3d/Visual3d_LightDefinitionError.hxx Diff File
rm - src/Visual3d/Visual3d_NListOfLayerItem.hxx Diff File
rm - src/Visual3d/Visual3d_PickError.hxx Diff File
rm - src/Visual3d/Visual3d_SequenceOfLight.hxx Diff File
rm - src/Visual3d/Visual3d_SequenceOfView.hxx Diff File
rm - src/Visual3d/Visual3d_TransformError.hxx Diff File
rm - src/Visual3d/Visual3d_TypeOfOrder.hxx Diff File
rm - src/Visual3d/Visual3d_TypeOfProjection.hxx Diff File
rm - src/Visual3d/Visual3d_View.cxx Diff File
rm - src/Visual3d/Visual3d_View.hxx Diff File
rm - src/Visual3d/Visual3d_ViewDefinitionError.hxx Diff File
rm - src/Visual3d/Visual3d_ViewManager.cxx Diff File
rm - src/Visual3d/Visual3d_ViewManager.hxx Diff File
rm - src/Visual3d/Visual3d_ViewManagerDefinitionError.hxx Diff File
rm - src/Visual3d/Visual3d_ViewManagerPtr.hxx Diff File
rm - src/Visual3d/Visual3d_ViewMappingDefinitionError.hxx Diff File
rm - src/Visual3d/Visual3d_ViewOrientationDefinitionError.hxx Diff File
rm - src/Visual3d/Visual3d_ViewPtr.hxx Diff File
rm - src/Visual3d/Visual3d_ZClippingDefinitionError.hxx Diff File
mod - tests/bugs/vis/bug25671 Diff File