-
Notifications
You must be signed in to change notification settings - Fork 0
/
VarHolder.cs
89 lines (69 loc) · 3.29 KB
/
VarHolder.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
using PAENN2.Models;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Windows;
using System.Windows.Media;
using System.Windows.Shapes;
namespace PAENN2
{
public static class VarHolder
{
public static bool FileChanged = false;
public static Matrix Transfmatrix = Matrix.Identity;
public static string ClickType = "Select";
public static string CurrentLoadcase = "Caso 01";
public static MemberMat CurrentMaterial;
public static MemberSec CurrentSection;
public static double MaxForce = 1;
public static double MinForce = 0;
public static double MaxLoad = 0;
public static double MinLoad = 0;
public static List<string> LoadcasesList = new List<string> { "Caso 01" };
public static ObservableCollection<Node> NodesList = new ObservableCollection<Node>();
public static ObservableCollection<Member> MembersList = new ObservableCollection<Member>();
public static ObservableCollection<MemberMat> MaterialsList = new ObservableCollection<MemberMat>();
public static ObservableCollection<MemberSec> SectionsList = new ObservableCollection<MemberSec>();
public static double[] AppliedNodal = { 0, 0, 0, 0 };
public static double[] AppliedLoads = { 0, 0, 0, 0, 0 };
public static double[] AppliedRestr = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
public static ObservableCollection<Member> SelectedMembers = new ObservableCollection<Member>();
public static ObservableCollection<Node> SelectedNodes = new ObservableCollection<Node>();
public static Point NewMemberStart;
public static System.Windows.Controls.Canvas Content = new System.Windows.Controls.Canvas();
public static DrawingBrush CanvasBG = new DrawingBrush { ViewportUnits = BrushMappingMode.Absolute, TileMode = TileMode.Tile };
public static Pen GridPen = new Pen { Brush = Brushes.Gray, Thickness = 0.5 };
public static Dictionary<string, List<double[]>> DisplacementResults = new Dictionary<string, List<double[]>>();
public static Dictionary<string, List<double[]>> ForceResults = new Dictionary<string, List<double[]>>();
public static Dictionary<string, double[]> ReactionResults = new Dictionary<string, double[]>();
public static bool ResultsAvailable = false;
public static double ResultScale = 2;
public static double[] ResultDisplayValue = new double[4];
public static Member ResultDisplayMember;
public static Path ResultDisplayPath = new Path
{
Stroke = Brushes.Red,
RenderTransform = new TransformGroup
{
Children =
{
new ScaleTransform(),
new RotateTransform()
}
}
};
public static System.Windows.Controls.TextBlock ResultDisplayText = new System.Windows.Controls.TextBlock
{
Foreground = Brushes.Red,
Background = Brushes.White,
RenderTransform = new TransformGroup
{
Children =
{
new ScaleTransform(),
new RotateTransform()
}
}
};
}
}