Beispiel #1
0
        public Edge CreateGhostEdge(IGTFGraphModel graphModel)
        {
            GhostEdgeModel ghostEdge;

            if (m_GhostEdgeViewModelCreator != null)
            {
                ghostEdge = m_GhostEdgeViewModelCreator.Invoke(graphModel);
            }
            else
            {
                ghostEdge = new GhostEdgeModel(graphModel);
            }
            var ui = ghostEdge.CreateUI <Edge>(GraphView, m_Store);

            return(ui);
        }
Beispiel #2
0
 public void CreateEdgeCandidate(IGTFGraphModel graphModel)
 {
     m_EdgeCandidate      = CreateGhostEdge(graphModel);
     m_EdgeCandidateModel = m_EdgeCandidate.EdgeModel as GhostEdgeModel;
 }
 public GhostEdgeModel(IGTFGraphModel graphModel)
 {
     GraphModel = graphModel;
 }