set_property(TARGET Geometry PROPERTY FOLDER Samples)
-install (TARGETS Geometry RUNTIME DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/bin${BUILD_POSTFIX}"
- ARCHIVE DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/lib${BUILD_POSTFIX}"
- LIBRARY DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/lib${BUILD_POSTFIX}")
+install (TARGETS Geometry
+ CONFIGURATIONS Release
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bin")
+install (TARGETS Geometry
+ CONFIGURATIONS RelWithDebInfo
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bin")
+install (TARGETS Geometry
+ CONFIGURATIONS Debug
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bind")
-include_directories (${CMAKE_SOURCE_DIR}/src
+include_directories (${CMAKE_BINARY_DIR}/inc
${Geometry_SRC_DIR}
${Geometry_ISESSION2D_DIR}
${Geometry_RESOURCE_DIR}
#define _GeoAlgo_Sol_HeaderFile
#ifndef _Handle_Geom_BSplineSurface_HeaderFile
-#include <Handle_Geom_BSplineSurface.hxx>
+#include <Geom_BSplineSurface.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#include "GeomSources.h"
#include "GeometryApp.h"
#include "MainFrm.h"
-
+#include <Geom_Curve.hxx>
+#include <Geom2d_Curve.hxx>
GeomSources::GeomSources()
{
}
AddSeparator(aDoc,Message);
//--------------------------------------------------------------
- DisplayCurve(aDoc,C);
+ DisplayCurve(aDoc,Handle(Geom2d_Curve)::DownCast(C));
Handle(ISession_Direction) aDirection = new ISession_Direction(P,V);
aDoc->GetISessionContext()->Display(aDirection, Standard_False);
aString += Message2;
DisplayPoint(aDoc,N,aString.ToCString(),false,0.5,0,-0.5);
- DisplayCurve(aDoc,C,false);
+ DisplayCurve(aDoc,Handle(Geom_Curve)::DownCast(C),Quantity_NOC_YELLOW,false);
if(NbResults>0)
{
DisplaySurface(aDoc,aSurface);
Handle(Geom_Ellipse) anEllips = GC_MakeEllipse(EL).Value();
- DisplayCurve(aDoc,anEllips,false);
+ DisplayCurve(aDoc,Handle(Geom_Curve)::DownCast(anEllips),Quantity_NOC_YELLOW,false);
TCollection_AsciiString aString;
Message += aC2DEntityTypeName; Message += " \n";
DisplayCurve(aDoc,circ2d,4,false);
- DisplayCurve(aDoc,C3D,false);
+ DisplayCurve(aDoc,Handle(Geom_Curve)::DownCast(C3D),Quantity_NOC_YELLOW,false);
DisplayCurve(aDoc,C2D,5,false);
Handle(ISession_Direction) aC3DCircleXAxisDirection = new ISession_Direction(C3DCircleXAxis.Location(),C3DCircleXAxis.Direction(),5.2);
\n");
AddSeparator(aDoc,Message);
//--------------------------------------------------------------
- Handle(Geom2d_Curve) E = GCE2d_MakeEllipse(EE);
+ Handle(Geom2d_Ellipse) E = GCE2d_MakeEllipse(EE);
Handle(ISession2D_Curve) aCurve = new ISession2D_Curve(E);
aCurve->SetColorIndex(3);
aCurve->SetTypeOfLine(Aspect_TOL_DOTDASH);
GC_MakeSegment(gp_Pnt(1,1,1),gp_Pnt(5,5,5));
Handle(Geom_TrimmedCurve) TC2 =
GC_MakeSegment(gp_Pnt(1,1,0),gp_Pnt(4,5,6));
- GeomFill_Pipe aPipe3(SPL1,TC1,TC2);
+ GeomFill_Pipe aPipe3(Handle(Geom_Curve)::DownCast(SPL1),TC1,TC2);
aPipe3.Perform();
Handle(Geom_Surface) aSurface3 = aPipe3.Surface();
Standard_CString aSurfaceEntityTypeName3="Not Computed";
DisplayPoint(aDoc,gp_Pnt2d(aCXmin,aCYmin),Standard_CString("aCXmin,aCYmin"));
DisplayPoint(aDoc,gp_Pnt2d(aCXmax,aCYmin),Standard_CString("aCXmax,aCYmin"));
- DisplayCurve(aDoc,GCE2d_MakeSegment(gp_Pnt2d(aCXmin,aCYmax),gp_Pnt2d(aCXmax,aCYmax)) ,4); // X,Ymax
- DisplayCurve(aDoc,GCE2d_MakeSegment(gp_Pnt2d(aCXmin,aCYmin),gp_Pnt2d(aCXmax,aCYmin)) ,4); // X,Ymin
- DisplayCurve(aDoc,GCE2d_MakeSegment(gp_Pnt2d(aCXmin,aCYmin),gp_Pnt2d(aCXmin,aCYmax)) ,4); // Xmin,Y
- DisplayCurve(aDoc,GCE2d_MakeSegment(gp_Pnt2d(aCXmax,aCYmin),gp_Pnt2d(aCXmax,aCYmax)) ,4); // Xmax,Y
+ DisplayCurve(aDoc,GCE2d_MakeSegment(gp_Pnt2d(aCXmin,aCYmax),gp_Pnt2d(aCXmax,aCYmax)).Value() ,4); // X,Ymax
+ DisplayCurve(aDoc,GCE2d_MakeSegment(gp_Pnt2d(aCXmin,aCYmin),gp_Pnt2d(aCXmax,aCYmin)).Value() ,4); // X,Ymin
+ DisplayCurve(aDoc,GCE2d_MakeSegment(gp_Pnt2d(aCXmin,aCYmin),gp_Pnt2d(aCXmin,aCYmax)).Value() ,4); // Xmin,Y
+ DisplayCurve(aDoc,GCE2d_MakeSegment(gp_Pnt2d(aCXmax,aCYmin),gp_Pnt2d(aCXmax,aCYmax)).Value() ,4); // Xmax,Y
DisplayPoint(aDoc,gp_Pnt2d(aSPL1Xmin,aSPL1Ymax),Standard_CString("aSPL1Xmin,aSPL1Ymax"));
DisplayPoint(aDoc,gp_Pnt2d(aSPL1Xmax,aSPL1Ymax),Standard_CString("aSPL1Xmax,aSPL1Ymax"));
DisplayPoint(aDoc,gp_Pnt2d(aSPL1Xmin,aSPL1Ymin),Standard_CString("aSPL1Xmin,aSPL1Ymin"));
DisplayPoint(aDoc,gp_Pnt2d(aSPL1Xmax,aSPL1Ymin),Standard_CString("aSPL1Xmax,aSPL1Ymin"));
- DisplayCurve(aDoc,GCE2d_MakeSegment(gp_Pnt2d(aSPL1Xmin,aSPL1Ymax),gp_Pnt2d(aSPL1Xmax,aSPL1Ymax)) ,4); // X,Ymax
- DisplayCurve(aDoc,GCE2d_MakeSegment(gp_Pnt2d(aSPL1Xmin,aSPL1Ymin),gp_Pnt2d(aSPL1Xmax,aSPL1Ymin)) ,4); // X,Ymin
- DisplayCurve(aDoc,GCE2d_MakeSegment(gp_Pnt2d(aSPL1Xmin,aSPL1Ymin),gp_Pnt2d(aSPL1Xmin,aSPL1Ymax)) ,4); // Xmin,Y
- DisplayCurve(aDoc,GCE2d_MakeSegment(gp_Pnt2d(aSPL1Xmax,aSPL1Ymin),gp_Pnt2d(aSPL1Xmax,aSPL1Ymax)) ,4); // Xmax,Y
+ DisplayCurve(aDoc,GCE2d_MakeSegment(gp_Pnt2d(aSPL1Xmin,aSPL1Ymax),gp_Pnt2d(aSPL1Xmax,aSPL1Ymax)).Value() ,4); // X,Ymax
+ DisplayCurve(aDoc,GCE2d_MakeSegment(gp_Pnt2d(aSPL1Xmin,aSPL1Ymin),gp_Pnt2d(aSPL1Xmax,aSPL1Ymin)).Value() ,4); // X,Ymin
+ DisplayCurve(aDoc,GCE2d_MakeSegment(gp_Pnt2d(aSPL1Xmin,aSPL1Ymin),gp_Pnt2d(aSPL1Xmin,aSPL1Ymax)).Value() ,4); // Xmin,Y
+ DisplayCurve(aDoc,GCE2d_MakeSegment(gp_Pnt2d(aSPL1Xmax,aSPL1Ymin),gp_Pnt2d(aSPL1Xmax,aSPL1Ymax)).Value() ,4); // Xmax,Y
DisplayPoint(aDoc,gp_Pnt2d(aSPL1Xmin,aSPL1Ymax),Standard_CString("aSPL2Xmin,aSPL2Ymax"));
DisplayPoint(aDoc,gp_Pnt2d(aSPL1Xmax,aSPL1Ymax),Standard_CString("aSPL2Xmax,aSPL2Ymax"));
DisplayPoint(aDoc,gp_Pnt2d(aSPL1Xmin,aSPL1Ymin),Standard_CString("aSPL2Xmin,aSPL2Ymin"));
DisplayPoint(aDoc,gp_Pnt2d(aSPL1Xmax,aSPL1Ymin),Standard_CString("aSPL2Xmax,aSPL2Ymin"));
- DisplayCurve(aDoc,GCE2d_MakeSegment(gp_Pnt2d(aSPL2Xmin,aSPL2Ymax),gp_Pnt2d(aSPL2Xmax,aSPL2Ymax)) ,4); // X,Ymax
- DisplayCurve(aDoc,GCE2d_MakeSegment(gp_Pnt2d(aSPL2Xmin,aSPL2Ymin),gp_Pnt2d(aSPL2Xmax,aSPL2Ymin)) ,4); // X,Ymin
- DisplayCurve(aDoc,GCE2d_MakeSegment(gp_Pnt2d(aSPL2Xmin,aSPL2Ymin),gp_Pnt2d(aSPL2Xmin,aSPL2Ymax)) ,4); // Xmin,Y
- DisplayCurve(aDoc,GCE2d_MakeSegment(gp_Pnt2d(aSPL2Xmax,aSPL2Ymin),gp_Pnt2d(aSPL2Xmax,aSPL2Ymax)) ,4); // Xmax,Y
+ DisplayCurve(aDoc,GCE2d_MakeSegment(gp_Pnt2d(aSPL2Xmin,aSPL2Ymax),gp_Pnt2d(aSPL2Xmax,aSPL2Ymax)).Value() ,4); // X,Ymax
+ DisplayCurve(aDoc,GCE2d_MakeSegment(gp_Pnt2d(aSPL2Xmin,aSPL2Ymin),gp_Pnt2d(aSPL2Xmax,aSPL2Ymin)).Value() ,4); // X,Ymin
+ DisplayCurve(aDoc,GCE2d_MakeSegment(gp_Pnt2d(aSPL2Xmin,aSPL2Ymin),gp_Pnt2d(aSPL2Xmin,aSPL2Ymax)).Value() ,4); // Xmin,Y
+ DisplayCurve(aDoc,GCE2d_MakeSegment(gp_Pnt2d(aSPL2Xmax,aSPL2Ymin),gp_Pnt2d(aSPL2Xmax,aSPL2Ymax)).Value() ,4); // Xmax,Y
PostProcess(aDoc,ID_BUTTON_Test_48,TheDisplayType,Message);
}
DisplayPoint(aDoc,gp_Pnt(aXmax,aYmin,aZmax),Standard_CString("aXmax,aYmin,aZmax"));
DisplayCurve(aDoc,GC_MakeSegment(gp_Pnt(aXmin,aYmax,aZmin),
- gp_Pnt(aXmax,aYmax,aZmin)) ,Quantity_NOC_RED); // X,Ymax,ZMin
+ gp_Pnt(aXmax,aYmax,aZmin)).Value() ,Quantity_NOC_RED); // X,Ymax,ZMin
DisplayCurve(aDoc,GC_MakeSegment(gp_Pnt(aXmin,aYmin,aZmin),
- gp_Pnt(aXmax,aYmin,aZmin)) ,Quantity_NOC_RED); // X,Ymin,ZMin
+ gp_Pnt(aXmax,aYmin,aZmin)).Value() ,Quantity_NOC_RED); // X,Ymin,ZMin
DisplayCurve(aDoc,GC_MakeSegment(gp_Pnt(aXmin,aYmin,aZmin),
- gp_Pnt(aXmin,aYmax,aZmin)) ,Quantity_NOC_RED); // Xmin,Y,ZMin
+ gp_Pnt(aXmin,aYmax,aZmin)).Value() ,Quantity_NOC_RED); // Xmin,Y,ZMin
DisplayCurve(aDoc,GC_MakeSegment(gp_Pnt(aXmax,aYmin,aZmin),
- gp_Pnt(aXmax,aYmax,aZmin)) ,Quantity_NOC_RED); // Xmax,Y,ZMin
+ gp_Pnt(aXmax,aYmax,aZmin)).Value() ,Quantity_NOC_RED); // Xmax,Y,ZMin
DisplayCurve(aDoc,GC_MakeSegment(gp_Pnt(aXmin,aYmax,aZmax),
- gp_Pnt(aXmax,aYmax,aZmax)) ,Quantity_NOC_RED); // X,Ymax,ZMax
+ gp_Pnt(aXmax,aYmax,aZmax)).Value() ,Quantity_NOC_RED); // X,Ymax,ZMax
DisplayCurve(aDoc,GC_MakeSegment(gp_Pnt(aXmin,aYmin,aZmax),
- gp_Pnt(aXmax,aYmin,aZmax)) ,Quantity_NOC_RED); // X,Ymin,ZMax
+ gp_Pnt(aXmax,aYmin,aZmax)).Value() ,Quantity_NOC_RED); // X,Ymin,ZMax
DisplayCurve(aDoc,GC_MakeSegment(gp_Pnt(aXmin,aYmin,aZmax),
- gp_Pnt(aXmin,aYmax,aZmax)) ,Quantity_NOC_RED); // Xmin,Y,ZMax
+ gp_Pnt(aXmin,aYmax,aZmax)).Value() ,Quantity_NOC_RED); // Xmin,Y,ZMax
DisplayCurve(aDoc,GC_MakeSegment(gp_Pnt(aXmax,aYmin,aZmax),
- gp_Pnt(aXmax,aYmax,aZmax)) ,Quantity_NOC_RED); // Xmax,Y,ZMax
+ gp_Pnt(aXmax,aYmax,aZmax)).Value() ,Quantity_NOC_RED); // Xmax,Y,ZMax
DisplayCurve(aDoc,GC_MakeSegment(gp_Pnt(aXmin,aYmin,aZmin),
- gp_Pnt(aXmin,aYmin,aZmax)) ,Quantity_NOC_RED); // Xmin,Ymin,Z
+ gp_Pnt(aXmin,aYmin,aZmax)).Value() ,Quantity_NOC_RED); // Xmin,Ymin,Z
DisplayCurve(aDoc,GC_MakeSegment(gp_Pnt(aXmax,aYmin,aZmin),
- gp_Pnt(aXmax,aYmin,aZmax)) ,Quantity_NOC_RED); // Xmax,Ymin,Z
+ gp_Pnt(aXmax,aYmin,aZmax)).Value() ,Quantity_NOC_RED); // Xmax,Ymin,Z
DisplayCurve(aDoc,GC_MakeSegment(gp_Pnt(aXmin,aYmax,aZmin),
- gp_Pnt(aXmin,aYmax,aZmax)) ,Quantity_NOC_RED); // Xmin,Ymax,Z
+ gp_Pnt(aXmin,aYmax,aZmax)).Value() ,Quantity_NOC_RED); // Xmin,Ymax,Z
DisplayCurve(aDoc,GC_MakeSegment(gp_Pnt(aXmax,aYmax,aZmin),
- gp_Pnt(aXmax,aYmax,aZmax)) ,Quantity_NOC_RED); // Xmax,Ymax,Z
+ gp_Pnt(aXmax,aYmax,aZmax)).Value() ,Quantity_NOC_RED); // Xmax,Ymax,Z
PostProcess(aDoc,ID_BUTTON_Test_49,TheDisplayType,Message);
}
// DisplaySurface(aDoc,aSurf,Quantity_NOC_GREEN);
DisplayCurve(aDoc,GC_MakeSegment(gp_Pnt(aXmin,aYmax,aZmin),
- gp_Pnt(aXmax,aYmax,aZmin)) ,Quantity_NOC_RED); // X,Ymax,ZMin
+ gp_Pnt(aXmax,aYmax,aZmin)).Value() ,Quantity_NOC_RED); // X,Ymax,ZMin
DisplayCurve(aDoc,GC_MakeSegment(gp_Pnt(aXmin,aYmin,aZmin),
- gp_Pnt(aXmax,aYmin,aZmin)) ,Quantity_NOC_RED); // X,Ymin,ZMin
+ gp_Pnt(aXmax,aYmin,aZmin)).Value() ,Quantity_NOC_RED); // X,Ymin,ZMin
DisplayCurve(aDoc,GC_MakeSegment(gp_Pnt(aXmin,aYmin,aZmin),
- gp_Pnt(aXmin,aYmax,aZmin)) ,Quantity_NOC_RED); // Xmin,Y,ZMin
+ gp_Pnt(aXmin,aYmax,aZmin)).Value() ,Quantity_NOC_RED); // Xmin,Y,ZMin
DisplayCurve(aDoc,GC_MakeSegment(gp_Pnt(aXmax,aYmin,aZmin),
- gp_Pnt(aXmax,aYmax,aZmin)) ,Quantity_NOC_RED); // Xmax,Y,ZMin
+ gp_Pnt(aXmax,aYmax,aZmin)).Value() ,Quantity_NOC_RED); // Xmax,Y,ZMin
DisplayCurve(aDoc,GC_MakeSegment(gp_Pnt(aXmin,aYmax,aZmax),
- gp_Pnt(aXmax,aYmax,aZmax)) ,Quantity_NOC_RED); // X,Ymax,ZMax
+ gp_Pnt(aXmax,aYmax,aZmax)).Value() ,Quantity_NOC_RED); // X,Ymax,ZMax
DisplayCurve(aDoc,GC_MakeSegment(gp_Pnt(aXmin,aYmin,aZmax),
- gp_Pnt(aXmax,aYmin,aZmax)) ,Quantity_NOC_RED); // X,Ymin,ZMax
+ gp_Pnt(aXmax,aYmin,aZmax)).Value() ,Quantity_NOC_RED); // X,Ymin,ZMax
DisplayCurve(aDoc,GC_MakeSegment(gp_Pnt(aXmin,aYmin,aZmax),
- gp_Pnt(aXmin,aYmax,aZmax)) ,Quantity_NOC_RED); // Xmin,Y,ZMax
+ gp_Pnt(aXmin,aYmax,aZmax)).Value() ,Quantity_NOC_RED); // Xmin,Y,ZMax
DisplayCurve(aDoc,GC_MakeSegment(gp_Pnt(aXmax,aYmin,aZmax),
- gp_Pnt(aXmax,aYmax,aZmax)) ,Quantity_NOC_RED); // Xmax,Y,ZMax
+ gp_Pnt(aXmax,aYmax,aZmax)).Value() ,Quantity_NOC_RED); // Xmax,Y,ZMax
DisplayCurve(aDoc,GC_MakeSegment(gp_Pnt(aXmin,aYmin,aZmin),
- gp_Pnt(aXmin,aYmin,aZmax)) ,Quantity_NOC_RED); // Xmin,Ymin,Z
+ gp_Pnt(aXmin,aYmin,aZmax)).Value() ,Quantity_NOC_RED); // Xmin,Ymin,Z
DisplayCurve(aDoc,GC_MakeSegment(gp_Pnt(aXmax,aYmin,aZmin),
- gp_Pnt(aXmax,aYmin,aZmax)) ,Quantity_NOC_RED); // Xmax,Ymin,Z
+ gp_Pnt(aXmax,aYmin,aZmax)).Value() ,Quantity_NOC_RED); // Xmax,Ymin,Z
DisplayCurve(aDoc,GC_MakeSegment(gp_Pnt(aXmin,aYmax,aZmin),
- gp_Pnt(aXmin,aYmax,aZmax)) ,Quantity_NOC_RED); // Xmin,Ymax,Z
+ gp_Pnt(aXmin,aYmax,aZmax)).Value() ,Quantity_NOC_RED); // Xmin,Ymax,Z
DisplayCurve(aDoc,GC_MakeSegment(gp_Pnt(aXmax,aYmax,aZmin),
- gp_Pnt(aXmax,aYmax,aZmax)) ,Quantity_NOC_RED); // Xmax,Ymax,Z
+ gp_Pnt(aXmax,aYmax,aZmax)).Value() ,Quantity_NOC_RED); // Xmax,Ymax,Z
PostProcess(aDoc,ID_BUTTON_Test_50,TheDisplayType,Message);
}
void CGeometryDoc::OnSimplify()
{
CString initfile(((OCC_App*) AfxGetApp())->GetInitDataDir());
- initfile += L"\\..\\..\\Data\\";
+ initfile += L"\\..\\..\\..\\samples\\mfc\\standard\\01_Geometry\\Data\\";
initfile += L"shell1.brep";
std::filebuf aFileBuf;
#include "OCC_3dBaseDoc.h"
#include "ResultDialog.h"
-class Handle_AIS_Point;
+#include <AIS_Point.hxx>
class CGeometryDoc : public OCC_3dBaseDoc
{
#include "Geom2d_Curve.hxx"
#include "AIS_InteractiveObject.hxx"
-
+class ISession2D_Curve;
DEFINE_STANDARD_HANDLE(ISession2D_Curve,AIS_InteractiveObject)
class ISession2D_Curve : public AIS_InteractiveObject {
inline Standard_Real GetDiscretisation() const;
inline void SetDiscretisation(const Standard_Real aNewDiscretisation) ;
- DEFINE_STANDARD_RTTI(ISession2D_Curve)
+ DEFINE_STANDARD_RTTI(ISession2D_Curve,AIS_InteractiveObject)
private:
#include <Standard_Macro.hxx>
#include <Standard_DefineHandle.hxx>
#include "AIS_InteractiveObject.hxx"
+class ISession_Curve;
DEFINE_STANDARD_HANDLE(ISession_Curve,AIS_InteractiveObject)
class ISession_Curve : public AIS_InteractiveObject
ISession_Curve(Handle(Geom_Curve)& aCurve);
virtual ~ISession_Curve();
- DEFINE_STANDARD_RTTI(ISession_Curve)
+ DEFINE_STANDARD_RTTI(ISession_Curve,AIS_InteractiveObject)
private:
#pragma once
#endif // _MSC_VER >= 1000
#include "gp_Dir2d.hxx"
-
+class ISession_Direction;
DEFINE_STANDARD_HANDLE(ISession_Direction,AIS_InteractiveObject)
class ISession_Direction : public AIS_InteractiveObject
{
ISession_Direction (const gp_Pnt2d& aPnt2d,const gp_Vec2d& aVec2d);
virtual ~ISession_Direction();
- DEFINE_STANDARD_RTTI(ISession_Direction)
+ DEFINE_STANDARD_RTTI(ISession_Direction,AIS_InteractiveObject)
private:
#include <Standard_Macro.hxx>
#include <Standard_DefineHandle.hxx>
-
+class ISession_Point;
DEFINE_STANDARD_HANDLE(ISession_Point,AIS_InteractiveObject)
class ISession_Point : public AIS_InteractiveObject
{
ISession_Point(const gp_Pnt2d& aPoint,Standard_Real Elevation = 0);
ISession_Point(const gp_Pnt& aPoint);
virtual ~ISession_Point();
- DEFINE_STANDARD_RTTI(ISession_Point)
+ DEFINE_STANDARD_RTTI(ISession_Point,AIS_InteractiveObject)
private :
#include <Standard_Macro.hxx>
#include <Standard_DefineHandle.hxx>
-
+class ISession_Surface;
DEFINE_STANDARD_HANDLE(ISession_Surface,AIS_InteractiveObject)
class ISession_Surface : public AIS_InteractiveObject
{
ISession_Surface(Handle(Geom_Surface)& aSurface);
virtual ~ISession_Surface();
-DEFINE_STANDARD_RTTI(ISession_Surface)
+DEFINE_STANDARD_RTTI(ISession_Surface,AIS_InteractiveObject)
private:
Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,const Handle(Prs3d_Presentation)& aPresentation,const Standard_Integer aMode = 0);
class TCollection_AsciiString;
class SelectMgr_Selection;
-
+class ISession_Text;
DEFINE_STANDARD_HANDLE(ISession_Text,AIS_InteractiveObject)
class ISession_Text : public AIS_InteractiveObject
{
inline void SetScale (const Quantity_Factor aNewScale) ;
-DEFINE_STANDARD_RTTI(ISession_Text)
+DEFINE_STANDARD_RTTI(ISession_Text,AIS_InteractiveObject)
private:
#include <GC_MakeTranslation.hxx>
#include <GC_MakeSegment.hxx>
#include <GC_MakeConicalSurface.hxx>
+#include <Geom_ConicalSurface.hxx>
#include <GC_MakePlane.hxx>
#include <GC_MakeEllipse.hxx>
+#include <Geom_Ellipse.hxx>
#include <GccAna_Circ2d2TanRad.hxx>
#include <GccAna_Lin2d2Tan.hxx>
#include <GccAna_Pnt2dBisec.hxx>
#include <GCPnts_TangentialDeflection.hxx>
#include <GCPnts_UniformAbscissa.hxx>
#include <Geom_BezierSurface.hxx>
-#include <Geom_BSplineCurve.hxx>
#include <Geom_BSplineSurface.hxx>
#include <Geom_CartesianPoint.hxx>
#include <Geom_Circle.hxx>
#include <GeomAPI_IntCS.hxx>
#include <GeomAPI_PointsToBSplineSurface.hxx>
#include <GeomAPI_PointsToBSpline.hxx>
+#include <Geom_BSplineCurve.hxx>
#include <GeomAPI_ProjectPointOnSurf.hxx>
#include <GeomAPI_ProjectPointOnCurve.hxx>
#include <GeomAPI_Interpolate.hxx>
set_property (TARGET Modeling PROPERTY FOLDER Samples)
-install (TARGETS Modeling RUNTIME DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/bin${BUILD_POSTFIX}"
- ARCHIVE DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/lib${BUILD_POSTFIX}"
- LIBRARY DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/lib${BUILD_POSTFIX}")
-
-include_directories (${CMAKE_SOURCE_DIR}/src
+install (TARGETS Modeling
+ CONFIGURATIONS Release
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bin")
+install (TARGETS Modeling
+ CONFIGURATIONS RelWithDebInfo
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bin")
+install (TARGETS Modeling
+ CONFIGURATIONS Debug
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bind")
+
+include_directories (${CMAKE_BINARY_DIR}/inc
${MFC_STANDARD_SAMPLES_DIR}/02_Modeling
${Modeling_SRC_DIR}
${MFC_STANDARD_SAMPLES_DIR}/Common)
#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
{
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:
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:
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);
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();
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);
#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>
#include <GeomPlate_Surface.hxx>
#include <GeomProjLib.hxx>
#include <GCE2d_MakeSegment.hxx>
-
+#include <Geom2d_TrimmedCurve.hxx>
#include "ISession_Direction.h"
#include <UnitsAPI.hxx>
set_property (TARGET Viewer2d PROPERTY FOLDER Samples)
-install (TARGETS Viewer2d RUNTIME DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/bin${BUILD_POSTFIX}"
- ARCHIVE DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/lib${BUILD_POSTFIX}"
- LIBRARY DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/lib${BUILD_POSTFIX}")
-
-include_directories (${CMAKE_SOURCE_DIR}/src
+install (TARGETS Viewer2d
+ CONFIGURATIONS Release
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bin")
+install (TARGETS Viewer2d
+ CONFIGURATIONS RelWithDebInfo
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bin")
+install (TARGETS Viewer2d
+ CONFIGURATIONS Debug
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bind")
+
+include_directories (${CMAKE_BINARY_DIR}/inc
${MFC_STANDARD_SAMPLES_DIR}/03_Viewer2d
${Viewer2d_SOURCE_DIR}
${MFC_STANDARD_SAMPLES_DIR}/Common)
set_property (TARGET Viewer3d PROPERTY FOLDER Samples)
-install (TARGETS Viewer3d RUNTIME DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/bin${BUILD_POSTFIX}"
- ARCHIVE DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/lib${BUILD_POSTFIX}"
- LIBRARY DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/lib${BUILD_POSTFIX}")
+install (TARGETS Viewer3d
+ CONFIGURATIONS Release
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bin")
+install (TARGETS Viewer3d
+ CONFIGURATIONS RelWithDebInfo
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bin")
+install (TARGETS Viewer3d
+ CONFIGURATIONS Debug
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bind")
-include_directories (${CMAKE_SOURCE_DIR}/src
+include_directories (${CMAKE_BINARY_DIR}/inc
${Viewer3d_SRC_DIR}
${MFC_STANDARD_SAMPLES_DIR}/Common)
#include <Standard_DefineHandle.hxx>
#include <AIS_InteractiveObject.hxx>
#include <Geom_Curve.hxx>
-
+class ISession_Curve;
DEFINE_STANDARD_HANDLE(ISession_Curve,AIS_InteractiveObject)
class ISession_Curve : public AIS_InteractiveObject
public:
ISession_Curve(const Handle(Geom_Curve)& aCurve);
virtual ~ISession_Curve();
-DEFINE_STANDARD_RTTI(ISession_Curve)
+DEFINE_STANDARD_RTTI(ISession_Curve,AIS_InteractiveObject)
private:
Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,const Handle(Prs3d_Presentation)& aPresentation,const Standard_Integer aMode = 0) ;
#define WAIT_A_SECOND WaitForInput(1000)
class CViewer3dDoc;
-class Handle_AIS_InteractiveObject;
-class Handle_AIS_Point;
-class Handle_Geom_Surface;
-class Handle_Geom_Curve;
-class Handle_Geom2d_Curve;
+#include <AIS_InteractiveObject.hxx>
+#include <AIS_Point.hxx>
+#include <Geom_Surface.hxx>
+#include <Geom_Curve.hxx>
+#include <Geom2d_Curve.hxx>
class Quantity_Color;
class OCCDemo_Presentation
// load texture from file if it is not an integer value
// integer value indicates a number of texture in predefined TexturesExt enumeration
CString initfile(((OCC_App*) AfxGetApp())->GetInitDataDir());
- initfile += "\\Data\\";
+ initfile += "\\..\\..\\..\\samples\\mfc\\standard\\04_Viewer3d\\Data\\";
if (!aTFileName.IsIntegerValue())
{
initfile += aTFileName.ToCString();
{
// create a TopoDS_Shape -> read from a brep file
CString initfile(((OCC_App*) AfxGetApp())->GetInitDataDir());
- initfile += "\\Data\\";
+ initfile += "\\..\\..\\..\\samples\\mfc\\standard\\04_Viewer3d\\Data\\";
initfile += aFileName.ToCString();
std::filebuf aFileBuf;
#endif // _MSC_VER > 1000
#include "OCCDemo_Presentation.h"
+#include <AIS_TexturedShape.hxx>
class TopoDS_Shape;
class TCollection_AsciiString;
-class Handle_AIS_TexturedShape;
class TexturesExt_Presentation : public OCCDemo_Presentation
{
#include <V3d_PositionalLight.hxx>
#include <V3d_AmbientLight.hxx>
#include <V3d_SpotLight.hxx>
+#include <Graphic3d_GraphicDriver.hxx>
#include <Graphic3d_ClipPlane.hxx>
set_property (TARGET ImportExport PROPERTY FOLDER Samples)
-install (TARGETS ImportExport RUNTIME DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/bin${BUILD_POSTFIX}"
- ARCHIVE DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/lib${BUILD_POSTFIX}"
- LIBRARY DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/lib${BUILD_POSTFIX}")
-
-include_directories (${CMAKE_SOURCE_DIR}/src
+install (TARGETS ImportExport
+ CONFIGURATIONS Release
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bin")
+install (TARGETS ImportExport
+ CONFIGURATIONS RelWithDebInfo
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bin")
+install (TARGETS ImportExport
+ CONFIGURATIONS Debug
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bind")
+
+include_directories (${CMAKE_BINARY_DIR}/inc
${MFC_STANDARD_SAMPLES_DIR}/05_ImportExport
${ImportExport_SRC_DIR}
${MFC_STANDARD_SAMPLES_DIR}/Common)
#ifndef _Standard_CString_HeaderFile
#include <Standard_CString.hxx>
#endif
+#include <TColStd_SequenceOfAsciiString.hxx>
+#include <TColStd_SequenceOfExtendedString.hxx>
class Storage_StreamTypeMismatchError;
class Storage_StreamFormatError;
class Storage_StreamWriteError;
class Storage_StreamExtCharParityError;
class TCollection_AsciiString;
class TCollection_ExtendedString;
-class TColStd_SequenceOfAsciiString;
-class TColStd_SequenceOfExtendedString;
class Storage_BaseDriver;
${Ocaf_SRC_DIR}/OcafApp.h
${Ocaf_SRC_DIR}/OcafDoc.h
${Ocaf_SRC_DIR}/OcafMainFrm.h
- ${Ocaf_SRC_DIR}/Handle_TOcaf_Application.hxx
${Ocaf_SRC_DIR}/TOcaf_Commands.hxx
- ${Ocaf_SRC_DIR}/Handle_TOcafFunction_BoxDriver.hxx
- ${Ocaf_SRC_DIR}/Handle_TOcafFunction_CutDriver.hxx
- ${Ocaf_SRC_DIR}/Handle_TOcafFunction_CylDriver.hxx
${Ocaf_SRC_DIR}/StdAfx.h )
set (Ocaf_SOURCE_FILES ${Ocaf_SRC_DIR}/NewBoxDlg.cpp
${Ocaf_SRC_DIR}/NewCylDlg.cpp
set_property (TARGET Ocaf PROPERTY FOLDER Samples)
-install (TARGETS Ocaf RUNTIME DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/bin${BUILD_POSTFIX}"
- ARCHIVE DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/lib${BUILD_POSTFIX}"
- LIBRARY DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/lib${BUILD_POSTFIX}")
+install (TARGETS Ocaf
+ CONFIGURATIONS Release
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bin")
+install (TARGETS Ocaf
+ CONFIGURATIONS RelWithDebInfo
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bin")
+install (TARGETS Ocaf
+ CONFIGURATIONS Debug
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bind")
-include_directories (${CMAKE_SOURCE_DIR}/src
+include_directories (${CMAKE_BINARY_DIR}/inc
${MFC_STANDARD_SAMPLES_DIR}/06_Ocaf
${Ocaf_SRC_DIR}
${MFC_STANDARD_SAMPLES_DIR}/Common)
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
-#ifndef _Handle_TDocStd_Document_HeaderFile
-#include <Handle_TDocStd_Document.hxx>
-#endif
class TDocStd_Document;
class DebugBrowser_Attr;
class DebugBrowser_DFTree;
+++ /dev/null
-// File generated by CPPExt (Transient)
-//
-// Copyright (C) 1991,1995 by
-//
-// MATRA DATAVISION, FRANCE
-//
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
-
-#ifndef _Handle_OCAFSample_CommonDriver_HeaderFile
-#define _Handle_OCAFSample_CommonDriver_HeaderFile
-
-#ifndef _Standard_Macro_HeaderFile
-#include <Standard_Macro.hxx>
-#endif
-#ifndef _Standard_HeaderFile
-#include <Standard.hxx>
-#endif
-
-#ifndef _Handle_OCAFSample_Driver_HeaderFile
-#include <Handle_OCAFSample_Driver.hxx>
-#endif
-
-class Standard_Transient;
-class Handle_Standard_Type;
-class Handle(OCAFSample_Driver);
-class OCAFSample_CommonDriver;
-Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(OCAFSample_CommonDriver);
-
-class Handle(OCAFSample_CommonDriver) : public Handle(OCAFSample_Driver) {
- public:
- inline void* operator new(size_t,void* anAddress)
- {
- return anAddress;
- }
- inline void* operator new(size_t size)
- {
- return Standard::Allocate(size);
- }
- inline void operator delete(void *anAddress)
- {
- if (anAddress) Standard::Free((Standard_Address&)anAddress);
- }
-// inline void operator delete(void *anAddress, size_t size)
-// {
-// if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
-// }
- Handle(OCAFSample_CommonDriver)():Handle(OCAFSample_Driver)() {}
- Handle(OCAFSample_CommonDriver)(const Handle(OCAFSample_CommonDriver)& aHandle) : Handle(OCAFSample_Driver)(aHandle)
- {
- }
-
- Handle(OCAFSample_CommonDriver)(const OCAFSample_CommonDriver* anItem) : Handle(OCAFSample_Driver)((OCAFSample_Driver *)anItem)
- {
- }
-
- Handle(OCAFSample_CommonDriver)& operator=(const Handle(OCAFSample_CommonDriver)& aHandle)
- {
- Assign(aHandle.Access());
- return *this;
- }
-
- Handle(OCAFSample_CommonDriver)& operator=(const OCAFSample_CommonDriver* anItem)
- {
- Assign((Standard_Transient *)anItem);
- return *this;
- }
-
- OCAFSample_CommonDriver* operator->()
- {
- return (OCAFSample_CommonDriver *)ControlAccess();
- }
-
- OCAFSample_CommonDriver* operator->() const
- {
- return (OCAFSample_CommonDriver *)ControlAccess();
- }
-
- Standard_EXPORT ~Handle(OCAFSample_CommonDriver)();
-
- Standard_EXPORT static const Handle(OCAFSample_CommonDriver) DownCast(const Handle(Standard_Transient)& AnObject);
-};
-#endif
+++ /dev/null
-// File generated by CPPExt (Transient)
-//
-// Copyright (C) 1991,1995 by
-//
-// MATRA DATAVISION, FRANCE
-//
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
-
-#ifndef _Handle_OCAFSample_Driver_HeaderFile
-#define _Handle_OCAFSample_Driver_HeaderFile
-
-#ifndef _Standard_Macro_HeaderFile
-#include <Standard_Macro.hxx>
-#endif
-#ifndef _Standard_HeaderFile
-#include <Standard.hxx>
-#endif
-
-#ifndef _Handle_TFunction_Driver_HeaderFile
-#include <Handle_TFunction_Driver.hxx>
-#endif
-
-class Standard_Transient;
-class Handle_Standard_Type;
-class Handle(TFunction_Driver);
-class OCAFSample_Driver;
-Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(OCAFSample_Driver);
-
-class Handle(OCAFSample_Driver) : public Handle(TFunction_Driver) {
- public:
- inline void* operator new(size_t,void* anAddress)
- {
- return anAddress;
- }
- inline void* operator new(size_t size)
- {
- return Standard::Allocate(size);
- }
- inline void operator delete(void *anAddress)
- {
- if (anAddress) Standard::Free((Standard_Address&)anAddress);
- }
-// inline void operator delete(void *anAddress, size_t size)
-// {
-// if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
-// }
- Handle(OCAFSample_Driver)():Handle(TFunction_Driver)() {}
- Handle(OCAFSample_Driver)(const Handle(OCAFSample_Driver)& aHandle) : Handle(TFunction_Driver)(aHandle)
- {
- }
-
- Handle(OCAFSample_Driver)(const OCAFSample_Driver* anItem) : Handle(TFunction_Driver)((TFunction_Driver *)anItem)
- {
- }
-
- Handle(OCAFSample_Driver)& operator=(const Handle(OCAFSample_Driver)& aHandle)
- {
- Assign(aHandle.Access());
- return *this;
- }
-
- Handle(OCAFSample_Driver)& operator=(const OCAFSample_Driver* anItem)
- {
- Assign((Standard_Transient *)anItem);
- return *this;
- }
-
- OCAFSample_Driver* operator->()
- {
- return (OCAFSample_Driver *)ControlAccess();
- }
-
- OCAFSample_Driver* operator->() const
- {
- return (OCAFSample_Driver *)ControlAccess();
- }
-
- Standard_EXPORT ~Handle(OCAFSample_Driver)();
-
- Standard_EXPORT static const Handle(OCAFSample_Driver) DownCast(const Handle(Standard_Transient)& AnObject);
-};
-#endif
+++ /dev/null
-// File generated by CPPExt (Transient)
-//
-// Copyright (C) 1991,1995 by
-//
-// MATRA DATAVISION, FRANCE
-//
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
-
-#ifndef _Handle_TOcafFunction_BoxDriver_HeaderFile
-#define _Handle_TOcafFunction_BoxDriver_HeaderFile
-
-#ifndef _Standard_Macro_HeaderFile
-#include <Standard_Macro.hxx>
-#endif
-#ifndef _Standard_HeaderFile
-#include <Standard.hxx>
-#endif
-
-#ifndef _Handle_TFunction_Driver_HeaderFile
-#include <Handle_TFunction_Driver.hxx>
-#endif
-
-class Standard_Transient;
-class Handle_Standard_Type;
-class Handle(TFunction_Driver);
-class TOcafFunction_BoxDriver;
-Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(TOcafFunction_BoxDriver);
-
-class Handle(TOcafFunction_BoxDriver) : public Handle(TFunction_Driver) {
- public:
- inline void* operator new(size_t,void* anAddress)
- {
- return anAddress;
- }
- inline void* operator new(size_t size)
- {
- return Standard::Allocate(size);
- }
- inline void operator delete(void *anAddress)
- {
- if (anAddress) Standard::Free((Standard_Address&)anAddress);
- }
-// inline void operator delete(void *anAddress, size_t size)
-// {
-// if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
-// }
- Handle(TOcafFunction_BoxDriver)():Handle(TFunction_Driver)() {}
- Handle(TOcafFunction_BoxDriver)(const Handle(TOcafFunction_BoxDriver)& aHandle) : Handle(TFunction_Driver)(aHandle)
- {
- }
-
- Handle(TOcafFunction_BoxDriver)(const TOcafFunction_BoxDriver* anItem) : Handle(TFunction_Driver)((TFunction_Driver *)anItem)
- {
- }
-
- Handle(TOcafFunction_BoxDriver)& operator=(const Handle(TOcafFunction_BoxDriver)& aHandle)
- {
- Assign(aHandle.Access());
- return *this;
- }
-
- Handle(TOcafFunction_BoxDriver)& operator=(const TOcafFunction_BoxDriver* anItem)
- {
- Assign((Standard_Transient *)anItem);
- return *this;
- }
-
- TOcafFunction_BoxDriver* operator->()
- {
- return (TOcafFunction_BoxDriver *)ControlAccess();
- }
-
- TOcafFunction_BoxDriver* operator->() const
- {
- return (TOcafFunction_BoxDriver *)ControlAccess();
- }
-
- Standard_EXPORT ~Handle(TOcafFunction_BoxDriver)();
-
- Standard_EXPORT static const Handle(TOcafFunction_BoxDriver) DownCast(const Handle(Standard_Transient)& AnObject);
-};
-#endif
+++ /dev/null
-// File generated by CPPExt (Transient)
-//
-// Copyright (C) 1991,1995 by
-//
-// MATRA DATAVISION, FRANCE
-//
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
-
-#ifndef _Handle_TOcafFunction_CutDriver_HeaderFile
-#define _Handle_TOcafFunction_CutDriver_HeaderFile
-
-#ifndef _Standard_Macro_HeaderFile
-#include <Standard_Macro.hxx>
-#endif
-#ifndef _Standard_HeaderFile
-#include <Standard.hxx>
-#endif
-
-#ifndef _Handle_TFunction_Driver_HeaderFile
-#include <Handle_TFunction_Driver.hxx>
-#endif
-
-class Standard_Transient;
-class Handle_Standard_Type;
-class Handle(TFunction_Driver);
-class TOcafFunction_CutDriver;
-Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(TOcafFunction_CutDriver);
-
-class Handle(TOcafFunction_CutDriver) : public Handle(TFunction_Driver) {
- public:
- inline void* operator new(size_t,void* anAddress)
- {
- return anAddress;
- }
- inline void* operator new(size_t size)
- {
- return Standard::Allocate(size);
- }
- inline void operator delete(void *anAddress)
- {
- if (anAddress) Standard::Free((Standard_Address&)anAddress);
- }
-// inline void operator delete(void *anAddress, size_t size)
-// {
-// if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
-// }
- Handle(TOcafFunction_CutDriver)():Handle(TFunction_Driver)() {}
- Handle(TOcafFunction_CutDriver)(const Handle(TOcafFunction_CutDriver)& aHandle) : Handle(TFunction_Driver)(aHandle)
- {
- }
-
- Handle(TOcafFunction_CutDriver)(const TOcafFunction_CutDriver* anItem) : Handle(TFunction_Driver)((TFunction_Driver *)anItem)
- {
- }
-
- Handle(TOcafFunction_CutDriver)& operator=(const Handle(TOcafFunction_CutDriver)& aHandle)
- {
- Assign(aHandle.Access());
- return *this;
- }
-
- Handle(TOcafFunction_CutDriver)& operator=(const TOcafFunction_CutDriver* anItem)
- {
- Assign((Standard_Transient *)anItem);
- return *this;
- }
-
- TOcafFunction_CutDriver* operator->()
- {
- return (TOcafFunction_CutDriver *)ControlAccess();
- }
-
- TOcafFunction_CutDriver* operator->() const
- {
- return (TOcafFunction_CutDriver *)ControlAccess();
- }
-
- Standard_EXPORT ~Handle(TOcafFunction_CutDriver)();
-
- Standard_EXPORT static const Handle(TOcafFunction_CutDriver) DownCast(const Handle(Standard_Transient)& AnObject);
-};
-#endif
+++ /dev/null
-// File generated by CPPExt (Transient)
-//
-// Copyright (C) 1991,1995 by
-//
-// MATRA DATAVISION, FRANCE
-//
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
-
-#ifndef _Handle_TOcafFunction_CylDriver_HeaderFile
-#define _Handle_TOcafFunction_CylDriver_HeaderFile
-
-#ifndef _Standard_Macro_HeaderFile
-#include <Standard_Macro.hxx>
-#endif
-#ifndef _Standard_HeaderFile
-#include <Standard.hxx>
-#endif
-
-#ifndef _Handle_TFunction_Driver_HeaderFile
-#include <Handle_TFunction_Driver.hxx>
-#endif
-
-class Standard_Transient;
-class Handle_Standard_Type;
-class Handle(TFunction_Driver);
-class TOcafFunction_CylDriver;
-Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(TOcafFunction_CylDriver);
-
-class Handle(TOcafFunction_CylDriver) : public Handle(TFunction_Driver) {
- public:
- inline void* operator new(size_t,void* anAddress)
- {
- return anAddress;
- }
- inline void* operator new(size_t size)
- {
- return Standard::Allocate(size);
- }
- inline void operator delete(void *anAddress)
- {
- if (anAddress) Standard::Free((Standard_Address&)anAddress);
- }
-// inline void operator delete(void *anAddress, size_t size)
-// {
-// if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
-// }
- Handle(TOcafFunction_CylDriver)():Handle(TFunction_Driver)() {}
- Handle(TOcafFunction_CylDriver)(const Handle(TOcafFunction_CylDriver)& aHandle) : Handle(TFunction_Driver)(aHandle)
- {
- }
-
- Handle(TOcafFunction_CylDriver)(const TOcafFunction_CylDriver* anItem) : Handle(TFunction_Driver)((TFunction_Driver *)anItem)
- {
- }
-
- Handle(TOcafFunction_CylDriver)& operator=(const Handle(TOcafFunction_CylDriver)& aHandle)
- {
- Assign(aHandle.Access());
- return *this;
- }
-
- Handle(TOcafFunction_CylDriver)& operator=(const TOcafFunction_CylDriver* anItem)
- {
- Assign((Standard_Transient *)anItem);
- return *this;
- }
-
- TOcafFunction_CylDriver* operator->()
- {
- return (TOcafFunction_CylDriver *)ControlAccess();
- }
-
- TOcafFunction_CylDriver* operator->() const
- {
- return (TOcafFunction_CylDriver *)ControlAccess();
- }
-
- Standard_EXPORT ~Handle(TOcafFunction_CylDriver)();
-
- Standard_EXPORT static const Handle(TOcafFunction_CylDriver) DownCast(const Handle(Standard_Transient)& AnObject);
-};
-#endif
+++ /dev/null
-// File generated by CPPExt (Transient)
-//
-// Copyright (C) 1991,1995 by
-//
-// MATRA DATAVISION, FRANCE
-//
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
-
-#ifndef _Handle_TOcaf_Application_HeaderFile
-#define _Handle_TOcaf_Application_HeaderFile
-
-#ifndef _Standard_Macro_HeaderFile
-#include <Standard_Macro.hxx>
-#endif
-
-#ifndef _Handle_TDocStd_Application_HeaderFile
-#include <Handle_TDocStd_Application.hxx>
-#endif
-
-class Standard_Transient;
-class Handle_Standard_Type;
-class Handle(TDocStd_Application);
-class TOcaf_Application;
-
-Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(TOcaf_Application);
-
-
-class Handle(TOcaf_Application) : public Handle(TDocStd_Application) {
- public:
- Handle(TOcaf_Application)():Handle(TDocStd_Application)() {}
- Handle(TOcaf_Application)(const Handle(TOcaf_Application)& aHandle) : Handle(TDocStd_Application)(aHandle)
- {
- }
-
- Handle(TOcaf_Application)(const TOcaf_Application* anItem) : Handle(TDocStd_Application)((TDocStd_Application *)anItem)
- {
- }
-
- Handle(TOcaf_Application)& operator=(const Handle(TOcaf_Application)& aHandle)
- {
- Assign(aHandle.Access());
- return *this;
- }
-
- Handle(TOcaf_Application)& operator=(const TOcaf_Application* anItem)
- {
- Assign((Standard_Transient *)anItem);
- return *this;
- }
-
- TOcaf_Application* operator->()
- {
- return (TOcaf_Application *)ControlAccess();
- }
-
- TOcaf_Application* operator->() const
- {
- return (TOcaf_Application *)ControlAccess();
- }
-
- Standard_EXPORT ~Handle(TOcaf_Application)();
-
- Standard_EXPORT static const Handle(TOcaf_Application) DownCast(const Handle(Standard_Transient)& AnObject);
-};
-#endif
#include <OCC_App.h>
#include "OcafDoc.h"
#include "TOCAF_Application.hxx"
+#include <TOcaf_Application.hxx>
class COcafApp : public OCC_App
//}}AFX_VIRTUAL
void OnFileOpen();
public:
- Handle_TOcaf_Application GetApp() {return myApp;}
+ Handle(TOcaf_Application) GetApp() {return myApp;}
private :
BOOL IsViewExisting(CDocument* pDoc,CRuntimeClass* pViewClass,CView*& pView);
private:
- Handle_TOcaf_Application myApp;
+ Handle(TOcaf_Application) myApp;
CMultiDocTemplate* pDocTemplateForView3d;
DECLARE_MESSAGE_MAP()
TOcafFunction_BoxDriver::~TOcafFunction_BoxDriver() {}
-
-
-Standard_EXPORT Handle_Standard_Type& TOcafFunction_BoxDriver_Type_()
-{
-
- static Handle_Standard_Type aType1 = STANDARD_TYPE(TFunction_Driver);
- if ( aType1.IsNull()) aType1 = STANDARD_TYPE(TFunction_Driver);
- static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared);
- if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared);
- static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient);
- if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient);
-
-
- static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL};
- static Handle_Standard_Type _aType = new Standard_Type("TOcafFunction_BoxDriver",
- sizeof(TOcafFunction_BoxDriver),
- 1,
- (Standard_Address)_Ancestors,
- (Standard_Address)NULL);
-
- return _aType;
-}
-
-
// DownCast method
// allow safe downcasting
//
-const Handle(TOcafFunction_BoxDriver) Handle(TOcafFunction_BoxDriver)::DownCast(const Handle(Standard_Transient)& AnObject)
+const Handle(TOcafFunction_BoxDriver) TOcafFunction_BoxDriver::DownCast(const Handle(Standard_Transient)& AnObject)
{
Handle(TOcafFunction_BoxDriver) _anOtherObject;
return (STANDARD_TYPE(TOcafFunction_BoxDriver) == AType || TFunction_Driver::IsKind(AType));
}
-Handle_TOcafFunction_BoxDriver::~Handle_TOcafFunction_BoxDriver() {}
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
-#ifndef _Handle_TOcafFunction_BoxDriver_HeaderFile
-#include <Handle_TOcafFunction_BoxDriver.hxx>
-#endif
#ifndef _TFunction_Driver_HeaderFile
#include <TFunction_Driver.hxx>
// Type management
//
- Standard_EXPORT friend Handle_Standard_Type& TOcafFunction_BoxDriver_Type_();
+ //Standard_EXPORT friend Handle(Standard_Type)& TOcafFunction_BoxDriver_Type_();
+ Standard_EXPORT const Handle(TOcafFunction_BoxDriver) DownCast(const Handle(Standard_Transient)& AnObject);
Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const;
TOcafFunction_CutDriver::~TOcafFunction_CutDriver() {}
-
-
-Standard_EXPORT Handle_Standard_Type& TOcafFunction_CutDriver_Type_()
-{
-
- static Handle_Standard_Type aType1 = STANDARD_TYPE(TFunction_Driver);
- if ( aType1.IsNull()) aType1 = STANDARD_TYPE(TFunction_Driver);
- static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared);
- if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared);
- static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient);
- if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient);
-
-
- static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL};
- static Handle_Standard_Type _aType = new Standard_Type("TOcafFunction_CutDriver",
- sizeof(TOcafFunction_CutDriver),
- 1,
- (Standard_Address)_Ancestors,
- (Standard_Address)NULL);
-
- return _aType;
-}
-
-
// DownCast method
// allow safe downcasting
//
-const Handle(TOcafFunction_CutDriver) Handle(TOcafFunction_CutDriver)::DownCast(const Handle(Standard_Transient)& AnObject)
+const Handle(TOcafFunction_CutDriver) TOcafFunction_CutDriver::DownCast(const Handle(Standard_Transient)& AnObject)
{
Handle(TOcafFunction_CutDriver) _anOtherObject;
return (STANDARD_TYPE(TOcafFunction_CutDriver) == AType || TFunction_Driver::IsKind(AType));
}
-Handle_TOcafFunction_CutDriver::~Handle_TOcafFunction_CutDriver() {}
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
-#ifndef _Handle_TOcafFunction_CutDriver_HeaderFile
-#include <Handle_TOcafFunction_CutDriver.hxx>
-#endif
#ifndef _TFunction_Driver_HeaderFile
#include <TFunction_Driver.hxx>
// Type management
//
- Standard_EXPORT friend Handle_Standard_Type& TOcafFunction_CutDriver_Type_();
+ //Standard_EXPORT friend Handle_Standard_Type& TOcafFunction_CutDriver_Type_();
+ Standard_EXPORT const Handle(TOcafFunction_CutDriver) DownCast(const Handle(Standard_Transient)& AnObject);
Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const;
TOcafFunction_CylDriver::~TOcafFunction_CylDriver() {}
-
-
-Standard_EXPORT Handle_Standard_Type& TOcafFunction_CylDriver_Type_()
-{
-
- static Handle_Standard_Type aType1 = STANDARD_TYPE(TFunction_Driver);
- if ( aType1.IsNull()) aType1 = STANDARD_TYPE(TFunction_Driver);
- static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared);
- if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared);
- static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient);
- if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient);
-
-
- static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL};
- static Handle_Standard_Type _aType = new Standard_Type("TOcafFunction_CylDriver",
- sizeof(TOcafFunction_CylDriver),
- 1,
- (Standard_Address)_Ancestors,
- (Standard_Address)NULL);
-
- return _aType;
-}
-
-
// DownCast method
// allow safe downcasting
//
-const Handle(TOcafFunction_CylDriver) Handle(TOcafFunction_CylDriver)::DownCast(const Handle(Standard_Transient)& AnObject)
+const Handle(TOcafFunction_CylDriver) TOcafFunction_CylDriver::DownCast(const Handle(Standard_Transient)& AnObject)
{
Handle(TOcafFunction_CylDriver) _anOtherObject;
return (STANDARD_TYPE(TOcafFunction_CylDriver) == AType || TFunction_Driver::IsKind(AType));
}
-Handle_TOcafFunction_CylDriver::~Handle_TOcafFunction_CylDriver() {}
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
-#ifndef _Handle_TOcafFunction_CylDriver_HeaderFile
-#include <Handle_TOcafFunction_CylDriver.hxx>
-#endif
#ifndef _TFunction_Driver_HeaderFile
#include <TFunction_Driver.hxx>
// Type management
//
- Standard_EXPORT friend Handle_Standard_Type& TOcafFunction_CylDriver_Type_();
+ //Standard_EXPORT friend Handle_Standard_Type& TOcafFunction_CylDriver_Type_();
+ Standard_EXPORT const Handle(TOcafFunction_CylDriver) DownCast(const Handle(Standard_Transient)& AnObject);
Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const;
#ifndef _TOcaf_Application_HeaderFile
#define _TOcaf_Application_HeaderFile
-#ifndef _Handle_TOcaf_Application_HeaderFile
-#include <Handle_TOcaf_Application.hxx>
-#endif
-
#ifndef _TDocStd_Application_HeaderFile
#include <TDocStd_Application.hxx>
#endif
#ifndef _Standard_CString_HeaderFile
#include <Standard_CString.hxx>
#endif
-#ifndef _Handle_TDocStd_Document_HeaderFile
-#include <Handle_TDocStd_Document.hxx>
-#endif
-class TColStd_SequenceOfExtendedString;
+#include <TColStd_SequenceOfExtendedString.hxx>
class TDocStd_Document;
// Type management
//
- Standard_EXPORT friend Handle_Standard_Type& TOcaf_Application_Type_();
+ //Standard_EXPORT friend Handle_Standard_Type& TOcaf_Application_Type_();
+ Standard_EXPORT const Handle(TOcaf_Application) DownCast(const Handle(Standard_Transient)& AnObject);
Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const;
#endif
TOcaf_Application::~TOcaf_Application() {}
-
-
-
-Standard_EXPORT Handle_Standard_Type& TOcaf_Application_Type_()
-{
-
- static Handle_Standard_Type aType1 = STANDARD_TYPE(TDocStd_Application);
- if ( aType1.IsNull()) aType1 = STANDARD_TYPE(TDocStd_Application);
- static Handle_Standard_Type aType2 = STANDARD_TYPE(CDF_Application);
- if ( aType2.IsNull()) aType2 = STANDARD_TYPE(CDF_Application);
- static Handle_Standard_Type aType3 = STANDARD_TYPE(CDM_Application);
- if ( aType3.IsNull()) aType3 = STANDARD_TYPE(CDM_Application);
- static Handle_Standard_Type aType4 = STANDARD_TYPE(Standard_Transient);
- if ( aType4.IsNull()) aType4 = STANDARD_TYPE(Standard_Transient);
-
-
- static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,aType4,NULL};
- static Handle_Standard_Type _aType = new Standard_Type("TOcaf_Application",
- sizeof(TOcaf_Application),
- 1,
- (Standard_Address)_Ancestors,
- (Standard_Address)NULL);
-
- return _aType;
-}
-
// DownCast method
// allow safe downcasting
//
-const Handle(TOcaf_Application) Handle(TOcaf_Application)::DownCast(const Handle(Standard_Transient)& AnObject)
+const Handle(TOcaf_Application) TOcaf_Application::DownCast(const Handle(Standard_Transient)& AnObject)
{
Handle(TOcaf_Application) _anOtherObject;
{
return (STANDARD_TYPE(TOcaf_Application) == AType || TDocStd_Application::IsKind(AType));
}
-Handle_TOcaf_Application::~Handle_TOcaf_Application() {}
+
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
-#ifndef _Handle_TNaming_NamedShape_HeaderFile
-#include <Handle_TNaming_NamedShape.hxx>
+#ifndef _TNaming_NamedShape_HeaderFile
+#include <TNaming_NamedShape.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
class TopoDS_Shape;
class TNaming_NamedShape;
class gp_XYZ;
-class Handle_TDataStd_TreeNode;
class TOcaf_Object;
#ifndef _Standard_Macro_HeaderFile
set_property (TARGET Triangulation PROPERTY FOLDER Samples)
-install (TARGETS Triangulation RUNTIME DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/bin${BUILD_POSTFIX}"
- ARCHIVE DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/lib${BUILD_POSTFIX}"
- LIBRARY DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/lib${BUILD_POSTFIX}")
-
-include_directories (${CMAKE_SOURCE_DIR}/src
+install (TARGETS Triangulation
+ CONFIGURATIONS Release
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bin")
+install (TARGETS Triangulation
+ CONFIGURATIONS RelWithDebInfo
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bin")
+install (TARGETS Triangulation
+ CONFIGURATIONS Debug
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bind")
+
+include_directories (${CMAKE_BINARY_DIR}/inc
${MFC_STANDARD_SAMPLES_DIR}/07_Triangulation
${Triangulation_SRC_DIR}
${MFC_STANDARD_SAMPLES_DIR}/Common)
#include <Standard_DefineHandle.hxx>
#include <AIS_InteractiveObject.hxx>
#include <Geom_Curve.hxx>
-
+class ISession_Curve;
DEFINE_STANDARD_HANDLE(ISession_Curve,AIS_InteractiveObject)
class ISession_Curve : public AIS_InteractiveObject
public:
ISession_Curve(const Handle(Geom_Curve)& aCurve);
virtual ~ISession_Curve();
-DEFINE_STANDARD_RTTI(ISession_Curve)
+DEFINE_STANDARD_RTTI(ISession_Curve,AIS_InteractiveObject)
private:
Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,const Handle(Prs3d_Presentation)& aPresentation,const Standard_Integer aMode = 0) ;
//#include "TriangulationDoc.h"
//#include <OCCDemo.h>
class CTriangulationDoc;
-class Handle_AIS_InteractiveObject;
-class Handle_AIS_Point;
-class Handle_Geom_Surface;
-class Handle_Geom_Curve;
-class Handle_Geom2d_Curve;
+#include <AIS_InteractiveObject.hxx>
+#include <AIS_Point.hxx>
+#include <Geom_Surface.hxx>
+#include <Geom_Curve.hxx>
+#include <Geom2d_Curve.hxx>
class Quantity_Color;
class OCCDemo_Presentation
void Tesselate_Presentation::sample(const Standard_CString aFileName)
{
CString initfile(((OCC_App*) AfxGetApp())->GetInitDataDir());
- initfile += "\\..\\..\\Data\\";
+ initfile += "\\..\\..\\..\\samples\\mfc\\standard\\Data\\";
initfile += aFileName;
/*
set_property (TARGET HLR PROPERTY FOLDER Samples)
-install (TARGETS HLR RUNTIME DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/bin${BUILD_POSTFIX}"
- ARCHIVE DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/lib${BUILD_POSTFIX}"
- LIBRARY DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/lib${BUILD_POSTFIX}")
+install (TARGETS HLR
+ CONFIGURATIONS Release
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bin")
+install (TARGETS HLR
+ CONFIGURATIONS RelWithDebInfo
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bin")
+install (TARGETS HLR
+ CONFIGURATIONS Debug
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bind")
-include_directories (${CMAKE_SOURCE_DIR}/src
+include_directories (${CMAKE_BINARY_DIR}/inc
${HLR_RESOURCE_DIR}
${HLR_SRC_DIR}
${MFC_STANDARD_SAMPLES_DIR}/Common)
set_property (TARGET Animation PROPERTY FOLDER Samples)
-install (TARGETS Animation RUNTIME DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/bin${BUILD_POSTFIX}"
- ARCHIVE DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/lib${BUILD_POSTFIX}"
- LIBRARY DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/lib${BUILD_POSTFIX}")
+install (TARGETS Animation
+ CONFIGURATIONS Release
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bin")
+install (TARGETS Animation
+ CONFIGURATIONS RelWithDebInfo
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bin")
+install (TARGETS Animation
+ CONFIGURATIONS Debug
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bind")
-include_directories (${CMAKE_SOURCE_DIR}/src
+include_directories (${CMAKE_BINARY_DIR}/inc
${Animation_RESOURCE_DIR}
${Animation_SRC_DIR}
${MFC_STANDARD_SAMPLES_DIR}/Common)
#include "GeomAPI_PointsToBSplineSurface.hxx"
#include <stdio.h>
#include <TColStd_HArray2OfReal.hxx>
-#include <Geom_BSplineCurve.hxx>
#include <TColgp_Array1OfPnt.hxx>
#include <Geom_CartesianPoint.hxx>
#include <AIS_Point.hxx>
#include <GeomAPI_PointsToBSpline.hxx>
+#include <Geom_BSplineCurve.hxx>
#include <BRepBuilderAPI_Transform.hxx>
#include <TopoDS_Solid.hxx>
#include <BRepAlgoAPI_Fuse.hxx>
set_property (TARGET Convert PROPERTY FOLDER Samples)
-install (TARGETS Convert RUNTIME DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/bin${BUILD_POSTFIX}"
- ARCHIVE DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/lib${BUILD_POSTFIX}"
- LIBRARY DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/lib${BUILD_POSTFIX}")
+install (TARGETS Convert
+ CONFIGURATIONS Release
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bin")
+install (TARGETS Convert
+ CONFIGURATIONS RelWithDebInfo
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bin")
+install (TARGETS Convert
+ CONFIGURATIONS Debug
+ DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bind")
-include_directories (${CMAKE_SOURCE_DIR}/src
+include_directories (${CMAKE_BINARY_DIR}/inc
${Convert_SRC_DIR}
${ISESSION_SUBDIR}
${WNT_SUBDIR}
#include <Geom_SurfaceOfRevolution.hxx>
#include <Geom_ToroidalSurface.hxx>
#include <Geom_ConicalSurface.hxx>
+#include <Geom_BSplineSurface.hxx>
// Initialization of global variable with an instance of this class
// Function : Convert_Presentation::drawSurfaceAndItsBSpline
// Purpose :
//================================================================
-void Convert_Presentation::drawSurfaceAndItsBSpline(Handle_Geom_Surface theSurface,
+void Convert_Presentation::drawSurfaceAndItsBSpline(const Handle_Geom_Surface & theSurface,
const Standard_CString theName,
TCollection_AsciiString& theText)
{
Handle_Geom_BSplineCurve aBSpline = GeomConvert::CurveToBSplineCurve(theCurve);
- drawCurve (aBSpline, BSplineColor);
+ drawCurve (Handle(Geom_Curve)::DownCast(aBSpline), BSplineColor);
}
aPoles(4) = gp_Pnt(500, 500, 0); aWeights(4) = 1;
Handle(Geom_BezierCurve) aBezierCurve = new Geom_BezierCurve(aPoles, aWeights);
- drawCurve(aBezierCurve);
+ drawCurve(Handle(Geom_Curve)::DownCast(aBezierCurve));
// creating a surface of revolution of the bezier curve around Y axis
gp_Ax1 anAx(gp_Pnt(0,0,0), gp_Dir(0,1,0));
#endif // _MSC_VER > 1000
#include <OCCDemo_Presentation.h>
-class Handle_Geom_Curve;
-class Handle_Geom_Surface;
+#include <Geom_Curve.hxx>
+#include <Geom_Surface.hxx>
class Quantity_Color;
void drawCurveAndItsBSpline (Handle_Geom_Curve theCurve,
const Standard_CString theName, TCollection_AsciiString& theText);
- void drawSurfaceAndItsBSpline (Handle_Geom_Surface theSurface,
+ void drawSurfaceAndItsBSpline (const Handle_Geom_Surface & theSurface,
const Standard_CString theName, TCollection_AsciiString& theText);
private:
#include <Standard_DefineHandle.hxx>
#include <AIS_InteractiveObject.hxx>
#include <Geom_Curve.hxx>
-
+class ISession_Curve;
DEFINE_STANDARD_HANDLE(ISession_Curve,AIS_InteractiveObject)
class ISession_Curve : public AIS_InteractiveObject
public:
ISession_Curve(const Handle(Geom_Curve)& aCurve);
virtual ~ISession_Curve();
-DEFINE_STANDARD_RTTI(ISession_Curve)
+DEFINE_STANDARD_RTTI(ISession_Curve,AIS_InteractiveObject)
private:
Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,const Handle(Prs3d_Presentation)& aPresentation,const Standard_Integer aMode = 0) ;
#include <OCCDemoDoc.h>
#include <OCCDemo.h>
-class Handle_AIS_InteractiveObject;
-class Handle_AIS_Point;
-class Handle_Geom_Surface;
-class Handle_Geom_Curve;
-class Handle_Geom2d_Curve;
+#include <AIS_InteractiveObject.hxx>
+#include <AIS_Point.hxx>
+#include <Geom_Surface.hxx>
+#include <Geom_Curve.hxx>
+#include <Geom2d_Curve.hxx>
class Quantity_Color;
class OCCDemo_Presentation
#include <Standard_Macro.hxx>
#include <Standard_DefineHandle.hxx>
#include "TopoDS_Shape.hxx"
-
+class ISession2D_Shape;
DEFINE_STANDARD_HANDLE(ISession2D_Shape,AIS_InteractiveObject)
class ISession2D_Shape : public AIS_InteractiveObject
{ return Standard_True; }
public:
- DEFINE_STANDARD_RTTI(ISession2D_Shape)
+ DEFINE_STANDARD_RTTI(ISession2D_Shape,AIS_InteractiveObject)
private:
void BuildAlgo();
OCC_3dView::~OCC_3dView()
{
- if (myView)
+ if (myView.IsNull())
{
myView->Remove();
}
SamplePath += "..";
else{
CString aCInitialDir(aPath);
- SamplePath += "..\\" + aCInitialDir;
+ //SamplePath += "..\\" + aCInitialDir;
}
}
/////////////////////////////////////////////////////////////////////////////
#include <Graphic3d_ArrayOfPolylines.hxx>
#include <Standard_Macro.hxx>
-
+class Sample2D_Face;
DEFINE_STANDARD_HANDLE(Sample2D_Face,AIS_InteractiveObject)
class Sample2D_Face : public AIS_InteractiveObject {
//
Standard_EXPORT Sample2D_Face (const TopoDS_Shape& theFace);
-DEFINE_STANDARD_RTTI(Sample2D_Face)
+DEFINE_STANDARD_RTTI(Sample2D_Face,AIS_InteractiveObject)
private:
#include <SelectMgr_Selection.hxx>
#include <Standard_OStream.hxx>
#include <Standard_IStream.hxx>
-
+class Sample2D_Image;
DEFINE_STANDARD_HANDLE(Sample2D_Image,AIS_TexturedShape)
class Sample2D_Image : public AIS_TexturedShape {
Standard_EXPORT inline void SetScale(const Quantity_Factor aNewScale) ;
Standard_EXPORT virtual void SetContext(const Handle(AIS_InteractiveContext)& theContext) ;
-DEFINE_STANDARD_RTTI(Sample2D_Image)
+DEFINE_STANDARD_RTTI(Sample2D_Image,AIS_TexturedShape)
private:
void MakeShape();
protected:
#include <Standard_DefineHandle.hxx>
#include <Graphic3d_Array1OfVertex.hxx>
#include <Graphic3d_ArrayOfPoints.hxx>
+class Sample2D_Markers;
DEFINE_STANDARD_HANDLE(Sample2D_Markers,AIS_InteractiveObject)
class Sample2D_Markers : public AIS_InteractiveObject {
const Standard_Real theScaleOrId=2.0);
-DEFINE_STANDARD_RTTI(Sample2D_Markers)
+DEFINE_STANDARD_RTTI(Sample2D_Markers,AIS_InteractiveObject)
private:
#include <Graphic3d_VerticalTextAlignment.hxx>
#include <TCollection_AsciiString.hxx>
-
+class Sample2D_Text;
DEFINE_STANDARD_HANDLE(Sample2D_Text,AIS_InteractiveObject)
class Sample2D_Text : public AIS_InteractiveObject
{
inline void SetIsZoomable(const Standard_Boolean theIsZoomable) { myIsZoomable = theIsZoomable;}
-DEFINE_STANDARD_RTTI(Sample2D_Text)
+DEFINE_STANDARD_RTTI(Sample2D_Text,AIS_InteractiveObject)
private:
#include <Standard_DefineHandle.hxx>
#include <Standard_Macro.hxx>
#include <Graphic3d_AspectFillArea3d.hxx>
-
+#include <Prs3d_Projector.hxx>
// Handle definition
//
+class User_Cylinder;
DEFINE_STANDARD_HANDLE(User_Cylinder,AIS_InteractiveObject)
class User_Cylinder: public AIS_InteractiveObject {
// some methods like DynamicType() or IsKind()
//
-DEFINE_STANDARD_RTTI(User_Cylinder)
+DEFINE_STANDARD_RTTI(User_Cylinder,AIS_InteractiveObject)
private:
// Quantity_NameOfColor myCylindricalFaceColor;
// Quantity_NameOfColor myPlanarFaceColor;
set_property (TARGET mfcsample PROPERTY FOLDER Samples)
-install (TARGETS mfcsample RUNTIME DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/bin${BUILD_POSTFIX}"
- ARCHIVE DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/lib${BUILD_POSTFIX}"
- LIBRARY DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/lib${BUILD_POSTFIX}")
-
-include_directories( ${CMAKE_SOURCE_DIR}/src
+install (TARGETS mfcsample
+ CONFIGURATIONS Release
+ RUNTIME DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bin"
+ ARCHIVE DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/lib"
+ LIBRARY DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/lib")
+install (TARGETS mfcsample
+ CONFIGURATIONS RelWithDebInfo
+ RUNTIME DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bin"
+ ARCHIVE DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/lib"
+ LIBRARY DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/lib")
+install (TARGETS mfcsample
+ CONFIGURATIONS Debug
+ RUNTIME DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bind"
+ ARCHIVE DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/libd"
+ LIBRARY DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/libd")
+
+include_directories( ${CMAKE_BINARY_DIR}/inc
${MFC_STANDARD_COMMON_SAMPLES_DIR}
${COMMON_IE_DIR}
${COMMON_ISESSION2D_DIR}
// relative z-range tolerance compatible with for floating point.
static Standard_Real zEpsilon (const Standard_Real theValue)
{
+ if (theValue == 0)
+ {
+ return FLT_EPSILON;
+ }
Standard_Real aLogRadix = Log10 (Abs (theValue)) / Log10 (FLT_RADIX);
Standard_Real aExp = Floor (aLogRadix);
return FLT_EPSILON * Pow (FLT_RADIX, aExp);
#ifndef _Transfer_FinderProcess_HeaderFile
#define _Transfer_FinderProcess_HeaderFile
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
#include <Transfer_ProcessForFinder.hxx>
-#include <Standard_Integer.hxx>
-#include <Standard_CString.hxx>
+#include <Interface_InterfaceModel.hxx>
+
class Interface_InterfaceModel;
class Transfer_TransientMapper;
-class Standard_Transient;
class Transfer_Finder;
class Message_Messenger;
-
class Transfer_FinderProcess;
DEFINE_STANDARD_HANDLE(Transfer_FinderProcess, Transfer_ProcessForFinder)
//! Prints statistics on a given output, according mode
Standard_EXPORT void PrintStats (const Standard_Integer mode, const Handle(Message_Messenger)& S) const;
-
-
-
DEFINE_STANDARD_RTTI(Transfer_FinderProcess,Transfer_ProcessForFinder)
-protected:
-
-
-
-
private:
-
-
Handle(Interface_InterfaceModel) themodel;
-
-
};
-
-
-
-
-
-
#endif // _Transfer_FinderProcess_HeaderFile