Class CurveDrive
Describes a movement along a curve (which may be any path or simple curve like a line)
Inheritance
System.Object
CurveDrive
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.Serialization.IDeserializationCallback
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: CADability.dll
Syntax
[Serializable]
public class CurveDrive : IShowPropertyImpl, IShowProperty, IPropertyEntry, IDrive, ISerializable, ICommandHandler, IDeserializationCallback, IJsonSerialize, IJsonSerializeDone
Constructors
|
Improve this Doc
View Source
CurveDrive(ICurve, Double)
Defines a CurveDrive providing the curve for the movement and the object beeing moved.
The currentPosition describes the position of the object as it is defined in the model
relative to the startpoint of the curve. It must be between 0.0 and the
Length of the curve.
Declaration
public CurveDrive(ICurve along, double currentPosition)
Parameters
| Type |
Name |
Description |
| ICurve |
along |
Curve for the movement
|
| System.Double |
currentPosition |
Current position of the object
|
|
Improve this Doc
View Source
CurveDrive(SerializationInfo, StreamingContext)
Declaration
protected CurveDrive(SerializationInfo info, StreamingContext context)
Parameters
| Type |
Name |
Description |
| System.Runtime.Serialization.SerializationInfo |
info |
|
| System.Runtime.Serialization.StreamingContext |
context |
|
Properties
|
Improve this Doc
View Source
Declaration
public override MenuWithHandler[] ContextMenu { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Curve
Declaration
public ICurve Curve { get; }
Property Value
|
Improve this Doc
View Source
EntryType
Declaration
public override ShowPropertyEntryType EntryType { get; }
Property Value
Overrides
|
Improve this Doc
View Source
LabelText
Declaration
public override string LabelText { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Overrides
|
Improve this Doc
View Source
LabelType
Declaration
public override ShowPropertyLabelFlags LabelType { get; }
Property Value
Overrides
|
Improve this Doc
View Source
MoveAlong
Declaration
public ICurve MoveAlong { get; set; }
Property Value
|
Improve this Doc
View Source
NullPosition
Declaration
public double NullPosition { get; set; }
Property Value
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
SubEntries
Overrides SubEntries,
returns the subentries in this property view.
Declaration
public override IShowProperty[] SubEntries { get; }
Property Value
Overrides
|
Improve this Doc
View Source
SubEntriesCount
Overrides SubEntriesCount,
returns the number of subentries in this property view.
Declaration
public override int SubEntriesCount { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
Overrides
|
Improve this Doc
View Source
Tangential
Gets or sets the tangential movement property. If true, the orientation of the driven
objects will follow the tangent of the curve, if false, the orientation of the driven
objects will stay fixed in space.
Declaration
public bool Tangential { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Methods
|
Improve this Doc
View Source
LabelChanged(String)
Declaration
public override void LabelChanged(string NewText)
Parameters
| Type |
Name |
Description |
| System.String |
NewText |
|
Overrides
|
Improve this Doc
View Source
Refresh()
Declaration
public override void Refresh()
Overrides
|
Improve this Doc
View Source
RuledSurface(CurveDrive, CurveDrive)
Returns a Shell composed of connected faces that describes the ruled surface
which is described by a line synchronously connecting the two CurveDrives.
Declaration
public static Shell RuledSurface(CurveDrive wire1, CurveDrive wire2)
Parameters
Returns
| Type |
Description |
| Shell |
Shell describing the ruled surface
|
Explicit Interface Implementations
|
Improve this Doc
View Source
IDrive.DependsOn
Declaration
IDrive IDrive.DependsOn { get; set; }
Returns
|
Improve this Doc
View Source
IDrive.MovedObjects
Declaration
List<IGeoObject> IDrive.MovedObjects { get; }
Returns
| Type |
Description |
| System.Collections.Generic.List<IGeoObject> |
|
|
Improve this Doc
View Source
IDrive.Movement
Declaration
ModOp IDrive.Movement { get; }
Returns
|
Improve this Doc
View Source
IDrive.Name
Declaration
string IDrive.Name { get; set; }
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
IDrive.Position
Declaration
double IDrive.Position { get; set; }
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
IJsonSerialize.GetObjectData(IJsonWriteData)
Declaration
void IJsonSerialize.GetObjectData(IJsonWriteData data)
Parameters
|
Improve this Doc
View Source
IJsonSerialize.SetObjectData(IJsonReadData)
Declaration
void IJsonSerialize.SetObjectData(IJsonReadData data)
Parameters
|
Improve this Doc
View Source
IJsonSerializeDone.SerializationDone()
Declaration
void IJsonSerializeDone.SerializationDone()
|
Improve this Doc
View Source
ICommandHandler.OnCommand(String)
Declaration
bool ICommandHandler.OnCommand(string MenuId)
Parameters
| Type |
Name |
Description |
| System.String |
MenuId |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
ICommandHandler.OnSelected(MenuWithHandler, Boolean)
Declaration
void ICommandHandler.OnSelected(MenuWithHandler selectedMenuItem, bool selected)
Parameters
| Type |
Name |
Description |
| MenuWithHandler |
selectedMenuItem |
|
| System.Boolean |
selected |
|
|
Improve this Doc
View Source
ICommandHandler.OnUpdateCommand(String, CommandState)
Declaration
bool ICommandHandler.OnUpdateCommand(string MenuId, CommandState CommandState)
Parameters
| Type |
Name |
Description |
| System.String |
MenuId |
|
| CommandState |
CommandState |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IDeserializationCallback.OnDeserialization(Object)
Declaration
void IDeserializationCallback.OnDeserialization(object sender)
Parameters
| Type |
Name |
Description |
| System.Object |
sender |
|
|
Improve this Doc
View Source
ISerializable.GetObjectData(SerializationInfo, StreamingContext)
Declaration
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
| Type |
Name |
Description |
| System.Runtime.Serialization.SerializationInfo |
info |
|
| System.Runtime.Serialization.StreamingContext |
context |
|
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.Serialization.IDeserializationCallback