Beispiel #1
0
    //
    //----------------------------------------------------------------------------------------
    // Construction
    //----------------------------------------------------------------------------------------

    public VisualDoubleStrandedRegion(GraphComponent component,
            VisualStrand vStrandTop,
            int iTopControlFirst,
            int iTopControlLast,
            VisualStrand vStrandBottom,
            int iBottomControlFirst,
            int iBottomControlLast,
            int cNt
            ) : base(component)
        {
        Debug.Assert(iTopControlFirst < iTopControlLast);
        Debug.Assert(iBottomControlFirst < iBottomControlLast);
        //
        this.vStrandTop    = vStrandTop;
        this.vStrandBottom = vStrandBottom;
        //
        this.iTopControlFirst = iTopControlFirst;
        this.iTopControlLast  = iTopControlLast;
        this.iBottomControlFirst = iBottomControlFirst;
        this.iBottomControlLast  = iBottomControlLast;
        //
        this.cNt = cNt;
        //
        this.SetStyleName(Constants.StyleDoubleStranded);  // default
        component.AddRenderable(this);
        }
Beispiel #2
0
    //----------------------------------------------------------------------------------------
    // Construction
    //----------------------------------------------------------------------------------------

    public VisualStrand(Strand strand, GraphComponent component, List<GraphEdge> strandEdges, List<GraphVertex> strandVertices) : base(component)
        {
        this.Strand         = strand;
        this.strandEdges    = strandEdges;
        this.strandVertices = strandVertices;
        this.Vertices       = new List<VisualGraphVertex>(strandVertices.Select((v) => v.Visualization));
        component.AddRenderable(this);
        this.SetStyleName(Constants.StyleSpline);  // default
        this.IsSelectable = true;
        }
Beispiel #3
0
    //----------------------------------------------------------------------------------------
    // Construction
    //----------------------------------------------------------------------------------------

    public VisualGraphVertex(GraphComponent component, PointD location) : base(component)
        {
        this.Location = location;
        component.AddRenderable(this);
        component.Locatables.Add(this);
        this.SetStyleName(Constants.StyleDot);  // default
        this.IsSelectable = true;
        }
Beispiel #4
0
 public VisualDomainEndTick(GraphComponent component, VisualStrand strand, int iControlPoint, double length) : base(component)
     {
     this.strand        = strand;
     this.iControlPoint = iControlPoint;
     this.length        = length;
     this.SetStyleName(Constants.StyleDomainEnd);
     component.AddRenderable(this);
     }
Beispiel #5
0
    //----------------------------------------------------------------------------------------
    // Construction
    //----------------------------------------------------------------------------------------

    public VisualStrandLabel(GraphComponent component,
            VisualStrand vStrand,
            int iControlFirst,
            int iControlLast,
            string text,
            string style
            ) : base(component)
        {
        this.vStrand       = vStrand;
        this.iControlFirst = iControlFirst;
        this.iControlLast  = iControlLast;
        this.text          = text;
        //
        Debug.Assert(iControlFirst < iControlLast);
        //
        this.SetStyleName(style);  // default
        component.AddRenderable(this);
        }