#include <stdio.h>
+//#define AIS_CURVE_DISPLAY
+
//=======================================================================
// function: Constructor
// purpose:
myUndoDepth (-1),
myOpLevel(0)
{
+#ifdef AIS_CURVE_DISPLAY
+ myAISCurve = new CurveCreator_AISCurve( this );
+#endif
}
//=======================================================================
void CurveCreator_Curve::setDisplayer( CurveCreator_Displayer* theDisplayer )
{
myDisplayer = theDisplayer;
+
+#ifdef AIS_CURVE_DISPLAY
+ myDisplayer->displayAIS( myAISCurve, false );
+#endif
}
//=======================================================================
void CurveCreator_Curve::redisplayCurve()
{
if( myDisplayer ) {
- myDisplayer->erase();
- myDisplayer->display( constructWire() );
+#ifdef AIS_CURVE_DISPLAY
+ myDisplayer->redisplayAIS(myAISCurve, false);
+#else
+ myDisplayer->erase( false );
+ myDisplayer->display( constructWire(), true );
+#endif
}
}
{
// erase curve from the viewer
if( myDisplayer )
- myDisplayer->erase();
+ myDisplayer->erase( true );
// Delete all allocated data.
int i = 0;
const int aNbSections = getNbSections();