Class ConstructAction.DefaultGeoVector
A DefaultGeoVector object is usually used in conjunction with a ConstructAction.GeoVectorInput object (see DefaultGeoVector). It specifies a default value for the input field as long as the user didn't specify that input via keybord or mouse. When the point input is locked, the value is saved in the corresponding DefaultGeoVector object. DefaultGeoVector objects are usually static in a ConstructAction to preserve that value from one instance of the action to the next instance.
Inheritance
Inherited Members
Namespace: CADability.Actions
Assembly: CADability.dll
Syntax
public class DefaultGeoVector
Constructors
| Improve this Doc View SourceDefaultGeoVector()
Creates an uninitialized DefaultGeoVector
Declaration
public DefaultGeoVector()
DefaultGeoVector(ConstructAction.DefaultGeoVector.StartDirection, ConstructAction.DefaultGeoVector.StartLength)
Creates an uninitialized DefaultGeoVector with a description how to initialize.
Declaration
public DefaultGeoVector(ConstructAction.DefaultGeoVector.StartDirection startDirection, ConstructAction.DefaultGeoVector.StartLength startLength)
Parameters
| Type | Name | Description |
|---|---|---|
| ConstructAction.DefaultGeoVector.StartDirection | startDirection | initial direction |
| ConstructAction.DefaultGeoVector.StartLength | startLength | initial length |
Fields
| Improve this Doc View SourceLocked
Locked if true. A locked input is considered fixed (see Fixed)
Declaration
public bool Locked
Field Value
| Type | Description |
|---|---|
| System.Boolean |
Properties
| Improve this Doc View SourceVector
Returns or sets the current value
Declaration
public GeoVector Vector { get; set; }
Property Value
| Type | Description |
|---|---|
| GeoVector |
Operators
| Improve this Doc View SourceImplicit(ConstructAction.DefaultGeoVector to GeoVector)
converts to a GeoVector
Declaration
public static implicit operator GeoVector(ConstructAction.DefaultGeoVector dgv)
Parameters
| Type | Name | Description |
|---|---|---|
| ConstructAction.DefaultGeoVector | dgv | convert this |
Returns
| Type | Description |
|---|---|
| GeoVector |