Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/SharpVectorCore/Svg/ClippingMaskingCompositing/ISharpMarkerHost.cs @ 12762

Last change on this file since 12762 was 12762, checked in by aballeit, 9 years ago

#2283 GUI updates, Tree-chart, MCTS Version 2 (prune leaves)

File size: 1.8 KB
Line 
1using System;
2
3namespace SharpVectors.Dom.Svg
4{
5  /// <summary>
6  /// This is an extension to the Svg DOM. It denotes that an element can
7  /// display markers.
8  /// </summary>
9  /// <remarks>
10  /// <p>
11  /// A marker is a symbol which is attached to one or more vertices of
12  /// some Svg elements.  In order for a marker to be drawn correctly,
13  /// its orientation and position needs to be known.
14  /// See <a href="http://www.w3.org/TR/SVG/painting.html"
15  /// >SVG 1.0 Masking - Establishing A New Clipping Path</a>
16  /// </p>
17  /// <p>
18  /// This interface provides the information required to calculate the
19  /// orientation and position for each marker of an Svg element.
20  /// </p>
21  /// <p>
22  /// To give an Svg element the capability to draw markers, let the Svg
23  /// element implement this interface.
24  /// </p>
25  /// </remarks>
26  public interface ISharpMarkerHost
27  {
28    /// <summary>
29    /// An array specifying the position of each vertex in the Svg
30    /// element's shape.
31    /// </summary>
32        SvgPointF[] MarkerPositions
33    {
34      get;
35    }
36   
37    /// <summary>
38    /// Get the angle of the path segment entering the specified vertex.
39    /// </summary>
40    /// <param name="index">
41    /// Specifies the vertex to which the path segment is entering.
42    /// </param>
43    /// <returns>
44    /// The angle of the path segment entering the specified vertex
45    /// in degrees.
46    /// </returns>
47        double GetStartAngle(int index);
48   
49    /// <summary>
50    /// Get the angle of the path segment leaving the specified vertex
51    /// in degrees.
52    /// </summary>
53    /// <param name="index">
54    /// Specifies the vertex from which the path segment is leaving.
55    /// </param>
56    /// <returns>
57    /// The angle of the path segment leaving the specified vertex.
58    /// </returns>
59        double GetEndAngle(int index);
60  }
61}
Note: See TracBrowser for help on using the repository browser.