Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Diagram control and display custom graphics (Read 4577 times)
JackPan
Full Member
***
Offline


I Love MindFusion!

Posts: 134
Joined: Apr 9th, 2020
Diagram control and display custom graphics
Apr 13th, 2020 at 12:51pm
Print Post  
Hi All,

I want to implement those custom graphs, and then store these graphs. When I use them later, I can click on one of the graphs and generate the graph by dragging and dropping the mouse in the diagram. How to implement these graphs?
I want to sort out ideas. Does the database need to be used?

Any assistance would be appreciated.

Cheers,

Jack
  
Back to top
 
IP Logged
 
JackPan
Full Member
***
Offline


I Love MindFusion!

Posts: 134
Joined: Apr 9th, 2020
Re: Diagram control and display custom graphics
Reply #1 - Apr 21st, 2020 at 9:14am
Print Post  
Hi All,

I want to save the graphics on the corresponding button just like the screenshot 4_14_4.Then click the button R0201 just like the screenshot 4_21_1, then drag the left mouse button in the diagram to produce the corresponding figure.

Any assistance would be appreciated.

Cheers,

Jack
  

4_14_4.png ( 36 KB | 135 Downloads )
4_14_4.png
4_21_1.png ( 549 KB | 134 Downloads )
4_21_1.png
Back to top
 
IP Logged
 
JackPan
Full Member
***
Offline


I Love MindFusion!

Posts: 134
Joined: Apr 9th, 2020
Re: Diagram control and display custom graphics
Reply #2 - Apr 21st, 2020 at 9:15am
Print Post  
Added:
Screenshot 4 _14_4
  

4_14_4.png ( 36 KB | 135 Downloads )
4_14_4.png
Back to top
 
IP Logged
 
JackPan
Full Member
***
Offline


I Love MindFusion!

Posts: 134
Joined: Apr 9th, 2020
Re: Diagram control and display custom graphics
Reply #3 - Apr 22nd, 2020 at 2:38pm
Print Post  
Hello, I have been waiting for your reply. Smiley
  
Back to top
 
IP Logged
 
Lyubo
God Member
*****
Offline


MindFusion team

Posts: 511
Joined: Jun 17th, 2010
Re: Diagram control and display custom graphics
Reply #4 - Apr 23rd, 2020 at 5:18am
Print Post  
Hello,

You can check out the VisioStencils sample project included in the WpfDiagram package for ideas on how to populate a NodeListView control with custom nodes and handling the OnDrop event when a DragDrop operation occurs. In your case you most likely won't use Visio shapes, so just assigning an Image or a custom shape to the nodes will be enough.

Regards,
Lyubo
MindFusion
  
Back to top
 
IP Logged
 
JackPan
Full Member
***
Offline


I Love MindFusion!

Posts: 134
Joined: Apr 9th, 2020
Re: Diagram control and display custom graphics
Reply #5 - Apr 23rd, 2020 at 6:24am
Print Post  
Thank you, Lyubo.
Smiley Smiley Smiley
I will study the VisioStencils sample project.

I wish you a better and better life.

Cheers,

Jack
  

4_23_1.png ( 63 KB | 151 Downloads )
4_23_1.png
Back to top
 
IP Logged
 
JackPan
Full Member
***
Offline


I Love MindFusion!

Posts: 134
Joined: Apr 9th, 2020
Re: Diagram control and display custom graphics
Reply #6 - May 4th, 2020 at 9:31am
Print Post  
Hi All,

How to achieve several images seamless Mosaic into an image?

Any assistance would be appreciated.

Cheers,

Jack
  
Back to top
 
IP Logged
 
Lyubo
God Member
*****
Offline


MindFusion team

Posts: 511
Joined: Jun 17th, 2010
Re: Diagram control and display custom graphics
Reply #7 - May 4th, 2020 at 11:24am
Print Post  
Hi,

You can check out the TreeMap sample application included in the WpfDiagram package. It shows one way to lay out rectangular nodes. Maybe it'll fit your requirements.

Regards,
Lyubo
MindFusion
  
Back to top
 
IP Logged
 
JackPan
Full Member
***
Offline


I Love MindFusion!

Posts: 134
Joined: Apr 9th, 2020
Re: Diagram control and display custom graphics
Reply #8 - May 4th, 2020 at 1:59pm
Print Post  
Thank you very much. Lyubo. Smiley Smiley Smiley Smiley
  
Back to top
 
IP Logged
 
JackPan
Full Member
***
Offline


I Love MindFusion!

Posts: 134
Joined: Apr 9th, 2020
Re: Diagram control and display custom graphics
Reply #9 - May 6th, 2020 at 1:58pm
Print Post  
Hi All,

Because the coordinate value of the image taken by the camera is shifted to cause the phenomenon of approximate background image, I want to correct all the coordinate values ​​of this background image, just like the effect of the image above it: the background image The replaced white dot moves to the purple dot with the correct coordinate value, so they overlap, so that all the coordinate values ​​in the entire background image are corrected to be the same as the image above it.

Any assistance would be appreciated.

Cheers,

Jack
  

5_6_1.jpg ( 128 KB | 138 Downloads )
5_6_1.jpg
5_6_3.jpg ( 185 KB | 127 Downloads )
5_6_3.jpg
5_6_4.jpg ( 178 KB | 128 Downloads )
5_6_4.jpg
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Diagram control and display custom graphics
Reply #10 - May 7th, 2020 at 1:11pm
Print Post  
Hi,

This sounds like a computer-vision problem, and has nothing to do with the diagram control. Maybe look into OpenCV library's edge detection algorithms (https://opencv.org/), or check if the code here works for you, I imagine removing empty margin space from both images and drawing them on top of each other with same size will make the dots match -
https://stackoverflow.com/questions/13548962/crop-remove-unwanted-space-at-the-e...

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
JackPan
Full Member
***
Offline


I Love MindFusion!

Posts: 134
Joined: Apr 9th, 2020
Re: Diagram control and display custom graphics
Reply #11 - May 7th, 2020 at 1:46pm
Print Post  
Thank you very much Slavcho.

Smiley Smiley Smiley Smiley Smiley

I will carefully read the ideas you provided to me.
Please pay attention to epidemic prevention.I send my best wishes to you and hope you can return to normal life as soon as possible.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint