mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-16 10:08:36 +03:00
0029047: Upgrade guide -- some changes in OCCT 7.2.0 are not described
Upgrade Guide is updated to describe: - Removal of typedefs to double in Quantity and V3d - Removal of support of orientation in classes BRepTools_ReShape and ShapeBuild_ReShape - Removal of AIS methods taking/returning Quantity_NameOfColor instead of Quantity_Color - Removal of active texture state from OpenGl_Workspace
This commit is contained in:
parent
0cb512c013
commit
4bcc20301e
@ -1156,7 +1156,13 @@ The following obsolete features have been removed:
|
|||||||
* The method Perform of the *ShapeConstruct_ProjectCurveOnSurface* class is modified:
|
* The method Perform of the *ShapeConstruct_ProjectCurveOnSurface* class is modified:
|
||||||
- input arguments *continuity*, *maxdeg*, *nbinterval* have been removed as unused;
|
- input arguments *continuity*, *maxdeg*, *nbinterval* have been removed as unused;
|
||||||
- input arguments *TolFirst*, *TolLast* have been added at the end of arguments' list.
|
- input arguments *TolFirst*, *TolLast* have been added at the end of arguments' list.
|
||||||
* The functionality to process shapes different only in orientation by different ways was removed from types *BRepTools_ReShape* and *ShapeBuild_ReShape*.
|
* Typedefs Quantity_Factor, Quantity_Parameter, Quantity_Ratio, Quantity_Coefficient, Quantity_PlaneAngle, Quantity_Length, V3d_Parameter and V3d_Coordinate have been removed; Standard_Real should be used instead.
|
||||||
|
|
||||||
|
@subsection upgrade_occt720_reshape_oriented_removed Corrections in BRepOffset API
|
||||||
|
|
||||||
|
In classes *BRepTools_ReShape* and *ShapeBuild_ReShape*, the possibility to process shapes different only by orientation in different ways has been removed.
|
||||||
|
Thus methods *Remove()* and *Replace()* do not have any more the last argument 'oriented'; they work always as if *Standard_False* was passed before (default behavior).
|
||||||
|
Methods *ModeConsiderLo()* and *Apply()* with three arguments have been removed.
|
||||||
|
|
||||||
@subsection upgrade_occt720_correction_of_Offset_API Corrections in BRepOffset API
|
@subsection upgrade_occt720_correction_of_Offset_API Corrections in BRepOffset API
|
||||||
|
|
||||||
@ -1213,6 +1219,8 @@ Management of highlight attributes has been revised and might require modificati
|
|||||||
- *myZLayer*, replaced by *myDrawer->ZLayer()*
|
- *myZLayer*, replaced by *myDrawer->ZLayer()*
|
||||||
* The method *PrsMgr_PresentationManager::Unhighlight()* taking Display Mode as an argument has been marked deprecated.
|
* The method *PrsMgr_PresentationManager::Unhighlight()* taking Display Mode as an argument has been marked deprecated.
|
||||||
Implementation now performs unhighlighting of all highlighted presentation mode.
|
Implementation now performs unhighlighting of all highlighted presentation mode.
|
||||||
|
* The methods taking/returning *Quantity_NameOfColor* (predefined list of colors) and duplicating methods operating with *Quantity_Color* (definition of arbitrary RGB color) in AIS have been removed.
|
||||||
|
*Quantity_Color* should be now used instead.
|
||||||
|
|
||||||
@subsection upgrade_720_implicit_viewer_update Elimination of implicit 3D Viewer updates
|
@subsection upgrade_720_implicit_viewer_update Elimination of implicit 3D Viewer updates
|
||||||
|
|
||||||
@ -1226,7 +1234,7 @@ To avoid such issues, the interface has been modified and default value has been
|
|||||||
Therefore, old application code should be updated to set the flag theToUpdateViewer explicitly
|
Therefore, old application code should be updated to set the flag theToUpdateViewer explicitly
|
||||||
to desired value (TRUE to preserve old previous behavior), if it was not already set.
|
to desired value (TRUE to preserve old previous behavior), if it was not already set.
|
||||||
|
|
||||||
The follow AIS_InteractiveContext methods have been changed:
|
The following AIS_InteractiveContext methods have been changed:
|
||||||
Display, Erase, EraseAll, DisplayAll, EraseSelected, DisplaySelected, ClearPrs, Remove, RemoveAll, Hilight,
|
Display, Erase, EraseAll, DisplayAll, EraseSelected, DisplaySelected, ClearPrs, Remove, RemoveAll, Hilight,
|
||||||
HilightWithColor, Unhilight, Redisplay, RecomputePrsOnly, Update, SetDisplayMode, UnsetDisplayMode, SetColor,
|
HilightWithColor, Unhilight, Redisplay, RecomputePrsOnly, Update, SetDisplayMode, UnsetDisplayMode, SetColor,
|
||||||
UnsetColor, SetWidth, UnsetWidth, SetMaterial, UnsetMaterial, SetTransparency, UnsetTransparency,
|
UnsetColor, SetWidth, UnsetWidth, SetMaterial, UnsetMaterial, SetTransparency, UnsetTransparency,
|
||||||
@ -1273,7 +1281,8 @@ In most cases this change should be transparent, however applications implementi
|
|||||||
* Package BVH now uses opencascade::handle instead of NCollection_Handle (for classes BVH_Properties, BVH_Builder, BVH_Tree, BVH_Object).
|
* Package BVH now uses opencascade::handle instead of NCollection_Handle (for classes BVH_Properties, BVH_Builder, BVH_Tree, BVH_Object).
|
||||||
Application code using BVH package directly should be updated accordingly.
|
Application code using BVH package directly should be updated accordingly.
|
||||||
* AIS_Shape now computes UV texture coordinates for AIS_Shaded presentation in case if texture mapping is enabled within Shaded Attributes.
|
* AIS_Shape now computes UV texture coordinates for AIS_Shaded presentation in case if texture mapping is enabled within Shaded Attributes.
|
||||||
Therefore, redundant class AIS_TexturedShape has been marked deprecated - applications can use AIS_Shape directly (texture mapping should be defined through AIS_Shape::Attributes()).
|
Therefore, redundant class *AIS_TexturedShape is now deprecated* - applications can use *AIS_Shape* directly (texture mapping should be defined through AIS_Shape::Attributes()).
|
||||||
|
* Methods for managing active texture within OpenGl_Workspace class (ActiveTexture(), DisableTexture(), EnableTexture()) have been moved to *OpenGl_Context::BindTextures()*.
|
||||||
|
|
||||||
@subsection upgrade_720_BOP_DataStructure BOP - Pairs of interfering indices
|
@subsection upgrade_720_BOP_DataStructure BOP - Pairs of interfering indices
|
||||||
|
|
||||||
@ -1353,7 +1362,7 @@ NCollection_Handle<Storage_BaseDriver> aFileDriver(new FSD_File());
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
OCC_CATCH_SIGNALS
|
OCC_CATCH_SIGNALS
|
||||||
PCDM_ReadWriter::Open(*aFileDriver, TCollection_ExtendedString(CStringA(filename).GetBuffer()), Storage_VSWrite);
|
PCDM_ReadWriter::Open (*aFileDriver, TCollection_ExtendedString(theFilename), Storage_VSWrite);
|
||||||
}
|
}
|
||||||
catch (Standard_Failure& e)
|
catch (Standard_Failure& e)
|
||||||
{
|
{
|
||||||
@ -1361,7 +1370,7 @@ catch (Standard_Failure& e)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Create a storage data instance
|
// Create a storage data instance
|
||||||
Handle(StdStorage_Data) aData = new StdStorage_Data;
|
Handle(StdStorage_Data) aData = new StdStorage_Data();
|
||||||
// Set an axiliary application name (optional)
|
// Set an axiliary application name (optional)
|
||||||
aData->HeaderData()->SetApplicationName(TCollection_ExtendedString("Application"));
|
aData->HeaderData()->SetApplicationName(TCollection_ExtendedString("Application"));
|
||||||
|
|
||||||
@ -1380,8 +1389,7 @@ for (Standard_Integer i = 1; i <= shapes.Length(); ++i)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Construct a root name
|
// Construct a root name
|
||||||
TCollection_AsciiString aName = "Shape_";
|
TCollection_AsciiString aName = TCollection_AsciiString("Shape_") + i;
|
||||||
aName += i;
|
|
||||||
|
|
||||||
// Add a root to storage data
|
// Add a root to storage data
|
||||||
Handle(StdStorage_Root) aRoot = new StdStorage_Root(aName, aPShape);
|
Handle(StdStorage_Root) aRoot = new StdStorage_Root(aName, aPShape);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user