public abstract class GetTransform : GetPoint
Used for getting a Transform

Constructors

GetTransform

#
protected GetTransform()

Properties

DynamicDrawColor

public Color DynamicDrawColor { get; set; }
Color used by CRhinoGetPoint::DynamicDraw to draw the current point and the line from the base point to the current point.
inherited fromGetPoint

FullFrameRedrawDuringGet

public bool FullFrameRedrawDuringGet { get; set; }
In the "RARE" case that you need to draw some depth buffered geometry during a Get() operation, setting this value to true will force entire frames to be redrawn while the user moves the mouse. This allows DisplayPipeline events to be triggered as well as OnPostDrawObjects NOTE!! Setting this value to true comes with a significant performance penalty because the scene needs to be fully regenerated every frame where the standard DynamicDraw event draws temporary decorations (geometry) on top of a static scene.
inherited fromGetPoint

HaveTransform

#Since v5.0
public bool HaveTransform { get; set; }

ObjectList

#Since v5.0
public TransformObjectList ObjectList { get; }

OsnapEventType

public OsnapModes OsnapEventType { get; }
Gets the type of object snap used to obtain the point.
inherited fromGetPoint

Tag

public object Tag { get; set; }
Gets or sets an arbitrary object that can be attached to this GetPoint instance. Useful for passing some/ information that you may need in a DynamicDraw event since you can get at this Tag from the GetPointDrawEventArgs.
inherited fromGetPoint

Transform

#Since v5.0
public Transform Transform { get; set; }

Methods

AcceptColor

public void AcceptColor(bool enable)
If you want to allow the user to be able to type in a color r,g,b or name during GetPoint.Get(), GetObject::GetObjects(), etc., then call AcceptColor(true) before calling GetPoint()/GetObject(). If the user chooses to type in a color, then the result code GetResult.Color is returned and you can use RhinoGet.Color() to get the value of the color. If the get accepts points, then the user will not be able to type in r,g,b colors but will be able to type color names.
inherited fromGetBaseClass
enable (bool)true if user is able to type a color.

AcceptCustomMessage

public void AcceptCustomMessage(bool enable)
inherited fromGetBaseClass
enable (bool)

AcceptEnterWhenDone

public void AcceptEnterWhenDone(bool enable)
There are instances of RhinoGet that prompt with "Press Enter when Done." yet do not call AcceptNothing(). On the Mac, these instances need an additional call to AcceptEnterWhenDone() so the GetPointOptions dialog can correctly enable the Done button.
inherited fromGetBaseClass
enable (bool)

AcceptNothing

public void AcceptNothing(bool enable)
If you want to allow the user to be able to press enter in order to skip selecting a something in GetPoint.Get(), GetObject::GetObjects(), etc., then call AcceptNothing( true ) beforehand.
inherited fromGetBaseClass
enable (bool)true if user is able to press enter in order to skip selecting.

AcceptNumber

public void AcceptNumber(bool enable, bool acceptZero)
If you want to allow the user to be able to type in a number during GetPoint.Get(), GetObject::GetObjects(), etc., then call AcceptNumber() beforehand. If the user chooses to type in a number, then the result code GetResult.Number is returned and you can use RhinoGet.Number() to get the value of the number. If you are using GetPoint and you want "0" to return (0,0,0) instead of the number zero, then set acceptZero = false.
inherited fromGetBaseClass
enable (bool)true if user is able to type a number.
acceptZero (bool)If you are using GetPoint and you want "0" to return (0,0,0) instead of the number zero, then set acceptZero = false.

AcceptPoint

public void AcceptPoint(bool enable)
If you want to allow the user to be able to type in a point then call AcceptPoint(true) before calling GetPoint()/GetObject(). If the user chooses to type in a number, then the result code GetResult.Point is returned and you can use RhinoGet.Point() to get the value of the point.
inherited fromGetBaseClass
enable (bool)true if user is able to type in a point.

AcceptString

public void AcceptString(bool enable)
If you want to allow the user to be able to type in a string during GetPoint.Get(), GetObject::GetObjects(), etc., then call AcceptString(true) before calling GetPoint()/GetObject(). If the user chooses to type in a string, then the result code GetResult.String is returned and you can use RhinoGet.String() to get the value of the string.
inherited fromGetBaseClass
enable (bool)true if user is able to type a string.

AcceptUndo

public void AcceptUndo(bool enable)
If you want to allow the user to have an 'undo' option in GetPoint.Get(), GetObject.GetObjects(), etc., then call AcceptUndo(true) beforehand.
inherited fromGetBaseClass
enable (bool)true if user is able to choose the 'Undo' option.

AddConstructionPoint

public int AddConstructionPoint(Point3d point)
Adds a point to the list of construction points.
inherited fromGetPoint
Remarks: Construction points are like snap points except that they get snapped to even when point osnap is off. Typically, there are only a few construction points while there can be many snap points. For example, when polylines are drawn the start point is a construction point and the other points are snap points.
point (Point3d)A point to be added.
Total number of construction points.

AddConstructionPoints

public int AddConstructionPoints(Point3d[] points)
Adds points to the list of construction points.
inherited fromGetPoint
Remarks: Construction points are like snap points except that they get snapped to even when point osnap is off. Typically, there are only a few construction points while there can be many snap points. For example, when polylines are drawn the start point is a construction point and the other points are snap points.
points (Point3d[])An array of points to be added.
Total number of construction points.

AddOption

public int AddOption(LocalizeStringPair optionName, LocalizeStringPair optionValue, bool hiddenOption)
Adds a command line option.
inherited fromGetBaseClass
optionName (LocalizeStringPair)Must only consist of letters and numbers (no characters list periods, spaces, or dashes).
optionValue (LocalizeStringPair)The localized value visualized after an equality sign.
hiddenOption (bool)If true, the option is not displayed on the command line and the full option name must be typed in order to activate the option.
option index value (>0) or 0 if option cannot be added.

AddOption

public int AddOption(LocalizeStringPair optionName, LocalizeStringPair optionValue)
Adds a command line option.
inherited fromGetBaseClass
optionName (LocalizeStringPair)Must only consist of letters and numbers (no characters list periods, spaces, or dashes).
optionValue (LocalizeStringPair)The localized value visualized after an equality sign.
option index value (>0) or 0 if option cannot be added.

AddOption

public int AddOption(LocalizeStringPair optionName)
Adds a command line option.
inherited fromGetBaseClass
optionName (LocalizeStringPair)Must only consist of letters and numbers (no characters list periods, spaces, or dashes).
option index value (>0) or 0 if option cannot be added.

AddOption

public int AddOption(string englishOption, string englishOptionValue, bool hiddenOption)
Adds a command line option.
inherited fromGetBaseClass
englishOption (string)Must only consist of letters and numbers (no characters list periods, spaces, or dashes).
englishOptionValue (string)The option value in English, visualized after an equality sign.
hiddenOption (bool)If true, the option is not displayed on the command line and the full option name must be typed in order to activate the option.
Option index value (>0) or 0 if option cannot be added.

AddOption

public int AddOption(string englishOption, string englishOptionValue)
Adds a command line option.
inherited fromGetBaseClass
englishOption (string)Must only consist of letters and numbers (no characters list periods, spaces, or dashes).
englishOptionValue (string)The option value in English, visualized after an equality sign.
Option index value (>0) or 0 if option cannot be added.

AddOption

public int AddOption(string englishOption)
Adds a command line option.
inherited fromGetBaseClass
englishOption (string)Must only consist of letters and numbers (no characters list periods, spaces, or dashes).
option index value (>0) or 0 if option cannot be added.

AddOptionColor

public int AddOptionColor(LocalizeStringPair optionName, ref OptionColor colorValue, string prompt)
Add a command line option to get colors and automatically save the value.
inherited fromGetBaseClass
optionName (LocalizeStringPair)option description.
colorValue (ref OptionColor)The current color value.
prompt (string)option prompt shown if the user selects this option
option index value (>0) or 0 if option cannot be added.

AddOptionColor

public int AddOptionColor(LocalizeStringPair optionName, ref OptionColor colorValue)
Add a command line option to get colors and automatically save the value.
inherited fromGetBaseClass
optionName (LocalizeStringPair)option description
colorValue (ref OptionColor)The current color value.
option index value (>0) or 0 if option cannot be added.

AddOptionColor

public int AddOptionColor(string englishName, ref OptionColor colorValue, string prompt)
Add a command line option to get colors and automatically save the value.
inherited fromGetBaseClass
englishName (string)option description
colorValue (ref OptionColor)The current color value.
prompt (string)The command prompt will show this during picking.
option index value (>0) or 0 if option cannot be added.

AddOptionColor

public int AddOptionColor(string englishName, ref OptionColor colorValue)
Add a command line option to get colors and automatically save the value.
inherited fromGetBaseClass
englishName (string)option description
colorValue (ref OptionColor)The current color value.
option index value (>0) or 0 if option cannot be added.

AddOptionDouble

public int AddOptionDouble(LocalizeStringPair optionName, ref OptionDouble numberValue, string prompt)
Adds a command line option to get numbers and automatically saves the value.
inherited fromGetBaseClass
optionName (LocalizeStringPair)Must only consist of letters and numbers (no characters list periods, spaces, or dashes)
numberValue (ref OptionDouble)The current number value.
prompt (string)option prompt shown if the user selects this option. If null or empty, then the option name is used as the get number prompt.
option index value (>0) or 0 if option cannot be added.

AddOptionDouble

public int AddOptionDouble(LocalizeStringPair optionName, ref OptionDouble numberValue)
Adds a command line option to get numbers and automatically save the value.
inherited fromGetBaseClass
optionName (LocalizeStringPair)Must only consist of letters and numbers (no characters list periods, spaces, or dashes)
numberValue (ref OptionDouble)The current number value.
option index value (>0) or 0 if option cannot be added.

AddOptionDouble

public int AddOptionDouble(string englishName, ref OptionDouble numberValue, string prompt)
Adds a command line option to get numbers and automatically save the value.
inherited fromGetBaseClass
englishName (string)Must only consist of letters and numbers (no characters list periods, spaces, or dashes)
numberValue (ref OptionDouble)Current value.
prompt (string)option prompt shown if the user selects this option. If null or empty, then the option name is used as the get number prompt.
option index value (>0) or 0 if option cannot be added.

AddOptionDouble

public int AddOptionDouble(string englishName, ref OptionDouble numberValue)
Adds a command line option to get numbers and automatically save the value.
inherited fromGetBaseClass
englishName (string)Must only consist of letters and numbers (no characters list periods, spaces, or dashes)
numberValue (ref OptionDouble)The current number value.
Option index value (>0) or 0 if option cannot be added.

AddOptionEnumList<T>

[CLSCompliant(false)] public int AddOptionEnumList<T>(LocalizeStringPair optionName, T defaultValue, T[] include)
Adds a choice of enumerated values as list option. Allows to include only some enumerated values.
inherited fromGetBaseClass
optionName (LocalizeStringPair)The name of the option
defaultValue (T)The default value
include (T[])An array of enumerated values to use. This argument can also be null; in this case, the whole enumerated is used.
Option index
ArgumentExceptionGets thrown if defaultValue provided is not an enumerated type.

AddOptionEnumList<T>

[CLSCompliant(false)] public int AddOptionEnumList<T>(LocalizeStringPair optionName, T defaultValue)
Adds a choice of enumerated values as list option
inherited fromGetBaseClass
optionName (LocalizeStringPair)The name of the option
defaultValue (T)The default value
Option index
ArgumentExceptionGets thrown if defaultValue provided is not an enumerated type.

AddOptionEnumList<T>

[CLSCompliant(false)] public int AddOptionEnumList<T>(string englishOptionName, T defaultValue, T[] include)
Adds a choice of enumerated values as list option. Allows to include only some enumerated values.
inherited fromGetBaseClass
englishOptionName (string)The name of the option
defaultValue (T)The default value
include (T[])An array of enumerated values to use. This argument can also be null; in this case, the whole enumerated is used.
Option index
ArgumentExceptionGets thrown if defaultValue provided is not an enumerated type.

AddOptionEnumList<T>

[CLSCompliant(false)] public int AddOptionEnumList<T>(string englishOptionName, T defaultValue)
Adds a choice of enumerated values as list option
inherited fromGetBaseClass
englishOptionName (string)The name of the option
defaultValue (T)The default value
Option index
ArgumentExceptionGets thrown if defaultValue provided is not an enumerated type.

AddOptionEnumSelectionList<T>

[CLSCompliant(false)] public int AddOptionEnumSelectionList<T>(LocalizeStringPair optionName, IEnumerable<T> enumSelection, int listCurrentIndex)
Adds a list of enumerated values as option list. Use enumSelection[go.Option.CurrentListOptionIndex] to retrieve selection.
inherited fromGetBaseClass
optionName (LocalizeStringPair)The name of the option
enumSelection (IEnumerable<T>)The enumerated values to use.
listCurrentIndex (int)Zero based index of current option.
Option index

AddOptionEnumSelectionList<T>

[CLSCompliant(false)] public int AddOptionEnumSelectionList<T>(string englishOptionName, IEnumerable<T> enumSelection, int listCurrentIndex)
Adds a list of enumerated values as option list. Use enumSelection[go.Option.CurrentListOptionIndex] to retrieve selection.
inherited fromGetBaseClass
englishOptionName (string)
enumSelection (IEnumerable<T>)
listCurrentIndex (int)

AddOptionInteger

public int AddOptionInteger(LocalizeStringPair optionName, ref OptionInteger intValue, string prompt)
Adds a command line option to get integers and automatically save the value.
inherited fromGetBaseClass
optionName (LocalizeStringPair)Must only consist of letters and numbers (no characters list periods, spaces, or dashes)
intValue (ref OptionInteger)The current integer value.
prompt (string)option prompt shown if the user selects this option. If null or empty, then the option name is used as the get number prompt.
option index value (>0) or 0 if option cannot be added.

AddOptionInteger

public int AddOptionInteger(LocalizeStringPair optionName, ref OptionInteger intValue)
Adds a command line option to get integers and automatically save the value.
inherited fromGetBaseClass
optionName (LocalizeStringPair)Must only consist of letters and numbers (no characters list periods, spaces, or dashes)
intValue (ref OptionInteger)The current integer value.
option index value (>0) or 0 if option cannot be added.

AddOptionInteger

public int AddOptionInteger(string englishName, ref OptionInteger intValue, string prompt)
Adds a command line option to get integers and automatically save the value.
inherited fromGetBaseClass
englishName (string)Must only consist of letters and numbers (no characters list periods, spaces, or dashes)
intValue (ref OptionInteger)The current integer value.
prompt (string)option prompt shown if the user selects this option. If null or empty, then the option name is used as the get number prompt.
option index value (>0) or 0 if option cannot be added.

AddOptionInteger

public int AddOptionInteger(string englishName, ref OptionInteger intValue)
Adds a command line option to get integers and automatically save the value.
inherited fromGetBaseClass
englishName (string)Must only consist of letters and numbers (no characters list periods, spaces, or dashes)
intValue (ref OptionInteger)The current integer value.
option index value (>0) or 0 if option cannot be added.

AddOptionList

public int AddOptionList(LocalizeStringPair optionName, IEnumerable<LocalizeStringPair> listValues, int listCurrentIndex)
Adds a command line list option.
inherited fromGetBaseClass
optionName (LocalizeStringPair)Must only consist of letters and numbers (no characters list periods, spaces, or dashes)
listValues (IEnumerable<LocalizeStringPair>)The string values.
listCurrentIndex (int)Zero based index of current option.
option index value (>0) or 0 if option cannot be added.

AddOptionList

public int AddOptionList(string englishOptionName, IEnumerable<string> listValues, int listCurrentIndex)
Adds a command line list option.
inherited fromGetBaseClass
englishOptionName (string)Must only consist of letters and numbers (no characters list periods, spaces, or dashes)
listValues (IEnumerable<string>)The string values.
listCurrentIndex (int)Zero based index of current option.
option index value (>0) or 0 if option cannot be added.

AddOptionString

public int AddOptionString(LocalizeStringPair optionName, ref OptionString stringValue, string prompt)
Add a command line option to get a string and automatically save the value.
inherited fromGetBaseClass
optionName (LocalizeStringPair)The option description.
stringValue (ref OptionString)The current string value.
prompt (string)Command prompt to be shown if the picks this option.
The option index value (>0) or 0 if option cannot be added.

AddOptionString

public int AddOptionString(LocalizeStringPair optionName, ref OptionString stringValue)
Add a command line option to get a string and automatically save the value.
inherited fromGetBaseClass
optionName (LocalizeStringPair)The option description.
stringValue (ref OptionString)The current string value.
The option index value (>0) or 0 if option cannot be added.

AddOptionString

public int AddOptionString(string englishName, ref OptionString stringValue, string prompt)
Add a command line option to get a string and automatically save the value.
inherited fromGetBaseClass
englishName (string)The option description.
stringValue (ref OptionString)The current string value.
prompt (string)Command prompt to be shown if the picks this option.
The option index value (>0) or 0 if option cannot be added.

AddOptionString

public int AddOptionString(string englishName, ref OptionString stringValue)
Add a command line option to get a string and automatically save the value.
inherited fromGetBaseClass
englishName (string)The option description.
stringValue (ref OptionString)The current string value.
The option index value (>0) or 0 if option cannot be added.

AddOptionToggle

public int AddOptionToggle(LocalizeStringPair optionName, ref OptionToggle toggleValue)
Adds a command line option to toggle a setting.
inherited fromGetBaseClass
optionName (LocalizeStringPair)Must only consist of letters and numbers (no characters list periods, spaces, or dashes)
toggleValue (ref OptionToggle)The current toggle value.
option index value (>0) or 0 if option cannot be added.

AddOptionToggle

public int AddOptionToggle(string englishName, ref OptionToggle toggleValue)
Adds a command line option to toggle a setting.
inherited fromGetBaseClass
englishName (string)Must only consist of letters and numbers (no characters list periods, spaces, or dashes)
toggleValue (ref OptionToggle)The current toggle value.
option index value (>0) or 0 if option cannot be added.

AddSnapPoint

public int AddSnapPoint(Point3d point)
Adds a point to the list of osnap points.
inherited fromGetPoint
Remarks: When point osnap is enabled, GetPoint will snap to points in the Rhino model. If you want the user to be able to snap to additional points, then use GetPoint::AddSnapPoints to specify the locations of these additional points.
point (Point3d)A point.
Total number of snap points.

AddSnapPoints

public int AddSnapPoints(Point3d[] points)
Adds points to the list of osnap points.
inherited fromGetPoint
Remarks: When point osnap is enabled, GetPoint will snap to points in the Rhino model. If you want the user to be able to snap to additional points, then use GetPoint::AddSnapPoints to specify the locations of these additional points.
points (Point3d[])An array of points to snap onto.
Total number of snap points.

AddTransformObjects

#Since v5.0
public void AddTransformObjects(TransformObjectList list)
Adds any objects you want transformed and grips you want transformed. Make sure no duplicates are in the list and that no grip owners are passed in as objects.
list (TransformObjectList)A custom transform object list.

CalculateTransform

#Since v5.0
public abstract Transform CalculateTransform(RhinoViewport viewport, Point3d point)
Retrieves the final transformation.

Override this virtual function to provide your own custom transformation method.

viewport (RhinoViewport)A Rhino viewport that the user is using.
point (Point3d)A point that the user is selecting.
A transformation matrix value.

ClearCommandOptions

public void ClearCommandOptions()
Clear all command options.
inherited fromGetBaseClass

ClearConstraints

public void ClearConstraints()
Removes any explicit constraints added by calls to GetPoint::Constraint() and enable the built-in constraint options.
inherited fromGetPoint

ClearConstructionPoints

public void ClearConstructionPoints()
Remove all construction points.
inherited fromGetPoint
Remarks: Construction points are like snap points except that they get snapped to even when point osnap is off. Typically, there are only a few construction points while there can be many snap points. For example, when polylines are drawn the start point is a construction point and the other points are snap points.

ClearDefault

public void ClearDefault()
Clears any defaults set using SetDefaultPoint, SetDefaultNumber, SetDefaultString, or SetCommandPromptDefault.
inherited fromGetBaseClass

ClearSnapPoints

public void ClearSnapPoints()
Remove all snap points.
inherited fromGetPoint
Remarks: When point osnap is enabled, GetPoint will snap to points in the Rhino model. If you want the user to be able to snap to additional points, then use GetPoint::AddSnapPoints to specify the locations of these additional points.

Color

public Color Color()
Gets a color if Get*() returns GetResult.Color.
inherited fromGetBaseClass
The color chosen by the user.

CommandResult

public Result CommandResult()
Helper method for getting command result value from getter results.
inherited fromGetBaseClass
The converted command result.

Constrain

public bool Constrain(Arc arc)
Constrains the picked point to lie on an arc.
inherited fromGetPoint
arc (Arc)An arc to use as constraint.
true if constraint could be applied.

Constrain

public bool Constrain(Brep brep, int wireDensity, int faceIndex, bool allowPickingPointOffObject)
Constrains the picked point to lie on a brep.
inherited fromGetPoint
brep (Brep)A brep to use as constraint.
wireDensity (int)When wire_density<0, isocurve intersection snapping is turned off, when wire_density>=0, the value defines the isocurve density used for isocurve intersection snapping.
faceIndex (int)When face_index <0, constrain to whole brep. When face_index >=0, constrain to individual face.
allowPickingPointOffObject (bool)defines whether the point pick is allowed to happen off object. When false, a "no no" cursor is shown when the cursor is not on the object. When true, a normal point picking cursor is used and the marker is visible also when the cursor is not on the object.
true if constraint could be applied.

Constrain

public bool Constrain(Circle circle)
Constrains the picked point to lie on a circle.
inherited fromGetPoint
circle (Circle)A circle to use as constraint.
true if constraint could be applied.

Constrain

public bool Constrain(Curve curve, bool allowPickingPointOffObject)
Constrains the picked point to lie on a curve.
inherited fromGetPoint
curve (Curve)A curve to use as constraint.
allowPickingPointOffObject (bool)defines whether the point pick is allowed to happen off object. When false, a "no no" cursor is shown when the cursor is not on the object. When true, a normal point picking cursor is used and the marker is visible also when the cursor is not on the object.
true if constraint could be applied.

Constrain

public bool Constrain(Cylinder cylinder)
Constrains the picked point to lie on a cylinder.
inherited fromGetPoint
cylinder (Cylinder)A cylinder to use as constraint.
true if constraint could be applied.

Constrain

public bool Constrain(Line line)
Constrains the picked point to lie on a line.
inherited fromGetPoint
line (Line)A line to use as constraint.
true if constraint could be applied.

Constrain

public bool Constrain(Mesh mesh, bool allowPickingPointOffObject)
Constrains the picked point to lie on a mesh.
inherited fromGetPoint
mesh (Mesh)A mesh to use as constraint.
allowPickingPointOffObject (bool)defines whether the point pick is allowed to happen off object. When false, a "no no" cursor is shown when the cursor is not on the object. When true, a normal point picking cursor is used and the marker is visible also when the cursor is not on the object.
true if constraint could be applied.

Constrain

public bool Constrain(Plane plane, bool allowElevator)
constrain the picked point to lie on a plane.
inherited fromGetPoint
plane (Plane)A plane to use as constraint.
allowElevator (bool)true if elevator mode should be allowed at user request.
true if constraint could be applied.

Constrain

public bool Constrain(Point3d from, Point3d to)
Constrains the picked point to lie on a line.
inherited fromGetPoint
from (Point3d)The start point of constraint.
to (Point3d)The end point of constraint.
true if constraint could be applied.

Constrain

public bool Constrain(Sphere sphere)
Constrains the picked point to lie on a sphere.
inherited fromGetPoint
sphere (Sphere)A sphere to use as constraint.
true if constraint could be applied.

Constrain

public bool Constrain(Surface surface, bool allowPickingPointOffObject)
Constrains the picked point to lie on a surface.
inherited fromGetPoint
surface (Surface)A surface to use as constraint.
allowPickingPointOffObject (bool)defines whether the point pick is allowed to happen off object. When false, a "no no" cursor is shown when the cursor is not on the object. When true, a normal point picking cursor is used and the marker is visible also when the cursor is not on the object.
true if constraint could be applied.

ConstrainDistanceFromBasePoint

public void ConstrainDistanceFromBasePoint(double distance)
Sets distance constraint from base point.
inherited fromGetPoint
Remarks: If the base point is set and the distance from base point constraint is > 0, then the picked point is constrained to be this distance from the base point.
distance (double)pass UnsetValue to clear this constraint. Pass 0.0 to disable the ability to set this constraint by typing a number during GetPoint.

ConstrainToConstructionPlane

public bool ConstrainToConstructionPlane(bool throughBasePoint)
If enabled, the picked point is constrained to be on the active construction plane. If the base point is set, then the point is constrained to be on the plane that contains the base point and is parallel to the active construction plane. By default this constraint is enabled.
inherited fromGetPoint
throughBasePoint (bool)true if the base point should be used as compulsory level reference.
If true and the base point is set, then the point is constrained to be on the plane parallel to the construction plane that passes through the base point, even when planar mode is off. If throughBasePoint is false, then the base point shift only happens if planar mode is on.

ConstrainToTargetPlane

public void ConstrainToTargetPlane()
Constrains point to lie on a plane that is parallel to the viewing plane and passes through the view's target point.
inherited fromGetPoint

ConstrainToVirtualCPlaneIntersection

public bool ConstrainToVirtualCPlaneIntersection(Plane plane)
If enabled, the picked point is constrained to be on the intersection of the plane and the virtual CPlane going through the plane origin. If the planes are parallel, the constraint works just like planar constraint.
inherited fromGetPoint
plane (Plane)The plane used for the plane - virtual CPlane intersection.
true if the operation succeeded; false otherwise.

CustomMessage

public object CustomMessage()
inherited fromGetBaseClass

Dispose

public void Dispose()
inherited fromGetBaseClass

Dispose

protected virtual void Dispose(bool disposing)
inherited fromGetBaseClass
disposing (bool)

DrawLineFromPoint

public void DrawLineFromPoint(Point3d startPoint, bool showDistanceInStatusBar)
Use DrawLineFromPoint() if you want a dynamic line drawn from a point to the point being picked.
inherited fromGetPoint
Remarks: Calling DrawLineFromPoint automatically enables drawing the line. Use EnableDrawLineFromPoint() to toggle the line drawing state.
startPoint (Point3d)The line is drawn from startPoint to the point being picked. If the base point has not been set, then it is set to startPoint.
showDistanceInStatusBar (bool)if true, the distance from the basePoint to the point begin picked is shown in the status bar.

EnableCurveSnapArrow

public void EnableCurveSnapArrow(bool drawDirectionArrowAtSnapPoint, bool reverseArrow)
Controls display of the curve snap arrow icon.
inherited fromGetPoint
Remarks: The tangent bar is drawn by GetPoint::DynamicDraw. If you override GetPoint::DynamicDraw, then you must call the base class function.
drawDirectionArrowAtSnapPoint (bool)true to draw arrow icon whenever GetPoint snaps to a curve.
reverseArrow (bool)true if arrow icon direction should be the reverse of the first derivative direction.

EnableCurveSnapPerpBar

public void EnableCurveSnapPerpBar(bool drawPerpBarAtSnapPoint, bool drawEndPoints)
Controls display of the curve snap perpendicular bar icon.
inherited fromGetPoint
drawPerpBarAtSnapPoint (bool)true to draw a tangent bar icon whenever GetPoint snaps to a curve.
drawEndPoints (bool)true to draw points at the end of the tangent bar.

EnableCurveSnapTangentBar

public void EnableCurveSnapTangentBar(bool drawTangentBarAtSnapPoint, bool drawEndPoints)
Controls display of the curve snap tangent bar icon.
inherited fromGetPoint
Remarks: The tangent bar is drawn by GetPoint::DynamicDraw. If you override GetPoint::DynamicDraw, then you must call the base class function.
drawTangentBarAtSnapPoint (bool)true to draw a tangent bar icon whenever GetPoint snaps to a curve.
drawEndPoints (bool)true to draw points at the end of the tangent bar.

EnableDrawLineFromPoint

public void EnableDrawLineFromPoint(bool enable)
Controls drawing of dynamic a line from the start point.
inherited fromGetPoint
enable (bool)if true, a dynamic line is drawn from the DrawLineFromPoint startPoint to the point being picked.

EnableNoRedrawOnExit

public void EnableNoRedrawOnExit(bool noRedraw)
The default functionality of the GetPoint operation is to perform a redraw on exit. Calling this function with true turns off automatic redraw at the end of GetPoint. May be needed in some commands for flicker free feedback. When set to true, the caller is responsible for cleaning up the screen after GetPoint.
inherited fromGetPoint
noRedraw (bool)

EnableObjectSnapCursors

public void EnableObjectSnapCursors(bool enable)
Enables or disables object snap cursors. By default, object snap cursors are enabled.
inherited fromGetPoint
enable (bool)If true then object snap cursors (plus sign with "near", "end", etc.) are used when the point snaps to a object.

EnableSnapToCurves

public void EnableSnapToCurves(bool enable)
If you want GetPoint() to try to snap to curves when the mouse is near a curve (like the center point in the Circle command when the AroundCurve option is on), then enable the snap to curves option.
inherited fromGetPoint
enable (bool)Whether points should be enabled.

EnableTransparentCommands

public void EnableTransparentCommands(bool enable)
Control the availability of transparent commands during the get.
inherited fromGetBaseClass
Remarks: Some Rhino commands are "transparent" and can be run inside of other commands. Examples of transparent commands include the view manipulation commands like ZoomExtents, Top, etc., and the selection commands like SelAll, SelPoint, etc. By default transparent commands can be run during any get. If you want to disable this feature, then call EnableTransparentCommands(false) before calling GetString, GetPoint, GetObject, etc.
enable (bool)If true, then transparent commands can be run during the get. If false, then transparent commands cannot be run during the get.

Get

[CLSCompliant(false)] public GetResult Get()
After setting up options and so on, call GetPoint::Get to get a 3d point. The point is retrieved when the mouse goes down.
inherited fromGetPoint

Get

[CLSCompliant(false)] public GetResult Get(bool onMouseUp, bool get2DPoint)
After setting up options and so on, call this method to get a 2d or 3d point.
inherited fromGetPoint
onMouseUp (bool)If false, the point is returned when the left mouse button goes down. If true, the point is returned when the left mouse button goes up.
get2DPoint (bool)If true then get a 2d point otherwise get a 2d point
GetResult.Point if the user chose a 3d point; GetResult.Point2d if the user chose a 2d point; other enumeration value otherwise.

Get

[CLSCompliant(false)] public GetResult Get(bool onMouseUp)
After setting up options and so on, call this method to get a 3d point.
inherited fromGetPoint
onMouseUp (bool)If false, the point is returned when the left mouse button goes down. If true, the point is returned when the left mouse button goes up.
GetResult.Point if the user chose a point; other enumeration value otherwise.

GetConstructionPoints

public Point3d[] GetConstructionPoints()
Gets current construction points.
inherited fromGetPoint
Remarks: Construction points are like snap points except that they get snapped to even when point osnap is off. Typically, there are only a few construction points while there can be many snap points. For example, when polylines are drawn the start point is a construction point and the other points are snap points.
An array of points.

GetPlanarConstraint

public bool GetPlanarConstraint(ref RhinoViewport vp, out Plane plane)
inherited fromGetPoint
vp (ref RhinoViewport)
plane (out Plane)

GetSelectedEnumValue<T>

[CLSCompliant(false)] public T GetSelectedEnumValue<T>()
Returns the selected enumerated value. Use this in combination with GetBaseClass.AddOptionEnumList<T>(string, T).

This must be called directly after having called a Get method, and having obtained a GetResult.Option value.

inherited fromGetBaseClass
ArgumentExceptionGets thrown if type T is not an enumerated type.
IndexOutOfRangeExceptionIf 0 >= CurrentListOptionIndex or CurrentListOptionIndex > N where N is the number of enumerated values.

GetSelectedEnumValueFromSelectionList<T>

[CLSCompliant(false)] public T GetSelectedEnumValueFromSelectionList<T>(IEnumerable<T> selectionList)
Returns the selected enumerated value by looking at the list of values from which to select. Use this in combination with AddOptionEnumSelectionList.
inherited fromGetBaseClass
selectionList (IEnumerable<T>)
ArgumentExceptionGets thrown if type T is not an enumerated type.
IndexOutOfRangeExceptionIf 0 >= CurrentListOptionIndex or CurrentListOptionIndex > N where N is the number of enumerated values.

GetSnapPoints

public Point3d[] GetSnapPoints()
Gets current snap points.
inherited fromGetPoint
An array of points.

GetXform

#Since v5.0
[CLSCompliant(false)] public GetResult GetXform()
Gets the Transformation.

Call this after having set up options and so on.

The result based on user choice.

GotDefault

public bool GotDefault()
Returns true if user pressed Enter to accept a default point, number, or string set using SetDefaultPoint, SetDefaultNumber, or SetDefaultString.
inherited fromGetBaseClass
true if the result if the default point, number or string set. Otherwise, false.

InterruptMouseMove

public bool InterruptMouseMove()
If you have lengthy computations in OnMouseMove() and/or DymanicDraw() overrides, then periodically call InterruptMouseMove() to see if you should interrupt your work because the mouse has moved again.
inherited fromGetPoint
true if you should interrupt your work; false otherwise.

Line2d

public Point[] Line2d()
Returns two points defining the location in the view window of the 2d line selected in GetPoint::Get2dLine().

(0,0) = upper left corner of window.

inherited fromGetBaseClass
An array with two 2D points.

Number

public double Number()
Gets a number if GetPoint.Get(), GetObject.GetObjects(), etc., returns GetResult.Number.
inherited fromGetBaseClass
The number chosen by the user.

NumberPreview

public bool NumberPreview(out double number)
If the user is typing a number, but hasn't pressed Enter, true is returned, along with the number the user typed.
inherited fromGetPoint
number (out double)The number typed by the user.
true if successful, false otherwise.

OnDynamicDraw

protected virtual void OnDynamicDraw(GetPointDrawEventArgs e)
Default calls the DynamicDraw event.
inherited fromGetPoint
e (GetPointDrawEventArgs)Current argument for the event.

OnMouseDown

protected virtual void OnMouseDown(GetPointMouseEventArgs e)
Default calls the MouseDown event.
inherited fromGetPoint
e (GetPointMouseEventArgs)Current argument for the event.

OnMouseMove

protected virtual void OnMouseMove(GetPointMouseEventArgs e)
Calls the GetPoint.MouseMove event and can/should be called by overriding implementation.
inherited fromGetPoint
e (GetPointMouseEventArgs)Current argument for the event.

OnPostDrawObjects

protected virtual void OnPostDrawObjects(DrawEventArgs e)
In the "rare" case that you need to draw some depth buffered geometry during a GetPoint operation, override the OnPostDrawObjects function. NOTE!! Overriding this function comes with a significant performance penalty because the scene needs to be fully regenerated every frame where the standard DynamicDraw event draws temporary decorations (geometry) on top of a static scene.
inherited fromGetPoint
e (DrawEventArgs)Current argument for the event.

OptionIndex

public int OptionIndex()
inherited fromGetBaseClass

PermitConstraintOptions

public void PermitConstraintOptions(bool permit)
Control the availability of the built-in linear, planar, curve, and surface constraint options like "Along", "AlongPerp", "AlongTan", "AlongParallel", "Between", "OnCrv", "OnSrf", ".x", ".y", ".z", ".xy", etc.
inherited fromGetPoint
Remarks: By default, these built-in constraint options are available unless an explicit constraint is added by calling one of the GetPoint::Constrain functions. Calling GetPoint::ClearConstraints automatically enables the built-in constraint options. The built-in constraint options are never visible on the command line and the user must type the complete option name to activate these options.
permit (bool)if true, then the built-in constraint options are automatically available in GetPoint.

PermitElevatorMode

public void PermitElevatorMode(int permitMode)
Permits the use of the control key to define a line constraint.
inherited fromGetPoint
permitMode (int)0: no elevator modes are permitted 1: fixed plane elevator mode (like the Line command) 2: cplane elevator mode (like object dragging)

PermitFromOption

public void PermitFromOption(bool permit)
Control the availability of the built-in "From" option. By default, the "From" option is enabled.
inherited fromGetPoint
Remarks: The GetPoint "From" option is never visible on the command line and the user must type the complete option name to activate the "From" option. When the GetPoint "From" snap is enabled, the user set/change the base point during GetPoint by typing "From" and picking a point. A related option is the built-in distance from base point constraint that is can be set before GetPoint is called by passing a value to GetPoint::ConstrainDistanceFromBasePoint or during GetPoint by entering a number.
permit (bool)if true, then the "From" option is automatically available in GetPoint.

PermitObjectSnap

public void PermitObjectSnap(bool permit)
By default, object snaps like "end", "near", etc. are controlled by the user. If you want to disable this ability, then call PermitObjectSnap(false).
inherited fromGetPoint
permit (bool)true to permit snapping to objects.

PermitOrthoSnap

public void PermitOrthoSnap(bool permit)
Controls availability of ortho snap. Default is true.
inherited fromGetPoint
permit (bool)if true, then GetPoint pays attention to the Rhino "ortho snap" and "planar snap" settings reported by ModelAidSettings.Ortho and ModelAidSettings.Planar.

PermitTabMode

public void PermitTabMode(bool permit)
Permits the use of the tab key to define a line constraint.
inherited fromGetPoint
Remarks: By default, use of the tab key is supported.
permit (bool)If true, then the built-in tab key mode is available.

PickRectangle

public Rectangle PickRectangle()
If the get was a GetObjects() and the mouse was used to select the objects, then the returned rectangle has left < right and top < bottom. This rectangle is the Windows GDI screen coordinates of the picking rectangle. RhinoViewport.GetPickXform( pick_rect, pick_xform ) will calculate the picking transformation that was used. In all other cases, left=right=top=bottom=0;
inherited fromGetBaseClass
The picking rectangle; or 0 in the specified cases.

Point

public Point3d Point()
Gets a point if Get*() returns GetResult.Point.
inherited fromGetBaseClass
The point chosen by the user.

Point2d

public Point Point2d()
Returns location in view of point in selected in GetPoint::Get() or GetPoint::Get2dPoint(). (0,0) = upper left corner of window.
inherited fromGetBaseClass
The location.

PointOnBrep

public BrepFace PointOnBrep(out double u, out double v)
Use to determine if point was on a Brep face. If the point was on a Brep face, then the (u,v) are the face parameters for the point.
inherited fromGetPoint
u (out double)If the point was on a Brep face, then the u parameter.
v (out double)If the point was on a Brep face, then the v parameter.
A face on a copy of the Brep, or null if the point was not on a Brep face.

PointOnCurve

public Curve PointOnCurve(out double t)
Use to determine is point was on a curve.
inherited fromGetPoint
t (out double)If the point was on a curve, then the t is the curve parameter for the point. The point returned by Point() is the same as curve.PointAt(t).
A copy of the curve, or null if the point was not on a curve. If the point was on a Brep edge, then an edge on a copy of the Brep is returned.

PointOnObject

public ObjRef PointOnObject()
Call this function to see if the point was on an object. If the point was on an object an ObjRef is returned; otherwise null is returned.
inherited fromGetPoint
A point object reference.

PointOnSurface

public Surface PointOnSurface(out double u, out double v)
Use to determine if point was on a surface. If the point was on a surface, then the (u,v) are the surface parameters for the point. The point returned by Point() is the same as surface.PointAt(u,v).
inherited fromGetPoint
u (out double)If the point was on a surface, then the u parameter.
v (out double)If the point was on a surface, then the v parameter.
A copy of the surface or null if the point was not on a surface. If the point was on a Brep face, then a copy of the face is returned.

Rectangle2d

public Rectangle Rectangle2d()
Returns the location in the view of the 2d rectangle selected in GetPoint::Get2dRectangle(). rect.left < rect.right and rect.top < rect.bottom (0,0) = upper left corner of window.
inherited fromGetBaseClass
The rectangle.

Result

[CLSCompliant(false)] public GetResult Result()
Returns result of the Get*() call.
inherited fromGetBaseClass
The result of the last Get*() call.

SetBasePoint

public void SetBasePoint(Point3d basePoint, bool showDistanceInStatusBar)
Sets a base point used by ortho snap, from snap, planar snap, etc.
inherited fromGetPoint
basePoint (Point3d)The new base point.
showDistanceInStatusBar (bool)If true, then the distance from base_point to the current point will be in the status bar distance pane.

SetCommandPrompt

public void SetCommandPrompt(string prompt)
Sets prompt message that appears in the command prompt window.
inherited fromGetBaseClass
prompt (string)command prompt message.

SetCommandPromptDefault

public void SetCommandPromptDefault(string defaultValue)
Sets message that describes what default value will be used if the user presses enter. This description appears in angle brackets <> in the command prompt window. You do not need to provide a default value description unless you explicitly enable AcceptNothing.
inherited fromGetBaseClass
Remarks: If you have a simple default point, number, or string, it is easier to use SetDefaultPoint, SetDefaultNumber, or SetDefaultString. SetCommandPromptDefault and AcceptNothing can be used for providing more advanced UI behavior.
defaultValue (string)description of default value.
ON_3dPoint default_center = new ON_3dPoint(2,3,4); GetPoint gp = new GetPoint(); gp.SetCommandPrompt( "Center point" ); gp.SetCommandPromptDefault( "(2,3,4)" ); gp.AcceptNothing(true); gp.GetPoint(); if ( gp.Result() == GetResult.Nothing ) point = default_center;

SetCursor

public void SetCursor(CursorStyle cursor)
Sets cursor that will be used when Get() is called and snap is not happening.
inherited fromGetPoint
cursor (CursorStyle)

SetDefaultColor

public void SetDefaultColor(Color defaultColor)
Sets a color as default value that will be returned if the user presses ENTER key during the get.
inherited fromGetBaseClass
Remarks: Calling SetDefaultColor will automatically handle setting the command prompt default and reacting to the user pressing ENTER. If the user presses ENTER to accept the default color, GetResult.Color is returned and RhinoGet.GotDefault() will return true. Calling SetDefaultColor will clear any previous calls to SetDefaultString or SetDefaultPoint.
defaultColor (Color)value for default color.

SetDefaultInteger

public void SetDefaultInteger(int defaultValue)
Sets a number as default value that will be returned if the user presses ENTER key during the get.
inherited fromGetBaseClass
Remarks: Calling SetDefaultInteger will automatically handle setting the command prompt default and reacting to the user pressing ENTER. If the user presses ENTER to accept the default integer, GetResult.Number is returned and CRhinoGet.GotDefault() will return true. Calling SetDefaultNumber will clear any previous calls to SetDefaultString or SetDefaultPoint.
defaultValue (int)value for default number.

SetDefaultNumber

public void SetDefaultNumber(double defaultNumber)
Sets a number as default value that will be returned if the user presses ENTER key during the get.
inherited fromGetBaseClass
Remarks: Calling SetDefaultNumber will automatically handle setting the command prompt default and reacting to the user pressing ENTER. If the user presses ENTER to accept the default number, GetResult.Number is returned and RhinoGet.GotDefault() will return true. Calling SetDefaultNumber will clear any previous calls to SetDefaultString or SetDefaultPoint.
defaultNumber (double)value for default number.

SetDefaultPoint

public void SetDefaultPoint(Point3d point)
Sets a point as default value that will be returned if the user presses the ENTER key during the get.
inherited fromGetBaseClass
Remarks: Calling SetDefaultPoint will automatically handle setting the command prompt default and reacting to the user pressing ENTER. If the user presses enter to accept the default point, GetResult.Point is returned and RhinoGet.GotDefault() will return true. Calling SetDefaultPoint will clear any previous calls to SetDefaultString or SetDefaultNumber.
point (Point3d)value for default point.

SetDefaultString

public void SetDefaultString(string defaultValue)
Sets a string as default value that will be returned if the user presses ENTER key during the get.
inherited fromGetBaseClass
Remarks: Calling SetDefaultString will automatically handle setting the command prompt default and reacting to the user pressing ENTER. If the user presses ENTER to accept the default string, GetResult.String is returned and RhinoGet.GotDefault() will return true. Calling SetDefaultString will clear any previous calls to SetDefaultNumber or SetDefaultPoint.
defaultValue (string)value for default string.

SetOptionVaries

public void SetOptionVaries(int optionIndex, bool varies)
Sets a command line option value to print "Varies" instead of the regular value.
inherited fromGetBaseClass
optionIndex (int)The option index.
varies (bool)True to print "Varies", false to print the option's current value.

SetWaitDuration

public void SetWaitDuration(int milliseconds)
Sets the wait duration (in milliseconds) of the getter. If the duration passes without the user making a decision, the GetResult.Timeout code is returned.
inherited fromGetBaseClass
milliseconds (int)Number of milliseconds to wait.

StringResult

public string StringResult()
Gets a string if GetPoint.Get(), GetObject.GetObjects(), etc., returns GetResult.String.
inherited fromGetBaseClass
The string chosen by the user.

TryGetBasePoint

public bool TryGetBasePoint(out Point3d basePoint)
inherited fromGetPoint
basePoint (out Point3d)

Vector

public Vector3d Vector()
Gets a direction if Get*() returns GetResult.Point (Set by some digitizers, but in general it's (0,0,0).
inherited fromGetBaseClass
The vector chosen by the user.

View

public RhinoView View()
Gets a view the user clicked in during GetPoint.Get(), GetObject.GetObjects(), etc.
inherited fromGetBaseClass
The view chosen by the user.

Events

DynamicDraw

public event EventHandler<GetPointDrawEventArgs> DynamicDraw
Event to use if you want to dynamically draw things as the mouse/digitizer moves. Every time the mouse moves, DynamicDraw will be called once per viewport. The calls to DynamicDraw happen AFTER the call to MouseMove. If you are drawing anything that takes a long time, periodically call InterruptMouseMove() to see if you should stop.
inherited fromGetPoint

MouseDown

public event EventHandler<GetPointMouseEventArgs> MouseDown
Called during Get2dRectangle, Get2dLine, and GetPoint(..,true) when the mouse down event for the initial point occurs. This function is not called during ordinary point getting because the mouse down event terminates an ordinary point get and returns a GetResult.Point result.
inherited fromGetPoint

MouseMove

public event EventHandler<GetPointMouseEventArgs> MouseMove
Called every time the mouse moves. MouseMove is called once per mouse move and is called BEFORE any calls to OnDynamicDraw. If you are doing anything that takes a long time, periodically call InterruptMouseMove() to see if you should stop. If the view is such that the 2d screen point can't be mapped to a 3d point, the 'point' argument will be Unset.
inherited fromGetPoint

PostDrawObjects

public event EventHandler<DrawEventArgs> PostDrawObjects
Same as the DisplayPipeline.PostDrawObjects, but only works during the operation of the Get() function. NOTE: You must set FullFrameRedrawDuringGet to true in order for this event to be called.
inherited fromGetPoint