Profile Picture

Custom Class inherits NCreatePolygonTool

Posted By Tezcan Cirakoglu 13 Years Ago
Author
Message
Tezcan Cirakoglu
Posted 13 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 2, Visits: 1
Hi everyone,

We are in the middle of R&D period of a project and searching for 2D graphical components and evaluating Nevron Diagram for this purpose. Wee need to interactively draw a kind of room with 4 or more walls like Floor Plan sample. But this has to be done interactively by a custom tool. We tried to override NCreatePolygonTool but could not. Below is the skeleton of the overrides but we need to know the underlying execution and semantic.

Could you please give us a clue to draw 2 polygons interactively at the same time with this tool, which one of the polygons will cover the other? I mean the base NCreatePolygonTool creates a regular polygon, but wee need an inner polygon whicl will mimic as the inside part of a room.

It was hard to tell but i hope it is clear :-)

Best regards

public WallCreateTool(): base()
{
base.Name = "WallCreateTool";
}

protected override void AddNewPoint()
{
base.AddNewPoint();
}

protected override INDiagramElement CreateElement(bool preview)
{
//NDiagramElementFactory factory = View.ElementFactory;
//var inner = factory.CreatePolygon(preview);
//var outer = factory.CreatePolygon(preview);
//return inner;

return base.CreateElement(preview);
}

public override bool ProcessClick(EventArgs e)
{
return base.ProcessClick(e);
}

public override bool ProcessMouseMove(System.Windows.Forms.MouseEventArgs e)
{
return base.ProcessMouseMove(e);
}

public override bool ProcessMouseDown(System.Windows.Forms.MouseEventArgs e)
{
return base.ProcessMouseDown(e);
}

public override bool ProcessMouseUp(System.Windows.Forms.MouseEventArgs e)
{
return base.ProcessMouseUp(e);
}

protected override bool RedefineElement(INDiagramElement element, System.Collections.ArrayList points)
{
return base.RedefineElement(element, points);
}

public override void UpdateReferences(Nevron.INReferenceProvider provider)
{
base.UpdateReferences(provider);
}






Similar Topics


Reading This Topic