public ColorComponents() { InPortData.Add(new PortData("c", "The color", typeof(Value.Container))); OutPortData.Add(_alphaOut); OutPortData.Add(_redOut); OutPortData.Add(_greenOut); OutPortData.Add(_blueOut); RegisterAllPorts(); ArgumentLacing = LacingStrategy.Longest; }
public Color() { InPortData.Add(new PortData("A", "The alpha part of the color between 0 and 255", typeof(Value.Number))); InPortData.Add(new PortData("R", "The red part of the color between 0 and 255", typeof(Value.Number))); InPortData.Add(new PortData("G", "The green part of the color between 0 and 255", typeof(Value.Number))); InPortData.Add(new PortData("B", "The blue part of the color between 0 and 255", typeof(Value.Number))); OutPortData.Add(new PortData("c", "The color", typeof(Value.Container))); RegisterAllPorts(); ArgumentLacing = LacingStrategy.Longest; }
public DynamoConvert() { SelectedMetricConversion = ConversionMetricUnit.Length; AssociativeNode defaultNode = new DoubleNode(0.0); InPortData.Add(new PortData("", "A numeric value for conversion.", defaultNode)); OutPortData.Add(new PortData("", "A converted numeric value.")); ShouldDisplayPreviewCore = true; IsSelectionFromBoxEnabled = true; RegisterAllPorts(); }
public dynFamilyInstanceCreator() { InPortData.Add(new PortData(null, "pt", "Reference points.", typeof(dynReferencePoint))); InPortData.Add(new PortData(null, "typ", "The Family Symbol to use for instantiation.", typeof(dynFamilyTypeSelector))); //StatePortData.Add(new PortData(null, "map", "Instance parameter map.", typeof(dynInstanceParameterMapper))); OutPortData.Add(new PortData(null, "fi", "Family instances created by this operation.", typeof(dynFamilyInstanceCreator))); OutPortData[0].Object = this.Tree; base.RegisterInputsAndOutputs(); }
private IEnumerable <KeyValuePair <string, Value> > MakeBindings(IEnumerable <Value> args) { //Zip up our inputs var bindings = InPortData .Select(x => x.NickName) .Zip(args, (s, v) => new KeyValuePair <string, Value>(s, v)) .ToList(); //bindings.Add(new KeyValuePair<string, dynamic>("__persistent__", _stateDict)); return(bindings); }
public dynSpatialFieldFace() { InPortData.Add(new PortData("vals", "List of values, corresponding in length, to the list of sample points.", typeof(Value.List))); InPortData.Add(new PortData("uvs", "Sample locations (UVs) on the face.", typeof(Value.List))); InPortData.Add(new PortData("sfm", "A Spatial Field Manager object.", typeof(Value.Container))); InPortData.Add(new PortData("face", "The face on which to map the analytical data.", typeof(Value.Container))); OutPortData.Add(new PortData("idx", "The index of the resulting analysis results object.", typeof(Value.Container))); RegisterAllPorts(); ArgumentLacing = LacingStrategy.Longest; }
public XyzToSpherical() { InPortData.Add(new PortData("xyz", "XYZ to decompose", typeof(FScheme.Value.Container))); OutPortData.Add(_rPort); OutPortData.Add(_thetaPort); OutPortData.Add(_phiPort); this.ArgumentLacing = LacingStrategy.Longest; RegisterAllPorts(); }
public FreeForm() { InPortData.Add(new PortData("solid", "solid to use for Freeform", typeof(object))); OutPortData.Add(new PortData("form", "Free Form", typeof(object))); RegisterAllPorts(); if (freeFormSolids == null) { freeFormSolids = new Dictionary <ElementId, Solid>(); } }
protected ViewBase() { InPortData.Add(new PortData("eye", "The eye position point.", typeof(Value.Container))); InPortData.Add(new PortData("target", "The location where the view is pointing.", typeof(Value.Container))); InPortData.Add(new PortData("name", "The name of the view.", typeof(Value.String))); InPortData.Add(new PortData("extents", "Pass in a bounding box or an element to define the 3D crop of the view.", typeof(Value.String))); InPortData.Add(new PortData("isolate", "If an element is supplied in 'extents', it will be isolated in the view.", typeof(Value.String))); OutPortData.Add(new PortData("view", "The newly created 3D view.", typeof(Value.Container))); RegisterAllPorts(); }
public Filter(WorkspaceModel workspace) : base(workspace) { InPortData.Add(new PortData("list", "List to filter")); InPortData.Add(new PortData("condition", "Predicate used to determine if an element is filtered in or out.")); OutPortData.Add( new PortData("in", "List containing all elements \"x\" where condition(x) = True")); OutPortData.Add( new PortData("out", "List containing all elements \"x\" where condition(x) = False")); RegisterAllPorts(); }
public BoundingBoxXyz() { InPortData.Add(new PortData("trans", "The coordinate system of the box.", typeof(Value.Container))); InPortData.Add(new PortData("x size", "The size of the bounding box in the x direction of the local coordinate system.", typeof(Value.Number))); InPortData.Add(new PortData("y size", "The size of the bounding box in the y direction of the local coordinate system.", typeof(Value.Number))); InPortData.Add(new PortData("z size", "The size of the bounding box in the z direction of the local coordinate system.", typeof(Value.Number))); OutPortData.Add(new PortData("bbox", "The bounding box.", typeof(Value.Container))); RegisterAllPorts(); ArgumentLacing = LacingStrategy.Longest; }
public RayBounce() { InPortData.Add(new PortData("origin", "The origin of the ray.", typeof(Value.Container))); InPortData.Add(new PortData("direction", "The direction of the ray.", typeof(Value.Container))); InPortData.Add(new PortData("maxBounces", "The maximum number of bounces allowed.", typeof(Value.Number))); InPortData.Add(new PortData("view", "The view in which to conduct the analysis.", typeof(Value.Container))); OutPortData.Add(intersections); OutPortData.Add(elements); RegisterAllPorts(); }
public DynamoConvert() { SelectedMetricConversion = ConversionMetricUnit.Length; AssociativeNode defaultNode = new DoubleNode(0.0); InPortData.Add(new PortData("", Properties.Resources.UnitNodeFromPortTooltip, defaultNode)); OutPortData.Add(new PortData("", Properties.Resources.UnitNodeToPortToolTip)); ShouldDisplayPreviewCore = true; IsSelectionFromBoxEnabled = true; RegisterAllPorts(); }
public Watch() { InPortData.Add(new PortData("", Resources.WatchPortDataInputToolTip)); OutPortData.Add(new PortData("", Resources.WatchPortDataResultToolTip)); RegisterAllPorts(); ArgumentLacing = LacingStrategy.Disabled; ShouldDisplayPreviewCore = false; HasRunOnce = false; }
public XyzToPolar() { InPortData.Add(new PortData("xyz", "Input XYZ", typeof(FScheme.Value.Container), FScheme.Value.NewContainer(new XYZ(1, 0, 0)))); OutPortData.Add(_rPort); OutPortData.Add(_thetaPort); OutPortData.Add(_offsetPort); this.ArgumentLacing = LacingStrategy.Longest; RegisterAllPorts(); }
public If() { InPortData.Add(new PortData("test", Resources.PortDataTestBlockToolTip)); InPortData.Add(new PortData("true", Resources.PortDataTrueBlockToolTip)); InPortData.Add(new PortData("false", Resources.PortDataFalseBlockToolTip)); OutPortData.Add(new PortData("result", Resources.PortDataResultToolTip)); RegisterAllPorts(); //TODO: Default Values }
public TransFromTo() { InPortData.Add(new PortData("o-from", "Origin(XYZ)", typeof(Value.Container))); InPortData.Add(new PortData("u-from", "Up(XYZ)", typeof(Value.Container))); InPortData.Add(new PortData("f-from", "Up(XYZ)", typeof(Value.Container))); InPortData.Add(new PortData("o-to", "Origin(XYZ)", typeof(Value.Container))); InPortData.Add(new PortData("u-to", "Up(XYZ)", typeof(Value.Container))); InPortData.Add(new PortData("f-to", "Up(XYZ)", typeof(Value.Container))); OutPortData.Add(new PortData("t", "Transform", typeof(Value.Container))); RegisterAllPorts(); }
public Watch() { InPortData.Add(new PortData("", "Node to evaluate.")); OutPortData.Add(new PortData("", "Watch contents.")); RegisterAllPorts(); ArgumentLacing = LacingStrategy.Disabled; ShouldDisplayPreviewCore = false; HasRunOnce = false; }
public LineByStartPtDirLength() { InPortData.Add(new PortData("start", "The origin of the line.", typeof(FScheme.Value.Container))); InPortData.Add(new PortData("direction", "The direction vector.", typeof(FScheme.Value.Container))); InPortData.Add(new PortData("length", "The length of the line.", typeof(FScheme.Value.Container))); OutPortData.Add(new PortData("line", "Line", typeof(FScheme.Value.Container))); RegisterAllPorts(); ArgumentLacing = LacingStrategy.Longest; }
public If() { InPortData.Add(new PortData("test", "Test block")); InPortData.Add(new PortData("true", "True block")); InPortData.Add(new PortData("false", "False block")); OutPortData.Add(new PortData("result", "Result")); RegisterAllPorts(); //TODO: Default Values }
public CustomNode() { //Define some input ports an input port will be created for //each port data object you add to the InPortData collection InPortData.Add(new PortData("in", "The first port's description.", typeof(FScheme.Value.Container))); //Define some output ports an output port will be created for //the port data object you add to the OutPortData collection OutPortData.Add(new PortData("out", "The output value.", typeof(FScheme.Value.Container))); //Setup all the ports on the node RegisterAllPorts(); }
public ColorRange() { InPortData.Add(new PortData("start", "The start color.", typeof(Value.Container))); InPortData.Add(new PortData("end", "The end color.", typeof(Value.Container))); InPortData.Add(new PortData("value", "The value between 0 and 1 of the selected color.", typeof(Value.Number))); OutPortData.Add(new PortData("color", "The selected color.", typeof(Value.Container))); RegisterAllPorts(); _start = System.Drawing.Color.Blue; _end = System.Drawing.Color.Red; }
public ViewSheet() { InPortData.Add(new PortData("name", "The name of the sheet.", typeof(Value.String))); InPortData.Add(new PortData("number", "The number of the sheet.", typeof(Value.String))); InPortData.Add(new PortData("title block", "The title block to use.", typeof(Value.Container))); InPortData.Add(new PortData("view(s)", "The view(s) to add to the sheet.", typeof(Value.List))); OutPortData.Add(new PortData("sheet", "The view sheet.", typeof(Value.Container))); RegisterAllPorts(); ArgumentLacing = LacingStrategy.Shortest; }
public ModelText() { InPortData.Add(new PortData("text", "The text to create.", typeof(FScheme.Value.String))); InPortData.Add(new PortData("position", "The position of the model text object.", typeof(FScheme.Value.String))); InPortData.Add(new PortData("normal", "The orientation of the model text object.", typeof(FScheme.Value.String))); InPortData.Add(new PortData("up", "The up axis of the model text.", typeof(FScheme.Value.Container))); InPortData.Add(new PortData("depth", "The depth of the model text object.", typeof(FScheme.Value.String))); InPortData.Add(new PortData("text type name", "The name of the model text type to use.", typeof(FScheme.Value.String))); OutPortData.Add(new PortData("model text", "The model text object(s).", typeof(FScheme.Value.Container))); RegisterAllPorts(); }
public ExportWithUnits() { SelectedExportedUnit = ConversionUnit.Feet; SelectedExportedUnitsSource = Conversions.ConversionMetricLookup[ConversionMetricUnit.Length]; InPortData.Add(new PortData("geometry", Resources.ExportToSatGeometryInputDescription)); InPortData.Add(new PortData("filePath", Resources.ExportToSatFilePathDescription, new StringNode())); OutPortData.Add(new PortData("string", Resources.ExportToSatFilePathOutputDescription)); ShouldDisplayPreviewCore = true; RegisterAllPorts(); }
public ColorRange() { InPortData.Add(new PortData("start", Resources.ColorRangePortDataStartToolTip)); InPortData.Add(new PortData("end", Resources.ColorRangePortDataEndToolTip)); InPortData.Add(new PortData("value", Resources.ColorRangePortDataValueToolTip)); OutPortData.Add(new PortData("color", Resources.ColorRangePortDataResultToolTip)); RegisterAllPorts(); this.PropertyChanged += ColorRange_PropertyChanged; ShouldDisplayPreviewCore = false; }
public dynReferencePtGrid() { InPortData.Add(new PortData(null, "xi", "Number in the X direction.", typeof(dynInt))); InPortData.Add(new PortData(null, "yi", "Number in the Y direction.", typeof(dynInt))); InPortData.Add(new PortData(null, "pt", "Origin.", typeof(dynReferencePoint))); InPortData.Add(new PortData(null, "x", "The X spacing.", typeof(dynDouble))); InPortData.Add(new PortData(null, "y", "The Y spacing.", typeof(dynDouble))); InPortData.Add(new PortData(null, "z", "The Z offset.", typeof(dynDouble))); //outports already added in parent base.RegisterInputsAndOutputs(); }
public dynProjectPointOnFace() { InPortData.Add(new PortData("xyz", "The point to be projected.", typeof(Value.Container))); InPortData.Add(new PortData("face/plane", "The face or plane on which to project the point.", typeof(Value.Container))); OutPortData.Add(new PortData("xyz", "The nearest point to the projected point on the face.", typeof(Value.Container))); OutPortData.Add(new PortData("uv", "The UV coordinates of the nearest point on the face.", typeof(Value.Number))); OutPortData.Add(new PortData("d", "The distance from the point to the face", typeof(Value.Number))); OutPortData.Add(new PortData("edge", "The edge if projected point is near an edge.", typeof(Value.Container))); OutPortData.Add(new PortData("edge t", "The parameter of the nearest point on the edge.", typeof(Value.Number))); RegisterAllPorts(); }
public ProjectPointOnFace() { InPortData.Add(new PortData("xyz", "The point to be projected.", typeof(Value.Container))); InPortData.Add(new PortData("face/plane", "The face or plane on which to project the point.", typeof(Value.Container))); OutPortData.Add(_xyzPort); OutPortData.Add(_uvPort); OutPortData.Add(_dPort); OutPortData.Add(_edgePort); OutPortData.Add(_edgeTPort); RegisterAllPorts(); }
public Watch3D() { InPortData.Add(new PortData("", "Incoming geometry objects.", typeof(object))); OutPortData.Add(new PortData("", "Watch contents, passed through", typeof(object))); RegisterAllPorts(); ArgumentLacing = LacingStrategy.Disabled; GetBranchVisualizationCommand = new DelegateCommand(GetBranchVisualization, CanGetBranchVisualization); SelectVisualizationInViewCommand = new DelegateCommand(SelectVisualizationInView, CanSelectVisualizationInView); WatchIsResizable = true; }