Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Possible Primitives for polygon creation? (Read 1907 times)
Kim Lillås
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 26
Joined: Aug 18th, 2016
Possible Primitives for polygon creation?
Nov 29th, 2016 at 2:45pm
Print Post  
Hi,

I was looking at the Diagramming Sample Shape Designer example for WPF. In that example there are 4 "Primitives" (Line, squiggly line, ...).

Does there exist a library of Primitives in Mindfusion, or are these Primitives custom defined Shapes especially made for the demo?

//Kim
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Possible Primitives for polygon creation?
Reply #1 - Nov 30th, 2016 at 6:39am
Print Post  
Hi,

These are standard ElementTempalte-derived classes you would use to create custom Shape objects from code - LineTemplate, BezierTemplate, ArcTemplate, RoundRectangleTemplate. You add them to Shape's outline and decoration arrays to define ShapeNode geometry. We could make some members of ElementTemplate public to let you override them if you'd like to create your own primitives.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Kim Lillås
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 26
Joined: Aug 18th, 2016
Re: Possible Primitives for polygon creation?
Reply #2 - Nov 30th, 2016 at 12:24pm
Print Post  
Thanks for the information, time to look closer at the code then =)

But yes, it would be good to be able to create user defined templates.

Cheers,
Kim
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint