# GH_GraphicTreeDisplayArgs class

Namespace: [Grasshopper.Kernel.Data](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.kernel.data.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public class GH_GraphicTreeDisplayArgs
```

A class that contains useful information used for drawing GH_GraphicTrees.

## Fields

- [maxPathLength](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphictreedisplayargs/maxpathlength.md): The number of elements in the longest path of the tree.
- [origin](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphictreedisplayargs/origin.md): The origin point of the tree in Graphics coordinates.
- [radius](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphictreedisplayargs/radius.md): Radius of the outer ring Leaf objects.
- [vp](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphictreedisplayargs/vp.md): Gets the viewport of the canvas in which we're drawing.

## Methods

- [AdjustMaxPathLength](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphictreedisplayargs/adjustmaxpathlength.md): Call this function to register a new maximum path length. This function is only used during the construction of this class. Do not call this while in the middle of a drawing operation.
- [Distance](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphictreedisplayargs/distance.md): (2 overloads, static) Compute the distance between a point P and a finite line segment defined by A-B.
- [DistanceSquared](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphictreedisplayargs/distancesquared.md): (static) Compute the squared distance between two points.
- [RadialBox](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphictreedisplayargs/radialbox.md): Compute the extents of a rectanle within the current layout.
- [RadialCrd](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphictreedisplayargs/radialcrd.md): Compute the x and y coordinates of a point defined by radial coordinates
- [RadialX](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphictreedisplayargs/radialx.md): Compute the x-coordinate of a point defined by radial coordinates
- [RadialY](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphictreedisplayargs/radialy.md): Compute the y-coordinate of a point defined by radial coordinates
- [RadToDeg](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphictreedisplayargs/radtodeg.md): (static) Convert Radians to Degrees
- [RemapDegrees](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphictreedisplayargs/remapdegrees.md): (static) Adjust the angle (in degrees) to match tree orientation
- [SetupViewport](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphictreedisplayargs/setupviewport.md): Assign the viewport member with this function to ensure that other constants are also set.
- [Visible](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-graphictreedisplayargs/visible.md): (6 overloads) Test to see if a bezier segment is within the visible domain. This test is fuzzy in the interest of performance.
