//#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 PrevSample() {myIndex--;}
virtual void DoSample() = 0;
/*
- static void GetViewCenter(V3d_Coordinate& Xc, V3d_Coordinate& Yc);
- static void SetViewCenter(const V3d_Coordinate Xc, const V3d_Coordinate Yc);
- static void GetViewEye(V3d_Coordinate& X, V3d_Coordinate& Y, V3d_Coordinate& Z);
- static void SetViewEye(V3d_Coordinate X, V3d_Coordinate Y, V3d_Coordinate Z);
- static Quantity_Factor GetViewScale();
- static void SetViewScale(Quantity_Factor Coef);
+ static void GetViewCenter(Standard_Real& Xc, Standard_Real& Yc);
+ static void SetViewCenter(const Standard_Real Xc, const Standard_Real Yc);
+ static void GetViewEye(Standard_Real& X, Standard_Real& Y, Standard_Real& Z);
+ static void SetViewEye(Standard_Real X, Standard_Real Y, Standard_Real Z);
+ static Standard_Real GetViewScale();
+ static void SetViewScale(Standard_Real Coef);
static void ResetView();
*/
protected:
// Methods to call from a derivable class
void setName (const char* theName) {myName = CString(theName);}
- Handle_AIS_InteractiveContext getAISContext() const;
- Handle_V3d_Viewer getViewer() const;
+ Handle(AIS_InteractiveContext) getAISContext() const;
+ Handle(V3d_Viewer) getViewer() const;
Standard_CString GetDataDir();
Standard_Boolean WaitForInput (unsigned long aMilliSeconds);
// Waits for a user input or a period of time has been elapsed
- Handle_AIS_InteractiveObject drawSurface (const Handle_Geom_Surface& theSurface,
+ Handle(AIS_InteractiveObject) drawSurface (const Handle(Geom_Surface)& theSurface,
const Quantity_Color& theColor = Quantity_Color(Quantity_NOC_LEMONCHIFFON3),
const Standard_Boolean toDisplay = Standard_True);
// creates a finite face based on the given geometric surface
// and displays it in the viewer if toDisplay = Standard_True
- Handle_AIS_InteractiveObject drawCurve (const Handle_Geom_Curve& theCurve,
+ Handle(AIS_InteractiveObject) drawCurve (const Handle(Geom_Curve)& theCurve,
const Quantity_Color& theColor = Quantity_Color(Quantity_NOC_RED),
const Standard_Boolean toDisplay = Standard_True);
// creates an ISession_Curve based on the given geometric curve
// and displays it in the viewer if toDisplay = Standard_True
- Handle_AIS_InteractiveObject drawCurve (const Handle_Geom2d_Curve& theCurve,
+ Handle(AIS_InteractiveObject) drawCurve (const Handle(Geom2d_Curve)& theCurve,
const Quantity_Color& theColor = Quantity_Color(Quantity_NOC_RED),
const Standard_Boolean toDisplay = Standard_True,
const gp_Ax2& aPosition = gp::XOY());
// converts a given curve to 3d using aPosition and calls the previous method
- Handle_AIS_Point drawPoint (const gp_Pnt& thePnt,
+ Handle(AIS_Point) drawPoint (const gp_Pnt& thePnt,
const Quantity_Color& theColor = Quantity_Color(Quantity_NOC_GREEN),
const Standard_Boolean toDisplay = Standard_True);
// creates a presentation of the given point
// and displays it in the viewer if toDisplay = Standard_True
- Handle_AIS_InteractiveObject drawVector (const gp_Pnt& thePnt,
+ Handle(AIS_InteractiveObject) drawVector (const gp_Pnt& thePnt,
const gp_Vec& theVec,
const Quantity_Color& theColor = Quantity_Color(Quantity_NOC_YELLOW),
const Standard_Boolean toDisplay = Standard_True);
// creates a presentation of the given vector
// and displays it in the viewer if toDisplay = Standard_True
- Handle_AIS_Shape drawShape (const TopoDS_Shape& theShape,
+ Handle(AIS_Shape) drawShape (const TopoDS_Shape& theShape,
const Quantity_Color& theColor,
const Standard_Boolean toDisplay = Standard_True);
// creates a presentation of the given shape
// with material PLASTIC and a given color
// and displays it in the viewer if toDisplay = Standard_True
- Handle_AIS_Shape drawShape (const TopoDS_Shape& theShape,
+ Handle(AIS_Shape) drawShape (const TopoDS_Shape& theShape,
const Graphic3d_NameOfMaterial theMaterial = Graphic3d_NOM_BRASS,
const Standard_Boolean toDisplay = Standard_True);
// creates a presentation of the given shape with the given material