0029570: Visualization, Graphic3d_Aspect - merge Graphic3d_Group aspects
authorkgv <kgv@opencascade.com>
Sun, 3 Mar 2019 18:07:55 +0000 (21:07 +0300)
committerapn <apn@opencascade.com>
Thu, 7 Mar 2019 15:08:36 +0000 (18:08 +0300)
commitbf5f0ca20a86eab651ce94b3411cba354425c5a0
tree643a10642e2e9149b1ddea8a2363808f67374151
parente08a9b0302b04dadb0f723c02956bfc4cae2e876
0029570: Visualization, Graphic3d_Aspect - merge Graphic3d_Group aspects

Graphic3d_AspectFillArea3d, Graphic3d_AspectLine3d, Graphic3d_AspectMarker3d
and Graphic3d_AspectText3d have been merged into new class Graphic3d_Aspects.
The old classes are preserved as dummy sub-classes of Graphic3d_Aspects
preserving different per-aspect defaults.

Methods IsGroupPrimitivesAspectSet(), GroupPrimitivesAspect(), FillAreaAspect(),
LineAspect() and MarkerAspect() have been removed from Graphic3d_Group.
Instead, a new method Graphic3d_Group::ReplaceAspects() has been introduced
for replacing existing group aspects.

AIS_Shape now uses new method AIS_InteractiveObject::replaceAspects()
for updating computed groups with new aspects without presentation recomputation
in places where SynchronizeAspects() is not applicable.

OpenGl_AspectFace, OpenGl_AspectLine, OpenGl_AspectMarker
and OpenGl_AspectText have been merged into new class OpenGl_Aspects.

ViewerTest::parseColor() - fix uninitialized alpha component.
Graphic3d_AspectText3d/Prs3d_TextAspect - removed unused properties Space, ExpansionFactor, Angle.
Remove getters Values() deprecated since OCCT 7.1.0.
87 files changed:
dox/dev_guides/upgrade/upgrade.md
src/AIS/AIS_CameraFrustum.cxx
src/AIS/AIS_ColoredShape.cxx
src/AIS/AIS_ColoredShape.hxx
src/AIS/AIS_Dimension.cxx
src/AIS/AIS_InteractiveObject.cxx
src/AIS/AIS_InteractiveObject.hxx
src/AIS/AIS_Manipulator.cxx
src/AIS/AIS_PointCloud.cxx
src/AIS/AIS_Relation.cxx
src/AIS/AIS_RubberBand.cxx
src/AIS/AIS_Shape.cxx
src/AIS/AIS_Shape.hxx
src/AIS/AIS_TexturedShape.cxx
src/AIS/AIS_Triangulation.cxx
src/DsgPrs/DsgPrs.cxx
src/Graphic3d/FILES
src/Graphic3d/Graphic3d_AspectFillArea3d.cxx
src/Graphic3d/Graphic3d_AspectFillArea3d.hxx
src/Graphic3d/Graphic3d_AspectLine3d.cxx
src/Graphic3d/Graphic3d_AspectLine3d.hxx
src/Graphic3d/Graphic3d_AspectMarker3d.cxx
src/Graphic3d/Graphic3d_AspectMarker3d.hxx
src/Graphic3d/Graphic3d_AspectText3d.cxx
src/Graphic3d/Graphic3d_AspectText3d.hxx
src/Graphic3d/Graphic3d_AspectTextDefinitionError.hxx [deleted file]
src/Graphic3d/Graphic3d_Aspects.cxx [new file with mode: 0644]
src/Graphic3d/Graphic3d_Aspects.hxx [new file with mode: 0644]
src/Graphic3d/Graphic3d_Group.cxx
src/Graphic3d/Graphic3d_Group.hxx
src/Graphic3d/Graphic3d_MapOfAspectsToAspects.hxx [new file with mode: 0644]
src/Graphic3d/Graphic3d_PolygonOffset.hxx
src/MeshVS/MeshVS_TextPrsBuilder.cxx
src/OpenGl/FILES
src/OpenGl/OpenGl_AspectFace.cxx [deleted file]
src/OpenGl/OpenGl_AspectFace.hxx [deleted file]
src/OpenGl/OpenGl_AspectLine.cxx [deleted file]
src/OpenGl/OpenGl_AspectLine.hxx [deleted file]
src/OpenGl/OpenGl_AspectMarker.hxx [deleted file]
src/OpenGl/OpenGl_AspectText.cxx [deleted file]
src/OpenGl/OpenGl_AspectText.hxx [deleted file]
src/OpenGl/OpenGl_Aspects.cxx [new file with mode: 0644]
src/OpenGl/OpenGl_Aspects.hxx [new file with mode: 0644]
src/OpenGl/OpenGl_AspectsProgram.cxx [new file with mode: 0644]
src/OpenGl/OpenGl_AspectsProgram.hxx [new file with mode: 0644]
src/OpenGl/OpenGl_AspectsSprite.cxx [moved from src/OpenGl/OpenGl_AspectMarker.cxx with 87% similarity]
src/OpenGl/OpenGl_AspectsSprite.hxx [new file with mode: 0644]
src/OpenGl/OpenGl_AspectsTextureSet.cxx [new file with mode: 0644]
src/OpenGl/OpenGl_AspectsTextureSet.hxx [new file with mode: 0644]
src/OpenGl/OpenGl_BackgroundArray.cxx
src/OpenGl/OpenGl_BackgroundArray.hxx
src/OpenGl/OpenGl_CappingAlgo.cxx
src/OpenGl/OpenGl_CappingPlaneResource.cxx
src/OpenGl/OpenGl_CappingPlaneResource.hxx
src/OpenGl/OpenGl_Context.cxx
src/OpenGl/OpenGl_Context.hxx
src/OpenGl/OpenGl_FrameStatsPrs.cxx
src/OpenGl/OpenGl_FrameStatsPrs.hxx
src/OpenGl/OpenGl_GraduatedTrihedron.cxx
src/OpenGl/OpenGl_GraduatedTrihedron.hxx
src/OpenGl/OpenGl_GraphicDriver.cxx
src/OpenGl/OpenGl_Group.cxx
src/OpenGl/OpenGl_Group.hxx
src/OpenGl/OpenGl_PrimitiveArray.cxx
src/OpenGl/OpenGl_PrimitiveArray.hxx
src/OpenGl/OpenGl_ShaderManager.cxx
src/OpenGl/OpenGl_ShaderManager.hxx
src/OpenGl/OpenGl_Structure.cxx
src/OpenGl/OpenGl_Structure.hxx
src/OpenGl/OpenGl_Text.cxx
src/OpenGl/OpenGl_Text.hxx
src/OpenGl/OpenGl_View.cxx
src/OpenGl/OpenGl_View.hxx
src/OpenGl/OpenGl_View_Raytrace.cxx
src/OpenGl/OpenGl_View_Redraw.cxx
src/OpenGl/OpenGl_Workspace.cxx
src/OpenGl/OpenGl_Workspace.hxx
src/Prs3d/Prs3d_TextAspect.cxx
src/Prs3d/Prs3d_TextAspect.hxx
src/PrsMgr/PrsMgr_PresentableObject.cxx
src/PrsMgr/PrsMgr_PresentableObject.hxx
src/StdPrs/StdPrs_ShadedShape.cxx
src/StdPrs/StdPrs_WFShape.cxx
src/StdPrs/StdPrs_WFShape.hxx
src/ViewerTest/ViewerTest.cxx
src/ViewerTest/ViewerTest_ObjectCommands.cxx
src/ViewerTest/ViewerTest_OpenGlCommands.cxx