Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions D2P_Core/Component.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,5 +192,11 @@ public void ClearStagingLayerCollection()
}
StagingLayerCollection.Clear();
}

public override string ToString()
{
//Type-ID, Name is in Name, (Parent), #Members or Elements
return $"{base.ToString()} [Name: \"{Name}\", Geometries: {GeometryCollection.Count}]";
}
}
}
6 changes: 6 additions & 0 deletions D2P_Core/ComponentMember.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Rhino.DocObjects;
using Rhino.Geometry;
using System.Collections.Generic;
using System.Linq;

namespace D2P_Core
{
Expand All @@ -17,5 +18,10 @@ public ComponentMember(ILayerInfo layerInfo, IEnumerable<GeometryBase> geometryB
public ILayerInfo LayerInfo { get; set; }
public IEnumerable<GeometryBase> GeometryBases { get; set; }
public ObjectAttributes ObjectAttributes { get; set; }

public override string ToString()
{
return $"{base.ToString()} [Layer: \"{LayerInfo.RawLayerName}\", Geometries: {GeometryBases.Count()}]";
}
}
}
7 changes: 7 additions & 0 deletions D2P_Core/ComponentType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
using D2P_Core.Utility;
using Rhino.DocObjects;
using System.Drawing;
//using static System.Runtime.InteropServices.JavaScript.JSType;
using System.Xml.Linq;

namespace D2P_Core
{
Expand Down Expand Up @@ -48,5 +50,10 @@ public ComponentType(TextObject textObj, Settings settings)
LayerColor = Objects.ComponentTypeLayerColorFromObject(textObj, settings);
Settings = Layers.GetComponentTypeSettings(textObj, settings);
}

public override string ToString()
{
return $"{base.ToString()} [TypeID: \"{TypeID}\", Color: \"{LayerColor}\"]";
}
}
}
5 changes: 5 additions & 0 deletions D2P_Core/LayerInfo.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using D2P_Core.Interfaces;
using System.Collections.Generic;
using System.Drawing;
using System.Xml.Linq;

namespace D2P_Core
{
Expand All @@ -15,6 +16,10 @@ public LayerInfo(string rawLayerName, Color layerColor)
RawLayerName = rawLayerName;
LayerColor = layerColor;
}
public override string ToString()
{
return $"{base.ToString()} [Name: \"{RawLayerName}\", Color: {LayerColor}]";
}
}

public class LayerInfoComparer : IComparer<ILayerInfo>
Expand Down
Binary file modified D2P_GrasshopperTools/Assets/GH_BakeComponents.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added D2P_GrasshopperTools/Assets/GH_ComponentGate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified D2P_GrasshopperTools/Assets/GH_CreateBBox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified D2P_GrasshopperTools/Assets/GH_CreateComponent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file modified D2P_GrasshopperTools/Assets/GH_CreateComponentType.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified D2P_GrasshopperTools/Assets/GH_CreateJoint.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added D2P_GrasshopperTools/Assets/GH_CreateLayerInfo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed D2P_GrasshopperTools/Assets/GH_CreateLayerObject.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified D2P_GrasshopperTools/Assets/GH_CreateSettings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified D2P_GrasshopperTools/Assets/GH_DeconstructComponent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified D2P_GrasshopperTools/Assets/GH_DeconstructComponentType.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file removed D2P_GrasshopperTools/Assets/GH_ExportComponent.png
Binary file not shown.
Binary file added D2P_GrasshopperTools/Assets/GH_ExportComponents.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified D2P_GrasshopperTools/Assets/GH_GetComponentIndex.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed D2P_GrasshopperTools/Assets/GH_ObjectAttributes.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed D2P_GrasshopperTools/Assets/GH_RetrieveChildren.png
Binary file not shown.
Binary file not shown.
Binary file modified D2P_GrasshopperTools/Assets/GH_RetrieveConnectedComponents.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added D2P_GrasshopperTools/Assets/GH_RetrieveGeometry.png
Binary file modified D2P_GrasshopperTools/Assets/GH_RetrieveJoints.png
Binary file removed D2P_GrasshopperTools/Assets/GH_RetrieveParent.png
Diff not rendered.
Binary file removed D2P_GrasshopperTools/Assets/GH_Stream.png
Diff not rendered.
Binary file modified D2P_GrasshopperTools/Assets/GH_StreamComponentTypes.png
Binary file added D2P_GrasshopperTools/Assets/GH_StreamComponents.png
Binary file removed D2P_GrasshopperTools/Assets/GH_StreamGate.png
Diff not rendered.
Binary file removed D2P_GrasshopperTools/Assets/GH_Transform.png
Diff not rendered.
Binary file removed D2P_GrasshopperTools/Assets/GH_TypeStream.png
Diff not rendered.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected override Bitmap Icon
get
{
//You can add image files to your project resources and access them like this:
return Properties.Resources.GH_CreateLayerObject;
return Properties.Resources.GH_CreateLayerInfo;
}
}

Expand Down
2 changes: 1 addition & 1 deletion D2P_GrasshopperTools/GH/Create/GHCreateComponentMember.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected override System.Drawing.Bitmap Icon
get
{
//You can add image files to your project resources and access them like this:
return Properties.Resources.GH_CreateComponentObjects;
return Properties.Resources.GH_CreateComponentMember;
}
}

Expand Down
2 changes: 1 addition & 1 deletion D2P_GrasshopperTools/GH/Create/GHCreateObjectAttributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected override Bitmap Icon
get
{
//You can add image files to your project resources and access them like this:
return Properties.Resources.GH_ObjectAttributes;
return Properties.Resources.GH_CreateObjectAttributes;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ protected override System.Drawing.Bitmap Icon
get
{
//You can add image files to your project resources and access them like this:
return Properties.Resources.GH_RegisterComponentObjects;
return Properties.Resources.GH_RegisterComponentMembers;
}
}

Expand Down
2 changes: 1 addition & 1 deletion D2P_GrasshopperTools/GH/Modify/GHTransform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ protected override System.Drawing.Bitmap Icon
get
{
//You can add image files to your project resources and access them like this:
return Properties.Resources.GH_Transform;
return Properties.Resources.GH_TransformComponent;
}
}

Expand Down
2 changes: 1 addition & 1 deletion D2P_GrasshopperTools/GH/Retrieve/GHRetrieveChildren.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ protected override System.Drawing.Bitmap Icon
get
{
//You can add image files to your project resources and access them like this:
return Properties.Resources.GH_RetrieveChildren;
return Properties.Resources.GH_RetrieveChildComponents;
}
}

Expand Down
2 changes: 1 addition & 1 deletion D2P_GrasshopperTools/GH/Retrieve/GHRetrieveGeometry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ protected override System.Drawing.Bitmap Icon
get
{
//You can add image files to your project resources and access them like this:
return Properties.Resources.GH_RetrieveComponentObjects;
return Properties.Resources.GH_RetrieveGeometry;
}
}

Expand Down
2 changes: 1 addition & 1 deletion D2P_GrasshopperTools/GH/Retrieve/GHRetrieveParent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ protected override System.Drawing.Bitmap Icon
get
{
//You can add image files to your project resources and access them like this:
return Properties.Resources.GH_RetrieveParent;
return Properties.Resources.GH_RetrieveParentComponent;
}
}

Expand Down
2 changes: 1 addition & 1 deletion D2P_GrasshopperTools/GH/Stream/GHComponentGate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected override System.Drawing.Bitmap Icon
get
{
//You can add image files to your project resources and access them like this:
return Properties.Resources.GH_ExplodeComponentStream;
return Properties.Resources.GH_ComponentGate;
}
}

Expand Down
2 changes: 1 addition & 1 deletion D2P_GrasshopperTools/GH/Stream/GHStreamComponents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ protected override System.Drawing.Bitmap Icon
get
{
//You can add image files to your project resources and access them like this:
return Properties.Resources.GH_Stream;
return Properties.Resources.GH_StreamComponents;
}
}

Expand Down
2 changes: 1 addition & 1 deletion D2P_GrasshopperTools/GH/Stream/GHStreamComponentsByType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ protected override System.Drawing.Bitmap Icon
get
{
//You can add image files to your project resources and access them like this:
return Properties.Resources.GH_TypeStream;
return Properties.Resources.GH_StreamComponentsByType;
}
}

Expand Down
2 changes: 1 addition & 1 deletion D2P_GrasshopperTools/GH/Stream/GHStreamComponentsGate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected override System.Drawing.Bitmap Icon
get
{
//You can add image files to your project resources and access them like this:
return Properties.Resources.GH_StreamGate;
return Properties.Resources.GH_StreamComponentsGate;
}
}

Expand Down
2 changes: 1 addition & 1 deletion D2P_GrasshopperTools/GH/Utility/GHExportComponents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ protected override System.Drawing.Bitmap Icon
get
{
//You can add image files to your project resources and access them like this:
return Properties.Resources.GH_ExportComponent;
return Properties.Resources.GH_ExportComponents;
}
}

Expand Down
52 changes: 26 additions & 26 deletions D2P_GrasshopperTools/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading