// Copyright (C) 1995 Taligent, Inc. All rights reserved.
TToolInteractor*
TCanvasPolygonCreationTool::CreateInteractor (MToolTarget* target) const
{
TCanvasPolygonCreationInteractor* theInteractor = NIL;
MCanvasSelection *selection = NIL;
::DynamicCastTo (selection, target);
if ( selection ) {
theInteractor = new TCanvasPolygonCreationInteractor (
selection,
::NonConst(*this)->GetToolHandler());
theInteractor->SetCoordinateView (::NonConst(*this)->GetToolView());
}
return theInteractor;
}