mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024023: Revamp the OCCT Handle -- general
Missing headers added; includes of headers "Handle_...hxx" removed. Misuses of macro Handle() and its use in typedefs corrected. Alias classes Profile and Option are removed from IFSelect; ones defined in MoniTool are used directly. Removed header files defining only Handle classes (except Image_PixMap_Handle.hxx) Classes SelectMgr_BaseFrustum and now inherit Standard_Transient and can be manipulated by Handle (not NCollection_Handle) Fixed reference-type local variable pointing to temporary object Use of handle in conditional expressions and comparisons to NULL are replaced by call to method IsNull()
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
#include <gp_Ax2.hxx>
|
||||
#include <GeomToStep_MakeAxis2Placement3d.hxx>
|
||||
#include <StepGeom_Axis2Placement3d.hxx>
|
||||
#include <StepGeom_Point.hxx>
|
||||
#include <StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx.hxx>
|
||||
|
||||
#include <STEPConstruct_Part.hxx>
|
||||
#include <STEPConstruct_Assembly.hxx>
|
||||
|
@@ -15,8 +15,8 @@
|
||||
// gka 05.04.99 S4136: parameters definitions changed
|
||||
#include <STEPControl_Controller.ixx>
|
||||
#include <StepSelect_WorkLibrary.hxx>
|
||||
#include <IFSelect_Option.hxx>
|
||||
#include <IFSelect_Profile.hxx>
|
||||
#include <MoniTool_Option.hxx>
|
||||
#include <MoniTool_Profile.hxx>
|
||||
|
||||
//#include <StepAP214.hxx>
|
||||
#include <RWStepAP214.hxx>
|
||||
@@ -280,14 +280,14 @@ STEPControl_Controller::STEPControl_Controller ()
|
||||
|
||||
// ActorRead : on ajoute le cas Shape possible, a part du default
|
||||
// ainsi, on l a tjrs sous la main
|
||||
Handle(IFSelect_Option) optacrd = Profile()->Option("tr-read");
|
||||
Handle(MoniTool_Option) optacrd = Profile()->Option("tr-read");
|
||||
optacrd->Add ("shape",theAdaptorRead);
|
||||
|
||||
// ActorWrite : on ajoute les cas possibles (NB : shape == default)
|
||||
// On garde a part les cas shape compound (= shape traitee globale ou en
|
||||
// assembly), peuvent etre utiles. Tandis que les autres cas sont
|
||||
// susceptibles d etre remplaces si on fait du Model-Editor
|
||||
Handle(IFSelect_Option) optacwr = Profile()->Option("tr-write");
|
||||
Handle(MoniTool_Option) optacwr = Profile()->Option("tr-write");
|
||||
Handle(STEPControl_ActorWrite) ActWSh = new STEPControl_ActorWrite;
|
||||
ActWSh->SetGroupMode(0);
|
||||
optacwr->Add ("shape",ActWSh);
|
||||
|
Reference in New Issue
Block a user