Skip to content

GetLine

Public Class

Use to interactively get a line. The Rhino “Line” command uses GetLine.

Inheritance Hierarchy

System.Object
Rhino.Input.Custom.GetLine

Namespace: Rhino.Input.Custom

Assembly: RhinoCommon (in RhinoCommon.dll)

Syntax

public class GetLine : IDisposable

The GetLine type exposes the following members.

Constructors

Name

Description


Public Method

Initializes a new instance of the GetLine class


Properties

Name

Description


Public Property

Controls whether or not a zero length line is acceptable. The default is to require the user to keep picking the end point until we get a point different than the start point.


Public Property

If set, the feedback color is used to draw the dynamic line when the second point is begin picked. If not set, the active layer color is used.


Public Property

Prompt when getting first point


Public Property

If FixedLength > 0, the line must have the specified length


Public Property

Mode used


Public Property

If true, the feedback color is used to draw the dynamic line when the second point is begin picked. If false, the active layer color is used.


Public Property

Prompt when getting midpoint


Public Property

Prompt when getting second point


Methods

Name

Description


Public Method

Actively reclaims unmanaged resources that this instance uses.


Protected Method

For derived class implementers.

This method is called with argument true when class user calls Dispose(), while with argument false when the Garbage Collector invokes the finalizer, or Finalize() method.

You must reclaim all used unmanaged resources in both cases, and can use this chance to call Dispose on disposable fields if the argument is true.

Also, you must call the base virtual method within your overriding method.


Public Method

If true, then all line variations are shown if the default line mode is used


Public Method

If true, then the “BothSides” option shows up when the start point is interactively picked.


Public Method

If true, the “MidPoint” options shows up


Public Method

Equals

Determines whether the specified object is equal to the current object.

(Inherited from Object.)


Protected Method

Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().

(Overrides Object.Finalize..)


Public Method

Perform the ‘get’ operation.


Public Method

GetHashCode

Serves as the default hash function.

(Inherited from Object.)


Public Method

GetType

Gets the Type of the current instance.

(Inherited from Object.)


Protected Method

MemberwiseClone

Creates a shallow copy of the current Object.

(Inherited from Object.)


Public Method

Use SetFirstPoint to specify the line’s starting point and skip the start point interactive picking


Public Method

ToString

Returns a string that represents the current object.

(Inherited from Object.)