mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
Quantity_ColorRGBA has been introduced as convenient structure holding Vec4 for OpenGL. Graphic3d_PolygonOffset has been added as replacement for TEL_POFFSET_PARAM. Duplicating definition of Hatch Styles TEL_HS_*** has been removed; Aspect_HatchStyle enum now follows values of TEL_HS_*** for compatibility. TelCullMode enum has been removed. Aspect_AspectLine has been merged into Graphic3d_AspectLine3d. Aspect_AspectMarker has been merged into Graphic3d_AspectMarker3d. Aspect_AspectFillArea has been merged into Graphic3d_AspectFillArea3d. Graphic3d_CAspectFillArea have been removed. OpenGl_AspectLine now stores Graphic3d_AspectLine3d as class field. OpenGl_AspectMarker now stores Graphic3d_AspectMarker3d as class field. OpenGl_AspectText now stores Graphic3d_AspectText3d as class field. OpenGl_AspectFace now stores Graphic3d_AspectFillArea3d as class field. Graphic3d_AspectFillArea3d - back face culling is now enabled by default. TKOpenGl now relies on Graphic3d_Group::IsClosed() flag to disable face culling. StdPrs_ShadedShape now does not modify aspect for different culling modes. Headers InterfaceGraphic_Graphic3d.hxx, InterfaceGraphic_telem.hxx, InterfaceGraphic_tgl_all.hxx defining obsolete structures CALL_DEF_COLOR, CALL_DEF_POINT, CALL_DEF_MATERIAL, CALL_DEF_TRANSFORM_PERSISTENCE, TEL_POINT, TEL_COLOUR have been removed. Useless and broken test case bugs/vis/buc60821 has been removed. OpenGl_Workspace::myAspectFaceApplied and myAspectMarkerApplied have been replaced from OpenGl_AspectFace*/OpenGl_AspectMarker* to Handle(Graphic3d_AspectFillArea3d)/Handle(Graphic3d_AspectMarker3d). This eliminates reading from freed memory (e.g. when OpenGl_AspectFace is allocated on stack like in OpenGl_Trihedron). OpenGl_PrimitiveArray::drawEdges() - fix drawing non-indexed array from VBO (access violation due to NULL handle). AIS_Dimension::DrawArrow() - added missing initialization of 3D arrow aspect. AIS_Manipulator::Compute() now creates dedicated Face Aspect for each axis. V3d_CircularGrid, V3d_RectangularGrid now create dedicated line aspects with different color. AIS_InteractiveObject::SetMaterial() - do not modify global ShadingAspect.
119 lines
3.7 KiB
C
Executable File
119 lines
3.7 KiB
C
Executable File
// stdafx.h : include file for standard system include files,
|
|
// or project specific include files that are used frequently, but
|
|
// are changed infrequently
|
|
//
|
|
|
|
#if _MSC_VER >= 1000
|
|
#pragma once
|
|
#endif // _MSC_VER >= 1000
|
|
|
|
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
|
|
|
|
#include <afxwin.h> // MFC core and standard components
|
|
#include <afxext.h> // MFC extensions
|
|
#include <afxdisp.h> // MFC OLE automation classes
|
|
#ifndef _AFX_NO_AFXCMN_SUPPORT
|
|
#include <afxcmn.h> // MFC support for Windows Common Controls
|
|
#endif // _AFX_NO_AFXCMN_SUPPORT
|
|
|
|
#pragma warning( disable : 4244 ) // Issue warning 4244
|
|
#include "Standard_ShortReal.hxx"
|
|
#pragma warning( default : 4244 ) // Issue warning 4244
|
|
|
|
#include <Standard.hxx>
|
|
#include <Standard_PrimitiveTypes.hxx>
|
|
|
|
#include <AIS_InteractiveContext.hxx>
|
|
#include <AIS_Line.hxx>
|
|
#include <AIS_Shape.hxx>
|
|
#include <AIS_Point.hxx>
|
|
#include <AIS_TexturedShape.hxx>
|
|
#include <Aspect_Grid.hxx>
|
|
#include <Aspect_PolygonOffsetMode.hxx>
|
|
#include <Aspect_DisplayConnection.hxx>
|
|
|
|
#include <BRep_Tool.hxx>
|
|
#include <BRepTools.hxx>
|
|
#include <BRepBuilderAPI_NurbsConvert.hxx>
|
|
#include <BRepPrimAPI_MakeCylinder.hxx>
|
|
#include <BRepBuilderAPI_MakeEdge.hxx>
|
|
#include <BRepBuilderAPI_MakeWire.hxx>
|
|
#include <BRepBuilderAPI_MakeFace.hxx>
|
|
#include <BRepBndLib.hxx>
|
|
#include <BRepAdaptor_HArray1OfCurve.hxx>
|
|
#include <BRepAdaptor_Curve2d.hxx>
|
|
#include <BRepBuilderAPI_MakeVertex.hxx>
|
|
|
|
|
|
#include <GCPnts_QuasiUniformDeflection.hxx>
|
|
#include <Geom2d_TrimmedCurve.hxx>
|
|
#include <GeomLib.hxx>
|
|
#include <Geom_Surface.hxx>
|
|
#include <Geom_Curve.hxx>
|
|
#include <Geom_Plane.hxx>
|
|
#include <Geom_CartesianPoint.hxx>
|
|
#include <Graphic3d_Group.hxx>
|
|
#include <Graphic3d_HorizontalTextAlignment.hxx>
|
|
#include <Graphic3d_VerticalTextAlignment.hxx>
|
|
#include <Graphic3d_Array1OfVertex.hxx>
|
|
#include <Graphic3d_ArrayOfPolylines.hxx>
|
|
#include <Graphic3d_ExportFormat.hxx>
|
|
#include <Graphic3d_ArrayOfPolylines.hxx>
|
|
#include <Graphic3d_AspectFillArea3d.hxx>
|
|
#include <Graphic3d_AspectText3d.hxx>
|
|
#include <Graphic3d_AspectLine3d.hxx>
|
|
#include <Graphic3d_AspectMarker3d.hxx>
|
|
#include <Graphic3d_Texture1Dsegment.hxx>
|
|
#include <gp_Pln.hxx>
|
|
#include <gp.hxx>
|
|
#include <gp_Pnt2d.hxx>
|
|
|
|
#include <OpenGl_GraphicDriver.hxx>
|
|
#include <Prs3d_Root.hxx>
|
|
#include <Prs3d_Drawer.hxx>
|
|
#include <Prs3d_IsoAspect.hxx>
|
|
#include <Prs3d_ShadingAspect.hxx>
|
|
#include <Prs3d_Presentation.hxx>
|
|
#include <PrsMgr_PresentationManager3d.hxx>
|
|
#include <Prs3d_TextAspect.hxx>
|
|
#include <Prs3d_Text.hxx>
|
|
|
|
#include <Select3D_SensitiveBox.hxx>
|
|
#include <Select3D_SensitiveCurve.hxx>
|
|
#include <Select3D_SensitiveGroup.hxx>
|
|
#include <SelectMgr_Selection.hxx>
|
|
#include <SelectMgr_SequenceOfOwner.hxx>
|
|
#include <SelectMgr_EntityOwner.hxx>
|
|
#include <ShapeBuild_Edge.hxx>
|
|
#include <StdSelect_ViewerSelector3d.hxx>
|
|
#include <StdPrs_ShadedShape.hxx>
|
|
#include <StdPrs_HLRPolyShape.hxx>
|
|
#include <StdSelect_BRepSelectionTool.hxx>
|
|
#include <StdPrs_WFShape.hxx>
|
|
#include <StdPrs_ToolRFace.hxx>
|
|
#include <StdSelect.hxx>
|
|
#include <StdSelect_BRepOwner.hxx>
|
|
#include <StdSelect_BRepSelectionTool.hxx>
|
|
|
|
#include <TCollection_AsciiString.hxx>
|
|
#include "TopExp.hxx"
|
|
#include <TopExp_Explorer.hxx>
|
|
#include <TopoDS.hxx>
|
|
#include <TopoDS_Builder.hxx>
|
|
#include <TopoDS_Compound.hxx>
|
|
#include <TopoDS_ListOfShape.hxx>
|
|
#include <TopoDS_ListIteratorOfListOfShape.hxx>
|
|
#include <TopoDS_Iterator.hxx>
|
|
#include "TopoDS_Edge.hxx"
|
|
#include "TopoDS_Vertex.hxx"
|
|
#include <TopTools_HSequenceOfShape.hxx>
|
|
#include <TopTools_IndexedMapOfShape.hxx>
|
|
|
|
#include <V3d_Viewer.hxx>
|
|
#include <V3d_View.hxx>
|
|
#include <WNT_Window.hxx>
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
|
|