Esempio n. 1
0
        public static List <BoundWithCondition <Point3D> > SetMixedCondition(Parallelepiped bound)
        {
            var leftRight = new Pane();

            leftRight.Add(bound.LeftPane);
            leftRight.Add(bound.RightPane);
            var rest = new Pane();

            rest.Add(bound.FrontPane);
            rest.Add(bound.BackPane);
            rest.Add(bound.TopPane);
            rest.Add(bound.BottomPane);
            return(new List <BoundWithCondition <Point3D> >
            {
                new BoundWithCondition <Point3D>(leftRight, ConditionType.Dirichlet, FunctionFactory.G),
                new BoundWithCondition <Point3D>(rest, ConditionType.Robin, FunctionFactory.G),
                // new BoundWithCondition<Point3D>(topbottom, ConditionType.Neumann, FunctionFactory.G)
            });
        }
Esempio n. 2
0
        void graphListForm_stackOnCurrentGraph( object sender, EventArgs e )
        {
            GraphForm currentGraphForm = CurrentGraphForm;
            if( currentGraphForm == null )
                throw new Exception( "current graph should not be null" );
            GraphItem g = ( ( sender as ToolStripMenuItem ).Owner as ContextMenuStrip ).Tag as GraphItem;

            Pane pane = new Pane();
            pane.Add( g );
            currentGraphForm.PaneList.Add( pane );
            currentGraphForm.Refresh();
        }
Esempio n. 3
0
        void graphListForm_showAsNewGraph( object sender, EventArgs e )
        {
            GraphForm newGraph = OpenGraph( true );
            GraphItem g = ( ( sender as ToolStripMenuItem ).Owner as ContextMenuStrip ).Tag as GraphItem;

            Pane pane = new Pane();
            pane.Add( g );
            newGraph.PaneList.Add( pane );
            newGraph.Refresh();
        }
Esempio n. 4
0
        void graphListForm_showAllAsStackOnNewGraph( object sender, EventArgs e )
        {
            List<GraphItem> gList = ( ( sender as ToolStripMenuItem ).Owner as ContextMenuStrip ).Tag as List<GraphItem>;

            GraphForm newGraph = OpenGraph( true );
            foreach( GraphItem g in gList )
            {
                Pane pane = new Pane();
                pane.Add( g );
                newGraph.PaneList.Add( pane );
            }
            newGraph.Refresh();
        }
Esempio n. 5
0
        void graphListForm_showAllAsStackOnCurrentGraph( object sender, EventArgs e )
        {
            GraphForm currentGraphForm = CurrentGraphForm;
            if( currentGraphForm == null )
                throw new Exception( "current graph should not be null" );
            List<GraphItem> gList = ( ( sender as ToolStripMenuItem ).Owner as ContextMenuStrip ).Tag as List<GraphItem>;

            currentGraphForm.PaneList.Clear();
            foreach( GraphItem g in gList )
            {
                Pane pane = new Pane();
                pane.Add( g );
                currentGraphForm.PaneList.Add( pane );
            }
            currentGraphForm.Refresh();
        }
Esempio n. 6
0
 private void showDataStacked(GraphForm hostGraph, GraphItem item )
 {
     Pane pane = new Pane();
     pane.Add( item );
     hostGraph.PaneList.Add( pane );
     hostGraph.Refresh();
 }
Esempio n. 7
0
 private void SetupPanes()
 {
     if( ! panesSetup )
     {
         tabLabelsPane = RootContext.CreateWidget<Pane>();
         tabDisplayPane = RootContext.CreateWidget<Pane>();
         tabList = RootContext.CreateWidget<HtmlElement>();
         tabList.TagName = "ul";
         tabLabelsPane.Id = "labels";
         tabDisplayPane.Id = "display";
         tabLabelsPane.ClassName = "TabLabels";
         log.Debug("setting up tab panes, labelclass: ", labelClass );
         if( labelClass != null )
             tabLabelsPane.AppendClass(labelClass);
         tabDisplayPane.ClassName = "TabContent";
         if ( UseClearFix ) tabDisplayPane.AppendClass("clearfix");
         tabLabelsPane.Add(tabList);
         panesSetup = true;
         base.Add( tabLabelsPane );
         base.Add( tabDisplayPane );
     }
 }