Class ConstructAction.GeoObjectInput
Defines an input object for an action derived from ConstructAction. This input object extpects the user to click on a curve (IGeoObject that also implements ICurve. Pressing enter or TAB or clicking the mouse proceeds to the next input object.
Inherited Members
Namespace: CADability.Actions
Assembly: CADability.dll
Syntax
public class GeoObjectInput : ConstructAction.InputObject, ConstructAction.IInputObject
Constructors
| Improve this Doc View SourceGeoObjectInput(String)
Creates a GeoObjectInput object.
Declaration
public GeoObjectInput(string resourceId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | resourceId | the resource id to specify a string from the StringTable. ResourceId+".Label": the Label left of the edit box. ResourceId+".ShortInfo": a short tooltip text ResourceId+"DetailedInfo": a longer tooltip text. |
Fields
| Improve this Doc View SourcecurrentMousePoint
Declaration
public Point currentMousePoint
Field Value
| Type | Description |
|---|---|
| System.Drawing.Point |
EdgesOnly
Declaration
public bool EdgesOnly
Field Value
| Type | Description |
|---|---|
| System.Boolean |
FacesOnly
Declaration
public bool FacesOnly
Field Value
| Type | Description |
|---|---|
| System.Boolean |
ModifiableOnly
true: only curves that may be modified are yielded false: any kind of curves curves are yielded
Declaration
public bool ModifiableOnly
Field Value
| Type | Description |
|---|---|
| System.Boolean |
MultipleInput
Declaration
public bool MultipleInput
Field Value
| Type | Description |
|---|---|
| System.Boolean |
Properties
| Improve this Doc View SourceDecomposed
true: only decomposed curves are yielded, false: also path objects, that consist of several subcurves are yielded
Declaration
public bool Decomposed { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
FailCursor
Sets the cursor that will be displayed when no curve is hit
Declaration
public string FailCursor { set; }
Property Value
| Type | Description |
|---|---|
| System.String |
ForwardMouseInputTo
Mouse input should be forwarded to another input object and only processed by this input, when the other input object is fixed.
Declaration
public object ForwardMouseInputTo { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Object |
HitCursor
Sets the cursor that will be displayed when a curve is hit
Declaration
public string HitCursor { set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
| Improve this Doc View SourceAdjustHighlight()
Declaration
protected override void AdjustHighlight()
Overrides
| Improve this Doc View SourceGetGeoObjects()
Gets the currently selected curves.
Declaration
public IGeoObject[] GetGeoObjects()
Returns
| Type | Description |
|---|---|
| IGeoObject[] |
SetGeoObject(IGeoObject[], IGeoObject)
Forces the given geoObjects to be displayed
Declaration
public void SetGeoObject(IGeoObject[] GeoObjects, IGeoObject selectedGeoObject)
Parameters
| Type | Name | Description |
|---|---|---|
| IGeoObject[] | GeoObjects | array of GeoObjects |
| IGeoObject | selectedGeoObject | currently selected GeoObject |
SetSelectedGeoObject(IGeoObject)
Set the selected GeoObject
Declaration
public void SetSelectedGeoObject(IGeoObject geoObject)
Parameters
| Type | Name | Description |
|---|---|---|
| IGeoObject | geoObject |
Events
| Improve this Doc View SourceGeoObjectSelectionChangedEvent
Provide a method here to react on the user selecting a different curve
Declaration
public event ConstructAction.GeoObjectInput.GeoObjectSelectionChangedDelegate GeoObjectSelectionChangedEvent
Event Type
| Type | Description |
|---|---|
| ConstructAction.GeoObjectInput.GeoObjectSelectionChangedDelegate |
MouseOverGeoObjectsEvent
Provide a method here to react on the user moving the cursor over GeoObjects.
Declaration
public event ConstructAction.GeoObjectInput.MouseOverGeoObjectsDelegate MouseOverGeoObjectsEvent
Event Type
| Type | Description |
|---|---|
| ConstructAction.GeoObjectInput.MouseOverGeoObjectsDelegate |