/// <summary>
        /// Initializes a new instance of the <see cref="NETGen.Visualization.PresentationSettings"/> class.
        /// </summary>
        /// <param name='width'>
        /// The width of the space the network lives in
        /// </param>
        /// <param name='height'>
        /// The height of the space the network lives in
        /// </param>
        /// <param name='depth'>
        /// The depth of the space the network lives in
        /// </param>
        public PresentationSettings(double width, double height, double depth=0d)
        {
            WorldHeight = height;
            WorldWidth = width;
            WorldDepth = depth;
            VertexSize = (int)(width/100);

            XOffset = 0;
            YOffset = 0;

            DefaultVertexBrush = Brushes.DarkCyan;
            DefaultEdgePen = Pens.DarkSlateGray;
            DefaultArrowBrush = Brushes.Blue;
            BackgroundColor = Color.White;

            DrawEdges = true;
            DrawVertices = true;
            CustomColors = new CustomColorIndexer();
        }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="NETGen.Visualization.PresentationSettings"/> class.
        /// </summary>
        /// <param name='width'>
        /// The width of the space the network lives in
        /// </param>
        /// <param name='height'>
        /// The height of the space the network lives in
        /// </param>
        /// <param name='depth'>
        /// The depth of the space the network lives in
        /// </param>
        public PresentationSettings(double width, double height, double depth = 0d)
        {
            WorldHeight = height;
            WorldWidth  = width;
            WorldDepth  = depth;
            VertexSize  = (int)(width / 100);

            XOffset = 0;
            YOffset = 0;

            DefaultVertexBrush = Brushes.DarkCyan;
            DefaultEdgePen     = Pens.DarkSlateGray;
            DefaultArrowBrush  = Brushes.Blue;
            BackgroundColor    = Color.White;

            DrawEdges    = true;
            DrawVertices = true;
            CustomColors = new CustomColorIndexer();
        }