- Eliminate classi non usate

- Eliminato Componente di Test
This commit is contained in:
Annamaria Sassi
2025-09-12 10:09:38 +02:00
parent 392e64c81b
commit 36d7c2f97d
8 changed files with 44 additions and 1716 deletions
-46
View File
@@ -515,52 +515,6 @@ namespace WebWindowComplex.Json
}
}
public class JsonCurve
{
private GDB_TY m_CurveType;
[JsonProperty]
[JsonConverter(typeof(StringEnumConverter))]
public GDB_TY CurveType
{
get
{
return m_CurveType;
}
set
{
m_CurveType = value;
}
}
private Point3d m_ptStart;
[JsonProperty]
public Point3d ptStart
{
get
{
return m_ptStart;
}
set
{
m_ptStart = value;
}
}
private Point3d m_ptEnd;
[JsonProperty]
public Point3d ptEnd
{
get
{
return m_ptEnd;
}
set
{
m_ptEnd = value;
}
}
}
public class JsonFrameDimension
{
private int m_nIndex;
-66
View File
@@ -110,25 +110,6 @@ namespace WebWindowComplex.Json
HORIZONTAL = 2
}
public enum GDB_TY
{
NONE = 0,
GROUP = 2,
GEO_VECTOR = 128,
GEO_POINT = 129,
GEO_FRAME = 130,
CRV_LINE = 256,
CRV_ARC = 257,
CRV_BEZ = 258,
CRV_COMPO = 259,
SRF_MESH = 512,
SRF_FRGN = 513,
SRF_BEZ = 514,
VOL_ZMAP = 1024,
EXT_TEXT = 2048,
EXT_DIMENSION = 2049
}
// Specifies the display state of an element.
public enum Visibility
{
@@ -139,52 +120,5 @@ namespace WebWindowComplex.Json
// Do not display the element, and do not reserve space for it in layout.
COLLAPSED
}
//LUA
public enum LuaShapes {
RECT = 1,
CHAMFER_SIDE = 2,
CHAMFER = 3,
ROUND_ARC = 4,
SEGMENTAL_ARC = 5,
POINTED_ARC = 6,
TRIANGLE = 7
}
public struct Point3d
{
public double x;
public double y;
public double z;
public Point3d(double dX, double dY, double dZ)
{
this = default(Point3d);
x = dX;
y = dY;
z = dZ;
}
public Point3d(ref Point3d PtP)
{
this = default(Point3d);
x = PtP.x;
y = PtP.y;
z = PtP.z;
}
public override string ToString()
{
return x.ToString("F3", CultureInfo.InvariantCulture) + "," + y.ToString("F3", CultureInfo.InvariantCulture) + "," + z.ToString("F3", CultureInfo.InvariantCulture);
}
public static Point3d ORIG()
{
return new Point3d(0.0, 0.0, 0.0);
}
}
}
}
+31 -153
View File
@@ -266,7 +266,6 @@ namespace WebWindowComplex
return m_Shape;
}
}
public int SelShapeIndex
{
get
@@ -384,7 +383,6 @@ namespace WebWindowComplex
m_ParentWindow.OnUpdatePreview(m_ParentWindow.sSerialized());
}
}
internal void SetSelShape(Shapes Value)
{
DimensionList.Clear();
@@ -559,19 +557,6 @@ namespace WebWindowComplex
m_nBottomRailQty = nBottomRailQty;
}
private ObservableCollection<Curve> m_Outline;
public ObservableCollection<Curve> Outline
{
get
{
return m_Outline;
}
set
{
m_Outline = value;
}
}
public Frame(Area ParentArea, Window ParentWindow) : base(ParentArea, ParentWindow)
{
}
@@ -586,57 +571,6 @@ namespace WebWindowComplex
return NewFrame;
}
private LuaShapes ConvertShape(Shapes value)
{
switch (value)
{
case Shapes.RECTANGLE:
{
return LuaShapes.RECT;
}
case Shapes.RIGHTCHAMFER:
{
return LuaShapes.CHAMFER_SIDE;
}
case Shapes.LEFTCHAMFER:
{
return LuaShapes.CHAMFER_SIDE;
}
case Shapes.DOUBLECHAMFER:
{
return LuaShapes.CHAMFER;
}
case Shapes.ARC:
{
return LuaShapes.SEGMENTAL_ARC;
}
case Shapes.ARC_FULL:
{
return LuaShapes.ROUND_ARC;
}
case Shapes.DOUBLEARC:
{
return LuaShapes.POINTED_ARC;
}
case Shapes.TRIANGLE:
{
return LuaShapes.TRIANGLE;
}
default:
{
return LuaShapes.RECT;
}
}
}
public override Frame Copy(Area ParentArea)
{
return null;
@@ -663,7 +597,7 @@ namespace WebWindowComplex
public static List<string> s_FamilyHardwareList = new List<string>();
// Macro famiglia hardware scelta dal chiamante
public static string s_SelFamilyHW = "";
public int nSashQty
{
get
@@ -1584,19 +1518,6 @@ namespace WebWindowComplex
}
}
private Curve m_Split;
public Curve sSplit
{
get
{
return m_Split;
}
set
{
m_Split = value;
}
}
public Split(Area ParentArea, Window ParentWindow) : base(ParentArea, ParentWindow)
{
}
@@ -1832,48 +1753,6 @@ namespace WebWindowComplex
}
}
public class Curve
{
private GDB_TY m_CurveType;
public GDB_TY CurveType
{
get
{
return m_CurveType;
}
set
{
m_CurveType = value;
}
}
private Point3d m_ptStart;
public Point3d ptStart
{
get
{
return m_ptStart;
}
set
{
m_ptStart = value;
}
}
private Point3d m_ptEnd;
public Point3d ptEnd
{
get
{
return m_ptEnd;
}
set
{
m_ptEnd = value;
}
}
}
public class Hardware
{
private string m_sId;
@@ -2532,7 +2411,6 @@ namespace WebWindowComplex
}
}
public struct IdNameStruct
{
private int m_Id;
@@ -2673,37 +2551,37 @@ namespace WebWindowComplex
return 0;
}
//public static int IdFromName(string Name, ObservableCollection<object> List)
//{
// checked
// {
// int num = List.Count - 1;
// for (int i = 0; i <= num; i++)
// {
// if (Operators.CompareString(((IdNameStruct)List[i]).Name, Name, TextCompare: false) == 0)
// {
// return ((IdNameStruct)List[i]).Id;
// }
// }
// return 0;
// }
//}
public static int IdFromName(string Name, ObservableCollection<object> List)
{
checked
{
int num = List.Count - 1;
for (int i = 0; i <= num; i++)
{
if (string.Compare(((IdNameStruct)List[i]).Name, Name, false) == 0)
{
return ((IdNameStruct)List[i]).Id;
}
}
return 0;
}
}
//public static int IdFromName(string Name, List<object> List)
//{
// checked
// {
// int num = List.Count - 1;
// for (int i = 0; i <= num; i++)
// {
// if (Operators.CompareString(((IdNameStruct)List[i]).Name, Name, TextCompare: false) == 0)
// {
// return ((IdNameStruct)List[i]).Id;
// }
// }
// return 0;
// }
//}
public static int IdFromName(string Name, List<object> List)
{
checked
{
int num = List.Count - 1;
for (int i = 0; i <= num; i++)
{
if (string.Compare(((IdNameStruct)List[i]).Name, Name, false) == 0)
{
return ((IdNameStruct)List[i]).Id;
}
}
return 0;
}
}
}
}