需要Asp.net代码才能创建&显示动态家族树(不提供Treeview) [英] Require Asp.net code for creating & displaying dynamic family tree (NOT Treeview)

查看:52
本文介绍了需要Asp.net代码才能创建&显示动态家族树(不提供Treeview)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好开发者和成员,
我需要asp.net源代码来开发动态族谱.您的帮助将不胜感激.

问候,
Nazneen

Hello developers & members,
I require asp.net source code for developing dynamic family tree. Your help will be really appreciated.

Regards,
Nazneen

推荐答案

这是问题所在:您无法做到.没有人可以,因为所谓的家谱"不是一棵树.根据定义,树是没有循环的图.一个家庭关系图的确有一个简单的原因存在循环:每个人都有父亲和母亲,并且在一棵树中,一个音符只有一个父节点".

因此,不存在家谱"之类的东西.没有人能创造出不存在的东西. :-)

我有一个意见,为什么这个东西仍然被称为家谱".我认为这个概念是在不计女性的情况下创建的,因此它实际上是一棵树,只显示父系线条.但是不确定,可能是我对这种现象的历史了解不足.

现在的问题是:如何创建族图?这将是一项艰巨的工作,需要彻底的设计和大量的时间.我可以看到这里要使用的两个基本功能:

Here is the problem: you cannot do it. Nobody can, because what is called a "family tree" is not a tree. A tree is by definition a graph without loops. A family relationship graph does have loops by a simple reason: everyone has both father and mother, and in a tree, a note only has a "parent node".

So, there is no such thing as "family tree". Nobody can create something which cannot exist. :-)

I have an opinion why this thing is still called "family tree". I think the concept was created when females was not counted, so it was really a tree, with only paternal lines shown. Not sure though, may be my knowledge of history of this phenomena is poor.

Now, the question is: how to create a family graph? This would be quite a job which needs thorough design and considerable time. I can see two basic features to be used here:

  1. HTML5画布.
    请参见 http://en.wikipedia.org/wiki/Canvas_element [ ^ ],https://developer.mozilla.org/en/Canvas_tutorial [ http://en.wikipedia.org/wiki/Scalable_Vector_Graphics [ http://www.w3schools.com/svg/svg_inhtml.asp [ ^ ].
  1. HTML5 Canvas.
    See http://en.wikipedia.org/wiki/Canvas_element[^], https://developer.mozilla.org/en/Canvas_tutorial[^]
  2. SVG which can be embedded in HTML5 or used in HTML tags object or embed.
    See:
    http://en.wikipedia.org/wiki/Scalable_Vector_Graphics[^], http://www.w3schools.com/svg/svg_inhtml.asp[^].



另请参阅: http://dev.opera.com/articles/查看/svg-or-canvas-choosing-between-the-two/ [



See also: http://dev.opera.com/articles/view/svg-or-canvas-choosing-between-the-two/[^].

—SA


这篇关于需要Asp.net代码才能创建&显示动态家族树(不提供Treeview)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆