1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00
Commit Graph

4958 Commits

Author SHA1 Message Date
nds
6104e99df7 0031362: Inspectors - MessageView plugin for message alerts 2020-11-24 22:08:47 +03:00
nds
dea3e24f68 0031362: Inspectors - MessageView plugin for message alerts
(cherry picked from commit 09254e6ab360b059762ac2d18f0a607ac14b8591)
2020-11-24 21:33:37 +03:00
nds
dd9cb11a20 0031326: Foundation Classes - Init from Json for base OCCT classes
InitFromJson method implementation for some simple classes.
OCCT_INIT_* defines introduction to do automatic parsing of the stream into values.
Inspector is extended to visualize objects created on the dump stream if it might be created.

(cherry picked from commit 6b63dc83c3)

# Conflicts:
#	src/Standard/Standard_Dump.hxx
2020-11-19 17:10:58 +03:00
nds
deef4f37f4 0031944: Foundation Classes - mutex for message level
(cherry picked from commit 0f07a04a85dedd375a5383f3cb0031c0a6d6b329)
(cherry picked from commit 1bd8dfa582)
2020-11-19 16:16:51 +03:00
nds
6070750198 0031945: Foundation Classes - unique names of alerts of message report in DumpJson 2020-11-19 16:11:53 +03:00
nds
4eb3e3b90f 0031362: Inspectors - MessageView plugin for message alerts
DumpJson correction

(cherry picked from commit 1f4dcce7ee5da0846acd124a3ff900aaad1d2cbd)
(cherry picked from commit 03f183f4fea1992f1ee05ded17a88db1dc434ee0)
(cherry picked from commit 45db541dd3dac1890ac10ce09b6605ddcce82e53)
(cherry picked from commit 8b7b151aa4ccbe46ddeeecf59d18577e0fb3d8b2)

# Conflicts:
#	src/Select3D/Select3D_SensitiveEntity.cxx
#	src/Standard/Standard_Dump.hxx
#	src/gp/gp_Ax1.cxx
#	src/gp/gp_Ax2.cxx
#	src/gp/gp_Ax3.cxx
#	src/gp/gp_Dir.cxx
#	src/gp/gp_Mat.cxx
#	src/gp/gp_Pnt.cxx
#	src/gp/gp_Trsf.cxx
2020-11-19 15:58:01 +03:00
nds
59a6dfcaff 0029451: Information Message Alert to debug an algorithm or object functionality
- Added possibility to send stream information and transient object into Message_Messenger. Message_Printer will process it if needed.
- Add Message_PrinterToReport to send messenger information into Message_Report.
- Extended Message_Report to collect hierarchical alerts, to be able to collect some metrics during alerts processing.
- Added Message_AlertExtended to prepare hierarchical alerts with custom attributes. One attribute for one alert.
- Added Message_CompositeAlerts class to handle a container of alerts.
- Added Message_Level to start a new hierarchical level by creating an instance, stop by destricting.
- Added Message_Attribute and inheritors to store custom information about alert like object, stream, shape, some metrics.
- Implement Message_AttributeAlert to collect start/stop information about active metrics of Message_Report. This kind of attribute is created if at least one metric is active in the report.
- Add Message_MetricType enumeration with possible kinds of metrics in report.
- Implement DumpJson for Message_Report to store all collected alerts into stream.
- Added draw commands for Message_Report, Message_Messenger.

(cherry picked from commit 6522304c17)

# Conflicts:
#	src/Message/FILES
#	src/Message/Message.hxx
#	src/Message/Message_Messenger.hxx
#	src/Message/Message_Printer.hxx
2020-11-19 15:19:08 +03:00
nds
fb3ed41db7 0030268: Inspectors - improvements in VInspector plugin
- Convert package creation. It is used to prepare some auxiliary presentations/methods to prepare variables for inspector based on occt classes.
- ViewControl package improvement:
  Classes for property view, table, table model are implemented to visualize view of properties.
  This view is filled by selection in tree if the selected object has implemented DumpJson functionality.
- TreeModel package improvements:
  Method InitColumn is implemented in TreeModel_TreeModel to fill default columns in base model. The default columns are:
    Name, Visibility, Rows. Additional columns should be added in successors.
  Container of root items is moved into the base class
- View package imrovements:
  Store preferences: display mode, fit all checked state and type of external context
  View_DisplayPreview is added to process preview for selected in tree view objects
  hide actions Clear, Multi, Single by default (as selection in tree view or Visibility state of item define which presentations should be displayed or erased)
- ShapeView plugin improvements:
  Property View content based on DumpJson (columns in tree view for properties are removed),
  Properties for TopoDS_Shape are displayed
  Explode shape action in tree view to see content of shape by selected shape type. Type of displayed shapes is only preview, it is not used in export action.
  Export shape into BREP. The previous implementation about BREP files in some directory and default view is removed.
- VInspector plugin imrovements:
  Property View content based on DumpJson (columns in tree view for properties are removed),
  Properties for AIS_InteractiveContext and AIS_InteractiveObject are displayed
  obsolete classes to provide properties are removed.
- DFBrowser plugin improvements:
  Property View content based on DumpJson is not used yet. But there is the USE_DUMPJSON macro. It's switch off by default.
  If switch ON, it creates a Property View filled with DumpJson. It's a way of DFBrowser moving on this property view.
  Init uses static variable CDF_Session::CurrentSession()->CurrentApplication to fill plugin if application in plugin is not set but OCAF application exists

- OCC_VERSION_HEX variable used for previous OCCT versions support (before 6.9.0 or 7.2.0) is removed

(cherry picked from commit 7e1c1e4869)
(cherry picked from commit 8a7e728175d13baf6d5e1ddc7663fdec8f4ed842)
2020-11-19 14:21:29 +03:00
nds
dd0ba8379e 0031313: Foundation Classes - Dump improvement for classes
- Provide DumpJson for geometrical, ocaf and visualization classes;
- Change depth parameter of DumpJson (constant is not obligate here)
- Introduce a new macro for transient objects to be called as the first row in DumpJson: OCCT_DUMP_TRANSIENT_CLASS_BEGIN. We need not put the class name in the macro, using get_type_name of Standard_Transient for it.
- change implementation of OCCT_DUMP_CLASS_BEGIN and OCCT_DUMP_TRANSIENT_CLASS_BEGIN. It is not an sentry more and it does not create a new hierarchy level. It appends a new row into the output stream: "className": <className>
- OCCT_DUMP_* does not require semicolon
- class header is included first in source files of TDataStd, TDocStd, TCAFDoc

(cherry picked from commit bc73b00672)

# Conflicts:
#	src/AIS/AIS_Trihedron.cxx
#	src/Geom/Geom_Conic.cxx
#	src/Geom/Geom_Conic.hxx
#	src/Geom/Geom_ElementarySurface.cxx
#	src/Geom/Geom_ElementarySurface.hxx
#	src/Geom2d/Geom2d_Conic.hxx
#	src/Graphic3d/Graphic3d_BSDF.cxx
#	src/Graphic3d/Graphic3d_MaterialAspect.hxx
#	src/Graphic3d/Graphic3d_PBRMaterial.cxx
#	src/Graphic3d/Graphic3d_PBRMaterial.hxx
#	src/OpenGl/OpenGl_GraduatedTrihedron.hxx
#	src/OpenGl/OpenGl_StencilTest.hxx
#	src/Poly/Poly_Polygon2D.cxx
#	src/Poly/Poly_Polygon2D.hxx
#	src/Poly/Poly_Polygon3D.cxx
#	src/Poly/Poly_PolygonOnTriangulation.cxx
#	src/Quantity/Quantity_Color.cxx
#	src/TDataStd/TDataStd_NamedData.hxx
#	src/V3d/V3d_Viewer.hxx
#	src/XCAFDoc/XCAFDoc_AssemblyItemId.cxx
#	src/XCAFDoc/XCAFDoc_NoteBinData.cxx
#	src/XCAFDoc/XCAFDoc_NoteComment.cxx
#	src/XCAFDoc/XCAFDoc_NotesTool.cxx
#	src/XCAFDoc/XCAFDoc_NotesTool.hxx
#	src/XCAFDoc/XCAFDoc_VisMaterial.cxx
#	src/XCAFDoc/XCAFDoc_VisMaterial.hxx
#	src/XCAFDoc/XCAFDoc_VisMaterialCommon.hxx
#	src/XCAFDoc/XCAFDoc_VisMaterialPBR.hxx
2020-11-19 14:04:05 +03:00
sshutina
26bfa42da5 0031336: Modeling data - extend BRepPrimAPI_MakeBox with planar shape creation
-Create a new package BRepPreviewAPI, inherited from BRepPrimAPI to create both, valid and degenerative shapes
-Create a new class BRepPreviewAPI_MakeBox for working with a box
    Preview can be vertex, edge, rectangle or box
-BRepPrim_GWedge: in the case of non-valid data, the exception does not happen in the constructor, but at the moment of access to the shape
-BRepPrimAPI_MakeBox: myWedge is now not private, but protected, because used in  BRepPreviewAPI_MakeBox which inherits from BRepPrimAPI_MakeBox
-Add tests for checking of a creation a preview in tests/geometry/preview (vertex, edge, rectangle, box)
-Update a command "box": add new parameters

(cherry picked from commit 10ac040338)
(cherry picked from commit e926516509df095cd9f1ddfd774b7e54df923c90)
2020-11-19 13:01:58 +03:00
nds
17cdf626d9 0030997: Foundation Classes - name correction of dump macros
(cherry picked from commit 3de0f78449)
2020-11-19 12:42:18 +03:00
nds
617c27a6ce 0030949: Foundation Classes - Dump improvement for OCCT classes
1. new file Standard_Dump to prepare and parse Dump in JSON format for OCCT objects
2. some presentations cover the proposed dump functionality.
3. 'bounding', 'vaspects' has '-dumpJson' field to see the DumpJson result
4. Bnd_Box constructor with min/max points is implemented to use Dump of this class in Dump BVH_Box
5. Limitation (some classes of Graphic3d, Prs3d has not full filling for DumpJson)

(cherry picked from commit 0904aa6395)

# Conflicts:
#	src/OpenGl/OpenGl_Group.hxx
#	src/SelectMgr/SelectMgr_ViewerSelector.cxx
2020-11-19 12:32:52 +03:00
nds
0e8d1aef20 0030904: Visualization - OSD_MemInfo provide Update with parameter of computation kind
Added method OSD_MemInfo::SetActive() for disabling specific counter.

(cherry picked from commit eeeb58738f)
(cherry picked from commit 8ba570a1b6140ff2bf47d9c87baca8b846ffa755)
(cherry picked from commit 30ed014a3e726d75082c35519e3c6fbe29742dec)
(cherry picked from commit 82afec25b64d04d5d0b7cfa5aca20e9556495ef6)
(cherry picked from commit 157ba236509ca28aaed3eca18dedb72186ff1191)
(cherry picked from commit 851779a01e421d19ce4c683a4fcad513118b30ec)
2020-11-19 11:50:29 +03:00
kgv
273202ae68 0031490: Foundation Classes, Poly_Connect - speed up temporary allocations
Poly_Connect::Load() now uses NCollection_IncAllocator instead of new/delete
for allocation temporary sequence elements.

StdPrs_ShadedShape, fillFaceBoundaries() now uses NCollection_IncAllocator for temporary points.

(cherry picked from commit 26a8852696a6311eb9f8d19d556aa40e506750ab)
(cherry picked from commit 841b43a3785687b6496f76d8e03a7fb2a3b61e78)
2020-11-19 11:50:07 +03:00
kgv
b0e70a7d4b 0031356: Visualization - out of range within StdPrs_WFShape::AddEdgesOnTriangulation()
Removed unused code causing the issue.

(cherry picked from commit 07269d43f7c0610adeadf9e71f4fc09aa4e2e5ed)
(cherry picked from commit 431a68f3b86150e24130d27b4e75a9eccbf03e9e)
2020-11-19 11:49:51 +03:00
sshutina
c89df2e894 0031579: Visualization - OpenGl_CappingAlgo performance on some clipping planes
(cherry picked from commit 80d9b6b370c5b0fbec24540a14401d0e0655cfbe)
(cherry picked from commit 352c2a2de85ba35870d47ba35beb5b48bb20498c)
2020-11-19 11:46:37 +03:00
sshutina
b9893c6c66 0031786: Data Exchange - After the importing STEP file the free shape is empty
- Fixed the exception

(cherry picked from commit e0d75dd7ab4938f9bb15aea1fc75c7f9290ceacb)
(cherry picked from commit 22cf5903afa0d88de856b30fdf9bf836c333951a)
2020-11-19 11:46:13 +03:00
age
ffdf673ef3 0031757: Visualization - Prebuild BVH for Select3D_SensitiveEntity in separate threads
(cherry picked from commit bb598fe0216163889af6aa054ec8081eb1cfd384)
2020-11-19 11:45:44 +03:00
age
76413cb11c 0031716: Visualization, Select3D_SensitiveSet::matches() - avoid building BVH in case of full overlapping by the volume
(cherry picked from commit e3925e3256767e40cb9325ed14457f689322723c)
(cherry picked from commit 4bf07dc7778d3fd2e0b057aca027103f612e3144)
2020-11-19 11:43:28 +03:00
oan
2713e81361 0031378: Modeling algorithms - brep incremental mesh is frozen during STEP file loading
Refactoring of BRepMesh_Delaun::isBoundToFrontier() to unwind the recursion loop.

(cherry picked from commit 012157a272)
(cherry picked from commit 5e79b5279e0f6a7a9fbb8e978f3fdcd0b766e051)
(cherry picked from commit 919432a8ed)
(cherry picked from commit 4477f12c4364729611674f2b388506fb2fb6cf23)
2020-11-19 11:43:18 +03:00
nds
f57c6bb5e1 0031221: Visualization - selection filter in context
(cherry picked from commit 7f8014f280f940a7fdeceaf8a612769dc43eaa79)
2020-11-19 11:43:06 +03:00
nds
c51d9e6afc 0031197: Visualization - SetTransformPersistence for highlight, select presentations
(cherry picked from commit df3644aa35)
(cherry picked from commit 7731de42d9)
(cherry picked from commit 31de2e4041c6ffd70f82d9cec39b808b9003d0e2)
2020-11-19 11:42:53 +03:00
snn
31d0ae41f2 0030988: Add possibility to attach multiple files to notes
(cherry picked from commit 4128aadd54571c6b8555fe43cd1a5bd6b9c6cdc5)
2020-11-19 11:42:45 +03:00
tma
52dc944ecb 0030957: Assembly item Id should not start with '/' symbol
(cherry picked from commit 71b4fb4b10d050440971ca12af6d25e8989ec8ba)
(cherry picked from commit 7b296f0230)
(cherry picked from commit 93d0334ed84c0ea9163a55da791ab148bb14d0a4)
2020-11-19 11:42:34 +03:00
nds
7c5c228b57 0030784: Visualization - check if selectable of owner in internal container in AIS_InteractiveContext before using
(cherry picked from commit 2bc07cefcaa41c16f47bc4dc5a4b86f5b1c87261)
2020-11-19 11:42:23 +03:00
nds
b97265edf4 0030737: Visualization - implementing new selection schemes in context
(cherry picked from commit 951d93f193cdc00724586df1903ad39fc487cecd)
(cherry picked from commit 56b6cb31213165fbebb66cad0ec96cf7861cd090)
2020-11-19 11:42:12 +03:00
nds
c422080bc9 0030537: Visualization - wrapping text in font text formatter
Font_TextFormatter inherits Standard_Transient, now it is given as a handle in functions.
Graphic3d_Text - extended with Font_TextFormatter to be able to have it filled out of text render. If it is not defined here, the default text formatter of context is used.
OpenGl_Context - has default Font_TextFormatter for rendering OpenGl_Text.

(cherry picked from commit 088d118ab9e3693a01c4c41e2bdad57c69d17bc9)
2020-11-19 11:41:58 +03:00
nds
f15477abf4 0030791: Visualization - possibility to display materials by different hatching style for clipping
(cherry picked from commit 86a2beb9c4c6c61f70a9f7341da2c2c5e4dc4948)
2020-11-19 11:41:46 +03:00
nds
a86f07abdc 0030728: Visualization - using one implementation of highlight/unhighlight in context
(cherry picked from commit 6ce13a8f52e43760d67fec2dc7e06930ca28d4f9)
2020-11-19 11:41:35 +03:00
snn
d606a4a2db 0030392: XCAFDoc_GraphNode doesn't copy backward links
(cherry picked from commit 6131065fae)
(cherry picked from commit 713624228050b8f7db4d8b2e22c7edfd8c832471)
(cherry picked from commit b7fb7db6ae)
(cherry picked from commit 68be9e7b9c)
(cherry picked from commit 4401d8b29ba0fcc7d14ff0456a7204fe0ae5d29b)
2020-11-19 11:40:36 +03:00
nds
8b9c4644db refs 474:Possibility to create and play animations
(cherry picked from commit d9a231a9ce2499615952944cae1a0db6552db2e4)
(cherry picked from commit ab078490cd)
(cherry picked from commit 277ea0a15e589efd7128f915959a18a59ebdfd1c)
(cherry picked from commit 89d8a85dd8)
(cherry picked from commit 7bc6dba60c)
(cherry picked from commit d50043348c2ff6d755e3b41579a0686286e07649)
2020-11-19 11:40:28 +03:00
nds
96ceafb09b refs #355: Add possibility to hide clipping plane
(cherry picked from commit ca1f82f6c6860a2e1995d7d9a66ce8c152e9d3cc)
(cherry picked from commit 61f39b4dc7)
(cherry picked from commit 7b08ab936a5f6091651fc0311c5c255bd0dc9cb0)

# Conflicts:
#	src/XCAFDoc/XCAFDoc.hxx
(cherry picked from commit 72e4a10556)
(cherry picked from commit 37d575793d)
(cherry picked from commit 5caf3f5b0c1ee000c93cb92e5bb8f8a1c6b50ff3)
2020-11-19 11:40:20 +03:00
nds
93e7cd3228 XCAFDoc/View fixes to store in the view: image, parts transparency, notes, notes positions
- Improve performance of the storage of the transparent state of the assembly leafs

(cherry picked from commit b050e0a15c06403adfa545ad793555491a0b6b9f)
(cherry picked from commit 7099619e5d)
(cherry picked from commit ccd4b101f5ab18ab3518b9779e88d687e2db6ff1)
2020-11-19 11:38:15 +03:00
jgv
a22151d83c 0030927: Modeling Algorithms - UnifySameDom looses the Closed flag for wires
Add setting the Closed flag for a new wire
2019-08-30 18:07:53 +03:00
vro
990d032c90 0030926: Data Exchange - Change of the number of GDT points of a View may lead to a crash 2019-08-29 19:09:49 +03:00
kgv
b383a61fbd 0030923: Visualization, AIS_ViewCube - avoid mixing non-zoomable text and trihedron-persistence
Box sides labels are now drawn with zoomable flag.
2019-08-29 19:08:55 +03:00
anv
07f2064617 0030919: ACIS Import - Improving translation of string attributes into XDE
- Added possibility to get (or create if absent) a properties attribute via ShapeTool;
- Added Draw command to print properties attached to a Label.
2019-08-29 19:07:12 +03:00
emv
fb64d0f4a2 0030914: Modeling Algorithms - Improve performance of UnifySameDom algorithm for specific case with many edges
Use cached containers to find the necessary shapes.
2019-08-29 19:06:12 +03:00
emv
115d350e09 0030913: Invalid result of Fusing slices
Refactoring of the Line-Line intersection method strengthening the parallel and coincidence criteria to allow almost parallel lines have an intersection point.
2019-08-29 19:04:39 +03:00
emv
3dd193aa6d 0030903: Bug in IntCurvesFace_ShapeIntersector
When classifying the intersection point check the ON status in 3D - compare the 3D distances with 3D tolerance.
2019-08-29 19:03:48 +03:00
kgv
87018b452a 0030924: Coding - incorrect header in file OSD_ThreadPool.hxx
Fixed license statements within files BRepGProp_MeshProps.cxx, BRepGProp_MeshProps.hxx,
OSD_ThreadPool.cxx and OSD_ThreadPool.hxx.

Removed non-ASCII char from BRepMesh_ModelHealer.hxx.
2019-08-29 19:02:45 +03:00
kgv
61f73653ba 0030915: Visualization - AIS_ColorScale::FindColor() returns Wrong color for maximal value
Map the very upper value (theValue==theMax) to the largest color interval.
2019-08-26 15:16:14 +03:00
nds
8ed0708507 0030857: Visualization - using one implementation of Text in graphic group
Graphic3d_Group::Text(...) are obsolete, AddText() should be used instead of these methods.
Graphic3d_Text is a new class for parameters necessary to fill OpenGl_Text. All parameters of Graphic3d_Group::Text() are moved into this class.

OpenGl_TextParam is removed, these fields were moved into Graphic3d_Text.
OpenGl_Text constructors/Init with OpenGl_TextParam parameter were removed. Constructor with Graphic3d_Text should be used instead of it.
Using OpenGl_Text Init() with OpenGl_TextParam should be now replaced on two cases. The first case is setting values into Graphic3d_Text and the second case is calling Reset() after. As example, look at modification in OpenGl_FrameStatsPrs.
2019-08-23 16:58:25 +03:00
iko
077a220c51 0030807: Visualization, TKOpenGl - supporting cubemaps
A cubemap texture initialization has been implemented.
Setting environment cubemap as interactive background is posssible now.
2019-08-23 16:56:40 +03:00
emv
c5cee3222f 0030905: Modeling Algorithms - Faulty shapes in UnifySameDomain
Make face FORWARD before adding wire in it.
2019-08-23 16:56:39 +03:00
anv
e837b3a26c 0029662: Modeling Data - Allow replacement of Compounds via BRepTools_ReShape
- Fixed condition to allow proceeding of nested compounds;
- Added new key to "reshape" draw command to state a level of type until which requests are taken into account;
- Test case added.
2019-08-23 16:56:39 +03:00
drazmyslovich
846245d4b2 0030874: Modeling Algorithms - GCPnts_TangentialDeflection inserts the points between nearby points
Check the points distance before inserting a new point in between.
2019-08-23 16:56:38 +03:00
kgv
d7fa57a7a3 0030906: Visualization, SelectMgr_ViewerSelector - Object clipping planes overrides View clipping plane for next objects
Clipping range has been moved from SelectMgr_RectangularFrustum to SelectMgr_SelectingVolumeManager
and passed to frustum as an argument to Overlap() methods.
This fixes an issue when Clipping is customized per-object within SelectMgr_ViewerSelector::traverseObject()
in case when shallow copy of SelectMgr_SelectingVolumeManager is created
(frustums are copied from global frustum manager by Handle).
2019-08-23 16:56:37 +03:00
nds
0be11733a7 0030901: Visualization - OSD_MemInfo moving memory computation out of the constructor 2019-08-16 17:34:37 +03:00
kgv
c64135f723 0030900: Configuration - fix compilation using macOS SDK before 10.12
ViewerTest - added compatibility defines.
2019-08-16 12:16:47 +03:00