mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +03:00
0024002: Overall code and build procedure refactoring - samples
Modified MFC samples; minor fix in headers (for building products)
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
#include "gp_Dir.hxx"
|
||||
#include "gp_Vec.hxx"
|
||||
#include "AIS_InteractiveObject.hxx"
|
||||
|
||||
class ISession_Direction;
|
||||
DEFINE_STANDARD_HANDLE(ISession_Direction,AIS_InteractiveObject)
|
||||
class ISession_Direction : public AIS_InteractiveObject
|
||||
{
|
||||
@@ -24,7 +24,7 @@ public:
|
||||
ISession_Direction(const gp_Pnt& aPnt,const gp_Pnt& aPnt2);
|
||||
ISession_Direction(const gp_Pnt& aPnt,const gp_Vec& aVec);
|
||||
|
||||
DEFINE_STANDARD_RTTI(ISession_Direction)
|
||||
DEFINE_STANDARD_RTTI(ISession_Direction,AIS_InteractiveObject)
|
||||
|
||||
private:
|
||||
|
||||
@@ -32,7 +32,7 @@ private:
|
||||
const Handle(Prs3d_Presentation)& aPresentation,
|
||||
const Standard_Integer aMode);
|
||||
|
||||
void ComputeSelection (const class Handle_SelectMgr_Selection &,const int){};
|
||||
void ComputeSelection (const class Handle(SelectMgr_Selection) &,const int){};
|
||||
|
||||
private:
|
||||
|
||||
|
@@ -278,7 +278,7 @@ void CModelingDoc::OnTranslation()
|
||||
gp_Trsf theTransformation;
|
||||
gp_Vec theVectorOfTranslation(-6,-6,6);
|
||||
|
||||
Handle (ISession_Direction) aDirection1 = new ISession_Direction(gp_Pnt(0,0,0),theVectorOfTranslation);
|
||||
Handle(ISession_Direction) aDirection1 = new ISession_Direction(gp_Pnt(0,0,0),theVectorOfTranslation);
|
||||
myAISContext->Display(aDirection1,Standard_False);
|
||||
|
||||
theTransformation.SetTranslation(theVectorOfTranslation);
|
||||
@@ -4992,10 +4992,10 @@ void CModelingDoc::InputEvent(const Standard_Integer /*x*/,
|
||||
TopoDS_Edge Ed3 = BRepBuilderAPI_MakeEdge(C3,theSurface).Edge();
|
||||
|
||||
C2 = GCE2d_MakeSegment(C1->Value(C1->FirstParameter()),
|
||||
C3->Value(C3->FirstParameter()));
|
||||
C3->Value(C3->FirstParameter())).Value();
|
||||
TopoDS_Edge Ed2 = BRepBuilderAPI_MakeEdge(C2,theSurface).Edge();
|
||||
C4 = GCE2d_MakeSegment(C1->Value(C1->LastParameter()),
|
||||
C3->Value(C3->LastParameter()));
|
||||
C3->Value(C3->LastParameter())).Value();
|
||||
TopoDS_Edge Ed4 = BRepBuilderAPI_MakeEdge(C4,theSurface).Edge();
|
||||
Ed2.Reverse();
|
||||
Ed3.Reverse();
|
||||
@@ -5004,10 +5004,10 @@ void CModelingDoc::InputEvent(const Standard_Integer /*x*/,
|
||||
BRepLib::BuildCurves3d(theFace);
|
||||
if (!BRepAlgo::IsValid(theFace)){
|
||||
C2 = GCE2d_MakeSegment(C1->Value(C1->LastParameter()),
|
||||
C3->Value(C3->FirstParameter()));
|
||||
C3->Value(C3->FirstParameter())).Value();
|
||||
TopoDS_Edge Ed2 = BRepBuilderAPI_MakeEdge(C2,theSurface).Edge();
|
||||
C4 = GCE2d_MakeSegment(C3->Value(C3->LastParameter()),
|
||||
C1->Value(C1->FirstParameter()));
|
||||
C1->Value(C1->FirstParameter())).Value();
|
||||
TopoDS_Edge Ed4 = BRepBuilderAPI_MakeEdge(C4,theSurface).Edge();
|
||||
Ed3.Reverse();
|
||||
theWire = BRepBuilderAPI_MakeWire(Ed1,Ed2,Ed3,Ed4);
|
||||
|
@@ -107,6 +107,7 @@
|
||||
#include <Geom2d_Line.hxx>
|
||||
#include <GeomAPI_PointsToBSplineSurface.hxx>
|
||||
#include <GeomAPI_PointsToBSpline.hxx>
|
||||
#include <Geom_BSplineCurve.hxx>
|
||||
#include <GeomFill_BSplineCurves.hxx>
|
||||
#include <LocOpe_FindEdges.hxx>
|
||||
#include <TopoDS_Compound.hxx>
|
||||
@@ -133,7 +134,7 @@
|
||||
#include <GeomPlate_Surface.hxx>
|
||||
#include <GeomProjLib.hxx>
|
||||
#include <GCE2d_MakeSegment.hxx>
|
||||
|
||||
#include <Geom2d_TrimmedCurve.hxx>
|
||||
#include "ISession_Direction.h"
|
||||
|
||||
#include <UnitsAPI.hxx>
|
||||
|
Reference in New Issue
Block a user