Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Create custom intersect/hit test methods (Read 2146 times)
DSS
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 4
Joined: Nov 1st, 2022
Create custom intersect/hit test methods
Nov 1st, 2022 at 4:46am
Print Post  
I need to customize collision checks for DiagramLink, but "Intersects" method is internal. Maybe make it protected?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3443
Joined: Oct 19th, 2005
Re: Create custom intersect/hit test methods
Reply #1 - Nov 1st, 2022 at 12:09pm
Print Post  
Hi,

We've changed it to public virtual in this build -
https://mindfusion.eu/_beta/wpfdiag383.zip

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
DSS
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 4
Joined: Nov 1st, 2022
Re: Create custom intersect/hit test methods
Reply #2 - Nov 2nd, 2022 at 11:16am
Print Post  
I've successfully changed "Intersects" method and selection frame is working properly now. But how do I change single-click selection on link?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3443
Joined: Oct 19th, 2005
Re: Create custom intersect/hit test methods
Reply #3 - Nov 2nd, 2022 at 2:32pm
Print Post  
Set Diagram.HitTestPriority = ZOrder and override links' ContainsPoint method. Otherwise it's selecting based on internal closest-distance calculations.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
DSS
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 4
Joined: Nov 1st, 2022
Re: Create custom intersect/hit test methods
Reply #4 - Nov 3rd, 2022 at 3:18am
Print Post  
That worked, thanks!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint