public void SetThreeDView(bool EnabledTD, p3D OverrideView) { EnableThreeD = EnabledTD; View = OverrideView; }
/// <summary> /// This is the method that actually does the work. /// </summary> /// <param name="DA">The DA object is used to retrieve from inputs and store in outputs.</param> protected override void SolveInstance(IGH_DataAccess DA) { IGH_Goo Element = null; int X = 0; int Y = 0; int Z = 0; bool D = false; if (!DA.GetData(0, ref Element)) { return; } if (!DA.GetData(1, ref X)) { return; } if (!DA.GetData(2, ref Y)) { return; } if (!DA.GetData(3, ref Z)) { return; } wObject W; Element.CastTo(out W); D = !((X == 0) & (Y == 0) & (Z == 0)); p3D V = new p3D(X, Y, Z, D, (p3D.LightingMode)ModeLighting); switch (W.Type) { case "Pollen": switch (W.SubType) { case "DataSet": DataSetCollection tDataSet = (DataSetCollection)W.Element; tDataSet.SetThreeDView(D, V); W.Element = tDataSet; break; case "PointChart": pElement E = (pElement)W.Element; pChart C = (pChart)E.PollenControl; C.View = V; C.SetThreeDView(); E.PollenControl = C; W.Element = E; break; } break; } DA.SetData(0, W); }