Class AnimatedView
A view in which mechanical dependencies of objects can be defined and animated.
Inheritance
System.Object
AnimatedView
Implements
System.Runtime.Serialization.ISerializable
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 AnimatedView : IShowPropertyImpl, IShowProperty, IPropertyEntry, IView, ICommandHandler, ISerializable
Constructors
|
Improve this Doc
View Source
AnimatedView()
Declaration
|
Improve this Doc
View Source
AnimatedView(Project, Model, IFrame)
Creates a new AnimatedView object. In oder to display this view on the screen you need to add this view to a
IFrame and set it as the ActiveView.
Declaration
public AnimatedView(Project project, Model model, IFrame frame)
Parameters
| Type |
Name |
Description |
| Project |
project |
The project that contains the lists of all schedules (if needed)
|
| Model |
model |
The model that is displayed and contains the list of all drives
|
| IFrame |
frame |
The frame which is the context of this view
|
|
Improve this Doc
View Source
AnimatedView(SerializationInfo, StreamingContext)
Declaration
protected AnimatedView(SerializationInfo info, StreamingContext context)
Parameters
| Type |
Name |
Description |
| System.Runtime.Serialization.SerializationInfo |
info |
|
| System.Runtime.Serialization.StreamingContext |
context |
|
Properties
|
Improve this Doc
View Source
BackgroundColor
Backgroundcolor to override the default background color as defined in the global settings
Declaration
public Color BackgroundColor { get; set; }
Property Value
| Type |
Description |
| System.Drawing.Color |
|
|
Improve this Doc
View Source
Declaration
public override MenuWithHandler[] ContextMenu { get; }
Property Value
Overrides
|
Improve this Doc
View Source
DraggingObjects
Declaration
public GeoObjectList DraggingObjects { get; }
Property Value
|
Improve this Doc
View Source
DriveList
List of all drives defined in this context.
Declaration
public DriveList DriveList { get; }
Property Value
|
Improve this Doc
View Source
EntryType
Declaration
public override ShowPropertyEntryType EntryType { get; }
Property Value
Overrides
|
Improve this Doc
View Source
FixPoint
Sets or gets the fixpoint for interactive view direction changes
Declaration
public GeoPoint FixPoint { get; set; }
Property Value
|
Improve this Doc
View Source
HighlightColor
Color of the highlighted objects
Declaration
public Color HighlightColor { get; set; }
Property Value
| Type |
Description |
| System.Drawing.Color |
|
|
Improve this Doc
View Source
HighlightWidth
Declaration
public int HighlightWidth { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
IsPaused
True while the anumation is paused
Declaration
public bool IsPaused { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IsRunning
True while the animation/simulation is running.
Declaration
public bool IsRunning { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
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
Name
Name of this AnimatedView as shown in the controlcenter
Declaration
public string Name { get; set; }
Property Value
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
SelectionEnabled
Declaration
public bool SelectionEnabled { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
Speed
Set or get the current speed factor (1.0 is normal)
Declaration
public double Speed { 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
VisibleLayers
Declaration
public CheckedLayerList VisibleLayers { get; }
Property Value
Methods
|
Improve this Doc
View Source
Added(IPropertyPage)
Declaration
public override void Added(IPropertyPage propertyTreeView)
Parameters
Overrides
|
Improve this Doc
View Source
AddHighlightedObject(IGeoObject)
Adds the provided object to the highlighted objects of this view. This is typically called during
simulation/animation to draw the user attention to this object
Declaration
public void AddHighlightedObject(IGeoObject toHighlight)
Parameters
| Type |
Name |
Description |
| IGeoObject |
toHighlight |
highlighted object to add
|
|
Improve this Doc
View Source
ClearHighlightedObjects()
Declaration
public void ClearHighlightedObjects()
|
Improve this Doc
View Source
Collision(Solid, Solid, Double, out GeoPoint)
Tests the collision of two solids. The current position of the drives is applied to both objects
(typically one of the objects is static). If there is a collision, true is returned
and the collisionPoint is filled with an arbitrary point where collision
takes place.
Declaration
public bool Collision(Solid firstObject, Solid secondObject, double precision, out GeoPoint collisionPoint)
Parameters
| Type |
Name |
Description |
| Solid |
firstObject |
First Solid of the test
|
| Solid |
secondObject |
Sirst Solid of the test
|
| System.Double |
precision |
|
| GeoPoint |
collisionPoint |
Collision point
|
Returns
| Type |
Description |
| System.Boolean |
True if there is a collision, false otherwise
|
|
Improve this Doc
View Source
DoDragDrop(GeoObjectList, DragDropEffects)
Declaration
public DragDropEffects DoDragDrop(GeoObjectList dragList, DragDropEffects all)
Parameters
Returns
|
Improve this Doc
View Source
GetSelectedObjects()
Declaration
public GeoObjectList GetSelectedObjects()
Returns
|
Improve this Doc
View Source
PauseAnimation()
Pauses the animation. All drive positions remain unchanged, the time stops.
Declaration
public void PauseAnimation()
|
Improve this Doc
View Source
ReassembleDisplayList()
Declaration
public void ReassembleDisplayList()
|
Improve this Doc
View Source
RemoveHighlightedObject(IGeoObject)
Remove the highlighted object that was previously added
Declaration
public void RemoveHighlightedObject(IGeoObject toRemove)
Parameters
| Type |
Name |
Description |
| IGeoObject |
toRemove |
highlighted object to remove
|
|
Improve this Doc
View Source
ResumeAnimation()
Resume a previously paused animation
Declaration
public void ResumeAnimation()
|
Improve this Doc
View Source
SetSelectedObject(IGeoObject)
Declaration
public void SetSelectedObject(IGeoObject go)
Parameters
|
Improve this Doc
View Source
SetSelectedObjects(GeoObjectList)
Declaration
public void SetSelectedObjects(GeoObjectList l)
Parameters
|
Improve this Doc
View Source
StartAnimation(ISchedule, Double, Double, Double)
Starts the realtime animation. speed provides a time factor,
1.0 is real time. The method returns immediately. There may bee zooming and scrolling
during the animation. The animation may be stopped at any time and stops automatically
when endTime is reached. Each discrete frame that is displayed fires the
NextStepEvent to enable the user of this class to provide some
additional display changes or other tasks.
Declaration
public void StartAnimation(ISchedule schedule, double startTime, double endTime, double speed)
Parameters
| Type |
Name |
Description |
| ISchedule |
schedule |
|
| System.Double |
startTime |
Start time for the animation
|
| System.Double |
endTime |
Stop time for the animation
|
| System.Double |
speed |
Speed factor
|
|
Improve this Doc
View Source
StopAnimation()
Stop the animation. All objects return to the starting position
Declaration
public void StopAnimation()
|
Improve this Doc
View Source
ZoomToModelExtent(Double)
Zooms to the extend of the model. The projection direction is not changed.
Declaration
public void ZoomToModelExtent(double factor)
Parameters
| Type |
Name |
Description |
| System.Double |
factor |
|
|
Improve this Doc
View Source
ZoomToRect(BoundingRect)
Declaration
public void ZoomToRect(BoundingRect visibleRect)
Parameters
Events
|
Improve this Doc
View Source
GetTimeEvent
Event beeing raised on each frame update of the animation
Declaration
public event AnimatedView.GetTimeDelegate GetTimeEvent
Event Type
|
Improve this Doc
View Source
MouseDoubleClick
Provide an event handler for the mouse double click message here if you want to manipulate the mouse input to this ModelView
Declaration
public event MouseFilterDelegate MouseDoubleClick
Event Type
|
Improve this Doc
View Source
MouseDown
Provide an event handler for the mouse down message here if you want to manipulate the mouse input to this ModelView
Declaration
public event MouseFilterDelegate MouseDown
Event Type
|
Improve this Doc
View Source
MouseMove
Provide an event handler for the mouse move message here if you want to manipulate the mouse input to this ModelView
Declaration
public event MouseFilterDelegate MouseMove
Event Type
|
Improve this Doc
View Source
MouseUp
Provide an event handler for the mouse up message here if you want to manipulate the mouse input to this ModelView
Declaration
public event MouseFilterDelegate MouseUp
Event Type
|
Improve this Doc
View Source
MouseWheel
Provide an event handler for the mouse wheel message here if you want to manipulate the mouse input to this ModelView
Declaration
public event MouseFilterDelegate MouseWheel
Event Type
|
Improve this Doc
View Source
NextStepEvent
Event beeing raised on each frame update of the animation
Declaration
public event AnimatedView.NextStepDelegate NextStepEvent
Event Type
|
Improve this Doc
View Source
PaintActiveEvent
Declaration
public event PaintView PaintActiveEvent
Event Type
|
Improve this Doc
View Source
PaintBackgroundEvent
Declaration
public event PaintView PaintBackgroundEvent
Event Type
|
Improve this Doc
View Source
PaintDrawingEvent
Declaration
public event PaintView PaintDrawingEvent
Event Type
|
Improve this Doc
View Source
PaintSelectEvent
Declaration
public event PaintView PaintSelectEvent
Event Type
|
Improve this Doc
View Source
Declaration
public event ScrollPositionChanged ScrollPositionChangedEvent
Event Type
Explicit Interface Implementations
|
Improve this Doc
View Source
IView.AdjustPoint(GeoPoint, Point, out GeoPoint, GeoObjectList)
Declaration
SnapPointFinder.DidSnapModes IView.AdjustPoint(GeoPoint BasePoint, Point MousePoint, out GeoPoint WorldPoint, GeoObjectList ToIgnore)
Parameters
Returns
|
Improve this Doc
View Source
IView.AdjustPoint(Point, out GeoPoint, GeoObjectList)
Declaration
SnapPointFinder.DidSnapModes IView.AdjustPoint(Point MousePoint, out GeoPoint WorldPoint, GeoObjectList ToIgnore)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
bool IView.AllowContextMenu { get; }
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IView.AllowDrag
Declaration
bool IView.AllowDrag { get; }
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IView.AllowDrop
Declaration
bool IView.AllowDrop { get; }
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IView.Canvas
Declaration
ICanvas IView.Canvas { get; }
Returns
|
Improve this Doc
View Source
IView.Connect(ICanvas)
Declaration
void IView.Connect(ICanvas canvas)
Parameters
| Type |
Name |
Description |
| ICanvas |
canvas |
|
|
Improve this Doc
View Source
IView.DisplayRectangle
Declaration
Rectangle IView.DisplayRectangle { get; }
Returns
| Type |
Description |
| System.Drawing.Rectangle |
|
|
Improve this Doc
View Source
IView.DoDragDrop(GeoObjectList, DragDropEffects)
Declaration
DragDropEffects IView.DoDragDrop(GeoObjectList dragList, DragDropEffects all)
Parameters
Returns
|
Improve this Doc
View Source
IView.GetDataPresent(Object)
Declaration
GeoObjectList IView.GetDataPresent(object data)
Parameters
| Type |
Name |
Description |
| System.Object |
data |
|
Returns
|
Improve this Doc
View Source
IView.GetShowProperties(IFrame)
Declaration
IShowProperty IView.GetShowProperties(IFrame Frame)
Parameters
| Type |
Name |
Description |
| IFrame |
Frame |
|
Returns
|
Improve this Doc
View Source
Declaration
void IView.HScroll(double Position)
Parameters
| Type |
Name |
Description |
| System.Double |
Position |
|
|
Improve this Doc
View Source
IView.Invalidate(PaintBuffer.DrawingAspect, Rectangle)
Declaration
void IView.Invalidate(PaintBuffer.DrawingAspect aspect, Rectangle ToInvalidate)
Parameters
|
Improve this Doc
View Source
IView.InvalidateAll()
Declaration
void IView.InvalidateAll()
|
Improve this Doc
View Source
IView.LastSnapMode
Declaration
SnapPointFinder.DidSnapModes IView.LastSnapMode { get; }
Returns
|
Improve this Doc
View Source
IView.LastSnapObject
Declaration
IGeoObject IView.LastSnapObject { get; }
Returns
|
Improve this Doc
View Source
IView.Model
Declaration
Model IView.Model { get; }
Returns
|
Improve this Doc
View Source
IView.Name
Declaration
string IView.Name { get; }
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
IView.OnDragDrop(DragEventArgs)
Declaration
void IView.OnDragDrop(DragEventArgs drgevent)
Parameters
|
Improve this Doc
View Source
IView.OnDragEnter(DragEventArgs)
Declaration
void IView.OnDragEnter(DragEventArgs drgevent)
Parameters
|
Improve this Doc
View Source
IView.OnDragLeave(EventArgs)
Declaration
void IView.OnDragLeave(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
|
|
Improve this Doc
View Source
IView.OnDragOver(DragEventArgs)
Declaration
void IView.OnDragOver(DragEventArgs drgevent)
Parameters
|
Improve this Doc
View Source
IView.OnMouseDoubleClick(MouseEventArgs)
Declaration
void IView.OnMouseDoubleClick(MouseEventArgs eIn)
Parameters
|
Improve this Doc
View Source
IView.OnMouseDown(MouseEventArgs)
Declaration
void IView.OnMouseDown(MouseEventArgs eIn)
Parameters
|
Improve this Doc
View Source
IView.OnMouseEnter(EventArgs)
Declaration
void IView.OnMouseEnter(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
|
|
Improve this Doc
View Source
IView.OnMouseHover(EventArgs)
Declaration
void IView.OnMouseHover(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
|
|
Improve this Doc
View Source
IView.OnMouseLeave(EventArgs)
Declaration
void IView.OnMouseLeave(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
|
|
Improve this Doc
View Source
IView.OnMouseMove(MouseEventArgs)
Declaration
void IView.OnMouseMove(MouseEventArgs eIn)
Parameters
|
Improve this Doc
View Source
IView.OnMouseUp(MouseEventArgs)
Declaration
void IView.OnMouseUp(MouseEventArgs eIn)
Parameters
|
Improve this Doc
View Source
IView.OnMouseWheel(MouseEventArgs)
Declaration
void IView.OnMouseWheel(MouseEventArgs eIn)
Parameters
|
Improve this Doc
View Source
IView.OnPaint(PaintEventArgs)
Declaration
void IView.OnPaint(PaintEventArgs e)
Parameters
|
Improve this Doc
View Source
IView.OnSizeChanged(Rectangle)
Declaration
void IView.OnSizeChanged(Rectangle oldRectangle)
Parameters
| Type |
Name |
Description |
| System.Drawing.Rectangle |
oldRectangle |
|
|
Improve this Doc
View Source
IView.PaintType
Declaration
string IView.PaintType { get; }
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
IView.PickObjects(Point, PickMode)
Declaration
GeoObjectList IView.PickObjects(Point MousePoint, PickMode pickMode)
Parameters
| Type |
Name |
Description |
| System.Drawing.Point |
MousePoint |
|
| PickMode |
pickMode |
|
Returns
|
Improve this Doc
View Source
IView.ProjectedModel
Declaration
ProjectedModel IView.ProjectedModel { get; }
Returns
|
Improve this Doc
View Source
IView.Projection
Declaration
Projection IView.Projection { get; set; }
Returns
|
Improve this Doc
View Source
IView.RemovePaintHandler(PaintBuffer.DrawingAspect, PaintView)
Declaration
void IView.RemovePaintHandler(PaintBuffer.DrawingAspect aspect, PaintView PaintHandler)
Parameters
|
Improve this Doc
View Source
IView.SetCursor(String)
Declaration
void IView.SetCursor(string cursor)
Parameters
| Type |
Name |
Description |
| System.String |
cursor |
|
|
Improve this Doc
View Source
IView.SetPaintHandler(PaintBuffer.DrawingAspect, PaintView)
Declaration
void IView.SetPaintHandler(PaintBuffer.DrawingAspect aspect, PaintView PaintHandler)
Parameters
|
Improve this Doc
View Source
Declaration
void IView.VScroll(double Position)
Parameters
| Type |
Name |
Description |
| System.Double |
Position |
|
|
Improve this Doc
View Source
IView.ZoomDelta(Double)
Declaration
void IView.ZoomDelta(double f)
Parameters
| Type |
Name |
Description |
| System.Double |
f |
|
|
Improve this Doc
View Source
IView.ZoomToRect(BoundingRect)
Declaration
void IView.ZoomToRect(BoundingRect World2D)
Parameters
|
Improve this Doc
View Source
IView.ZoomTotal(Double)
Declaration
void IView.ZoomTotal(double f)
Parameters
| Type |
Name |
Description |
| System.Double |
f |
|
|
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
ISerializable.GetObjectData(SerializationInfo, StreamingContext)
Implements System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
Declaration
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
| Type |
Name |
Description |
| System.Runtime.Serialization.SerializationInfo |
info |
The System.Runtime.Serialization.SerializationInfo to populate with data.
|
| System.Runtime.Serialization.StreamingContext |
context |
The destination (System.Runtime.Serialization.StreamingContext) for this serialization.
|
Implements
System.Runtime.Serialization.ISerializable