Skip to content

Commit

Permalink
Merge pull request #69 from oberbichler/feature/tooltips
Browse files Browse the repository at this point in the history
Add missing Tooltips
  • Loading branch information
oberbichler authored Apr 1, 2021
2 parents b90d21f + 925a342 commit 37c7b33
Show file tree
Hide file tree
Showing 13 changed files with 76 additions and 76 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@ namespace Bowerbird.Components.CurveOnSurfaceComponents
{
public class ConstructCurvatureFieldComponent : GH_Component
{
public ConstructCurvatureFieldComponent() : base("BB Curvature Field", "Field", "Beta! Interface might change!", "Bowerbird", "Paths")
public ConstructCurvatureFieldComponent() : base("BB Curvature Field", "Field", "Show the direction field to a given path type. The field can be displayed in the geometry or parameter space (see context menu).", "Bowerbird", "Paths")
{
UpdateMessage();
}

protected override void RegisterInputParams(GH_InputParamManager pManager)
{
pManager.AddParameter(new PathParameter(), "Path Type", "T", "", GH_ParamAccess.item);
pManager.AddBrepParameter("Surface", "S", "", GH_ParamAccess.item);
pManager.AddNumberParameter("Distance", "D", "", GH_ParamAccess.item, 0.5);
pManager.AddNumberParameter("Scale", "s", "", GH_ParamAccess.item, 0.1);
pManager.AddParameter(new PathParameter(), "Path Type", "T", "Path type to be displayed as a vector field.", GH_ParamAccess.item);
pManager.AddBrepParameter("Surface", "S", "Surface or Brep for which the field is to be displayed.", GH_ParamAccess.item);
pManager.AddNumberParameter("Distance", "D", "Approximate distance between the evaluation points.", GH_ParamAccess.item, 0.5);
pManager.AddNumberParameter("Scale", "s", "Size of the cross axes.", GH_ParamAccess.item, 0.1);
}

protected override void RegisterOutputParams(GH_OutputParamManager pManager)
{
pManager.AddLineParameter("A", "A", "", GH_ParamAccess.list);
pManager.AddLineParameter("B", "B", "", GH_ParamAccess.list);
pManager.AddLineParameter("First Directions", "A", "List of the first directions.", GH_ParamAccess.list);
pManager.AddLineParameter("Second Directions", "B", "List of the second directions.", GH_ParamAccess.list);
}

public enum SpaceTypes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ namespace Bowerbird.Components.CurveOnSurfaceComponents
{
public class ConstructCurveOnSurfaceComponent : GH_Component
{
public ConstructCurveOnSurfaceComponent() : base("BB Construct CurveOnSurface", "BBCrvOnSrf", "Beta! Interface might change!", "Bowerbird", "Curve on Surface")
public ConstructCurveOnSurfaceComponent() : base("BB Construct CurveOnSurface", "CrvOnSrf", "Embed a curve on a surface.", "Bowerbird", "Curve on Surface")
{
UpdateMessage();
}

protected override void RegisterInputParams(GH_InputParamManager pManager)
{
pManager.AddSurfaceParameter("Surface", "S", "", GH_ParamAccess.item);
pManager.AddCurveParameter("Curve", "C", "", GH_ParamAccess.item);
pManager.AddSurfaceParameter("Surface", "S", "Surface on which the curve is to be embedded", GH_ParamAccess.item);
pManager.AddCurveParameter("Curve", "C", "Curve which is to be embedded. The curve can be defined in geometry or parameter space (see context menu).", GH_ParamAccess.item);
}

protected override void RegisterOutputParams(GH_OutputParamManager pManager)
{
pManager.AddParameter(new CurveOnSurfaceParameter(), "Curve on Surface", "C", "", GH_ParamAccess.item);
pManager.AddCurveParameter("Approximation", "A", "", GH_ParamAccess.item);
pManager.AddParameter(new CurveOnSurfaceParameter(), "Curve on Surface", "C", "Embedded curve", GH_ParamAccess.item);
pManager.AddCurveParameter("Approximation", "A", "Approximation of the embedded curve as ordinary Rhino curve", GH_ParamAccess.item);
}

protected override void SolveInstance(IGH_DataAccess DA)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ namespace Bowerbird.Components.CurveOnSurfaceComponents
{
public class CurvatureComponent : GH_Component
{
public CurvatureComponent() : base("BB Curvature CurveOnSurface", "κ", "Beta! Interface might change!", "Bowerbird", "Curve on Surface")
public CurvatureComponent() : base("BB Curvature CurveOnSurface", "κ", "Evaluate the curvature of an embedded curve at a specified parameter.", "Bowerbird", "Curve on Surface")
{
}

protected override void RegisterInputParams(GH_InputParamManager pManager)
{
pManager.AddParameter(new CurveOnSurfaceParameter(), "Curve on Surface", "C", "", GH_ParamAccess.item);
pManager.AddNumberParameter("Parameter", "t", "", GH_ParamAccess.item);
pManager.AddParameter(new CurveOnSurfaceParameter(), "Curve on Surface", "C", "Embedded curve to evaluate", GH_ParamAccess.item);
pManager.AddNumberParameter("Parameter", "t", "Parameter on curve domain to evaluate", GH_ParamAccess.item);
}

protected override void RegisterOutputParams(GH_OutputParamManager pManager)
{
pManager.AddPointParameter("Point", "P", "", GH_ParamAccess.item);
pManager.AddVectorParameter("Curvature", "K", "", GH_ParamAccess.item);
pManager.AddCircleParameter("Osculating Circle", "C", "", GH_ParamAccess.item);
pManager.AddPointParameter("Point", "P", "Point on curve at {t}", GH_ParamAccess.item);
pManager.AddVectorParameter("Curvature", "K", "Curvature vector at {t}", GH_ParamAccess.item);
pManager.AddCircleParameter("Osculating Circle", "C", "Curvature circle at {t}", GH_ParamAccess.item);
}

protected override void SolveInstance(IGH_DataAccess DA)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ namespace Bowerbird.Components.CurveOnSurfaceComponents
{
public class DeconstructCurveOnSurfaceComponent : GH_Component
{
public DeconstructCurveOnSurfaceComponent() : base("BB Deconstruct CurveOnSurface", "Deconstruct", "Beta! Interface might change!", "Bowerbird", "Curve on Surface")
public DeconstructCurveOnSurfaceComponent() : base("BB Deconstruct CurveOnSurface", "Deconstruct", "Deconstruct an embedded curve into its components.", "Bowerbird", "Curve on Surface")
{
}

protected override void RegisterInputParams(GH_InputParamManager pManager)
{
pManager.AddParameter(new CurveOnSurfaceParameter(), "Curve on Surface", "C", "", GH_ParamAccess.item);
pManager.AddParameter(new CurveOnSurfaceParameter(), "Curve on Surface", "C", "Embeded curve to deconstruct", GH_ParamAccess.item);
}

protected override void RegisterOutputParams(GH_OutputParamManager pManager)
{
pManager.AddSurfaceParameter("Surface", "S", "", GH_ParamAccess.item);
pManager.AddCurveParameter("Curve", "C", "", GH_ParamAccess.item);
pManager.AddCurveParameter("Approximation", "A", "", GH_ParamAccess.item);
pManager.AddSurfaceParameter("Surface", "S", "Surface on which the curve is embedded", GH_ParamAccess.item);
pManager.AddCurveParameter("Curve", "C", "Parameter curve", GH_ParamAccess.item);
pManager.AddCurveParameter("Approximation", "A", "Approximation of the embedded curve as ordinary Rhino curve", GH_ParamAccess.item);
}

protected override void SolveInstance(IGH_DataAccess DA)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@ namespace Bowerbird.Components.CurveOnSurfaceComponents
{
public class EvaluateComponent : GH_Component
{
public EvaluateComponent() : base("BB Evaluate CurveOnSurface", "BBEval", "Beta! Interface might change!", "Bowerbird", "Curve on Surface")
public EvaluateComponent() : base("BB Evaluate CurveOnSurface", "BBEval", "Evaluate an embedded curve at a specified parameter.", "Bowerbird", "Curve on Surface")
{
}

protected override void RegisterInputParams(GH_InputParamManager pManager)
{
pManager.AddParameter(new CurveOnSurfaceParameter(), "Curve on Surface", "C", "", GH_ParamAccess.item);
pManager.AddNumberParameter("Parameter", "t", "", GH_ParamAccess.item);
pManager.AddParameter(new CurveOnSurfaceParameter(), "Curve on Surface", "C", "Embedded curve to evaluate", GH_ParamAccess.item);
pManager.AddNumberParameter("Parameter", "t", "Parameter on curve domain to evaluate", GH_ParamAccess.item);
}

protected override void RegisterOutputParams(GH_OutputParamManager pManager)
{
pManager.AddPointParameter("Point", "P", "", GH_ParamAccess.item);
pManager.AddVectorParameter("Tangent", "T", "", GH_ParamAccess.item);
pManager.AddVectorParameter("Binormal", "B", "", GH_ParamAccess.item);
pManager.AddVectorParameter("Normal", "N", "", GH_ParamAccess.item);
pManager.AddPointParameter("Point", "P", "Point on curve at {t}", GH_ParamAccess.item);
pManager.AddVectorParameter("Tangent", "T", "Tangent vector of curve at {t}", GH_ParamAccess.item);
pManager.AddVectorParameter("Binormal", "B", "Binormal vector of curve at {t}", GH_ParamAccess.item);
pManager.AddVectorParameter("Normal", "N", "Normal vector of curve at {t}", GH_ParamAccess.item);
}

protected override void SolveInstance(IGH_DataAccess DA)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ namespace Bowerbird.Components.CurveOnSurfaceComponents
{
public class ExtrudeComponent : GH_Component
{
public ExtrudeComponent() : base("BB Extrude CurveOnSurface", "Extrude", "Beta! Interface might change!", "Bowerbird", "Curve on Surface")
public ExtrudeComponent() : base("BB Extrude CurveOnSurface", "Extrude", "Extrude an embedded curve in direction of its normal vector.", "Bowerbird", "Curve on Surface")
{
}

protected override void RegisterInputParams(GH_InputParamManager pManager)
{
pManager.AddParameter(new CurveOnSurfaceParameter(), "Curve on Surface", "C", "", GH_ParamAccess.item);
pManager.AddNumberParameter("Thickness", "t", "", GH_ParamAccess.item);
pManager.AddNumberParameter("Offset", "o", "", GH_ParamAccess.item, 0.0);
pManager.AddParameter(new CurveOnSurfaceParameter(), "Curve on Surface", "C", "Embeded curve to extrude", GH_ParamAccess.item);
pManager.AddNumberParameter("Thickness", "t", "Thickness of the extrusion (t/2 in both directions)", GH_ParamAccess.item);
pManager.AddNumberParameter("Offset", "o", "Offset of the center line in direction of the normal vector", GH_ParamAccess.item, 0.0);
}

protected override void RegisterOutputParams(GH_OutputParamManager pManager)
{
pManager.AddMeshParameter("Mesh", "M", "", GH_ParamAccess.item);
pManager.AddMeshParameter("Mesh", "M", "Extrusion result", GH_ParamAccess.item);
}

protected override void SolveInstance(IGH_DataAccess DA)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ namespace Bowerbird.Components.CurveOnSurfaceComponents
{
public class GeodesicCurvatureComponent : GH_Component
{
public GeodesicCurvatureComponent() : base("BB Geodesic Curvature CurveOnSurface", "κg", "Beta! Interface might change!", "Bowerbird", "Curve on Surface")
public GeodesicCurvatureComponent() : base("BB Geodesic Curvature CurveOnSurface", "κg", "Evaluate the geodesic curvature of an embedded curve at a specified parameter.", "Bowerbird", "Curve on Surface")
{
}

protected override void RegisterInputParams(GH_InputParamManager pManager)
{
pManager.AddParameter(new CurveOnSurfaceParameter(), "Curve on Surface", "C", "", GH_ParamAccess.item);
pManager.AddNumberParameter("Parameter", "t", "", GH_ParamAccess.item);
pManager.AddNumberParameter("Parameter", "t", "Parameter on curve domain to evaluate", GH_ParamAccess.item);
}

protected override void RegisterOutputParams(GH_OutputParamManager pManager)
{
pManager.AddPointParameter("Point", "P", "", GH_ParamAccess.item);
pManager.AddVectorParameter("Curvature", "K", "", GH_ParamAccess.item);
pManager.AddCircleParameter("Osculating Circle", "C", "", GH_ParamAccess.item);
pManager.AddPointParameter("Point", "P", "Point on curve at {t}", GH_ParamAccess.item);
pManager.AddVectorParameter("Curvature", "K", "Curvature vector at {t}", GH_ParamAccess.item);
pManager.AddCircleParameter("Osculating Circle", "C", "Curvature circle at {t}", GH_ParamAccess.item);
}

protected override void SolveInstance(IGH_DataAccess DA)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ namespace Bowerbird.Components.CurveOnSurfaceComponents
{
public class GeodesicTorsionComponent : GH_Component
{
public GeodesicTorsionComponent() : base("BB Geodesic Torsion CurveOnSurface", "τg", "Beta! Interface might change!", "Bowerbird", "Curve on Surface")
public GeodesicTorsionComponent() : base("BB Geodesic Torsion CurveOnSurface", "τg", "Evaluate the geodesic torsion of an embedded curve at a specified parameter.", "Bowerbird", "Curve on Surface")
{
}

protected override void RegisterInputParams(GH_InputParamManager pManager)
{
pManager.AddParameter(new CurveOnSurfaceParameter(), "Curve on Surface", "C", "", GH_ParamAccess.item);
pManager.AddNumberParameter("Parameter", "t", "", GH_ParamAccess.item);
pManager.AddParameter(new CurveOnSurfaceParameter(), "Curve on Surface", "C", "Embedded curve to evaluate", GH_ParamAccess.item);
pManager.AddNumberParameter("Parameter", "t", "Parameter on curve domain to evaluate", GH_ParamAccess.item);
}

protected override void RegisterOutputParams(GH_OutputParamManager pManager)
{
pManager.AddPointParameter("Point", "P", "", GH_ParamAccess.item);
pManager.AddVectorParameter("Torsion", "T", "", GH_ParamAccess.item);
pManager.AddPointParameter("Point", "P", "Point on curve at {t}", GH_ParamAccess.item);
pManager.AddVectorParameter("Torsion", "T", "Torsion vector at {t}", GH_ParamAccess.item);
}

protected override void SolveInstance(IGH_DataAccess DA)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,27 @@ namespace Bowerbird.Components.CurveOnSurfaceComponents
{
public class IntegrateComponent : GH_Component
{
public IntegrateComponent() : base("BB Integrate CurveOnSurface", "BBIntegrate", "Beta! Interface might change!", "Bowerbird", "Curve on Surface")
public IntegrateComponent() : base("BB Integrate CurveOnSurface", "BBIntegrate", "Integrate the curvature of an embedded curve over a specified domain.", "Bowerbird", "Curve on Surface")
{
ValueType = ValueTypes.NormalCurvature;
}

protected override void RegisterInputParams(GH_InputParamManager pManager)
{
pManager.AddParameter(new CurveOnSurfaceParameter(), "Curve on Surface", "C", "", GH_ParamAccess.item);
pManager.AddNumberParameter("Start Parameter", "A", "", GH_ParamAccess.item);
pManager.AddNumberParameter("End Parameter", "B", "", GH_ParamAccess.item);
pManager.AddNumberParameter("Tolerance", "T", "", GH_ParamAccess.item, 1e-6);
pManager.AddIntegerParameter("Maximum Iterations", "N", "", GH_ParamAccess.item, 1000);
pManager.AddParameter(new CurveOnSurfaceParameter(), "Curve on Surface", "C", "Embeded curve to evaluate", GH_ParamAccess.item);
pManager.AddNumberParameter("Start Parameter", "A", "Start of the integration domain (default: start of the curve domain)", GH_ParamAccess.item);
pManager.AddNumberParameter("End Parameter", "B", "End of the integration domain (default: end of the curve domain)", GH_ParamAccess.item);
pManager.AddNumberParameter("Tolerance", "T", "Tolerance for the adaptive numerical integration", GH_ParamAccess.item, 1e-6);
pManager.AddIntegerParameter("Maximum Iterations", "N", "Iteration limit for the numerical integration", GH_ParamAccess.item, 1000);

pManager[1].Optional = true;
pManager[2].Optional = true;
}

protected override void RegisterOutputParams(GH_OutputParamManager pManager)
{
pManager.AddNumberParameter("Integral", "V", "", GH_ParamAccess.item);
pManager.AddNumberParameter("Integral of squared", "V2", "", GH_ParamAccess.item);
pManager.AddNumberParameter("Integral", "V", "Integral of the value selected in the context menu", GH_ParamAccess.item);
pManager.AddNumberParameter("Integral of squared", "V2", "Integral of the squared value selected in the context menu", GH_ParamAccess.item);
}

Func<double, double> Evaluate(IOrientableCurve curve, bool squared)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ namespace Bowerbird.Components.CurveOnSurfaceComponents
{
public class NormalCurvatureComponent : GH_Component
{
public NormalCurvatureComponent() : base("BB Normal Curvature CurveOnSurface", "κn", "Beta! Interface might change!", "Bowerbird", "Curve on Surface")
public NormalCurvatureComponent() : base("BB Normal Curvature CurveOnSurface", "κn", "Evaluate the normal curvature of an embedded curve at a specified parameter.", "Bowerbird", "Curve on Surface")
{
}

protected override void RegisterInputParams(GH_InputParamManager pManager)
{
pManager.AddParameter(new CurveOnSurfaceParameter(), "Curve on Surface", "C", "", GH_ParamAccess.item);
pManager.AddParameter(new CurveOnSurfaceParameter(), "Curve on Surface", "C", "Embeded curve to evaluate", GH_ParamAccess.item);
pManager.AddNumberParameter("Parameter", "t", "", GH_ParamAccess.item);
}

protected override void RegisterOutputParams(GH_OutputParamManager pManager)
{
pManager.AddPointParameter("Point", "P", "", GH_ParamAccess.item);
pManager.AddVectorParameter("Curvature", "K", "", GH_ParamAccess.item);
pManager.AddCircleParameter("Osculating Circle", "C", "", GH_ParamAccess.item);
pManager.AddPointParameter("Point", "P", "Point on curve at {t}", GH_ParamAccess.item);
pManager.AddVectorParameter("Curvature", "K", "Curvature vector at {t}", GH_ParamAccess.item);
pManager.AddCircleParameter("Osculating Circle", "C", "Curvature circle at {t}", GH_ParamAccess.item);
}

protected override void SolveInstance(IGH_DataAccess DA)
Expand Down
Loading

0 comments on commit 37c7b33

Please sign in to comment.