KernelCAD Documentation

DInsight Home
Skip Navigation Links.
Start page
Quick Start
Installation
Overview of the software
What is new
Collapse KernelCAD ModelsKernelCAD Models
Collapse KernelCAD ComponentsKernelCAD Components
KernelCAD Control
KernelCAD .NET Control
Methods and Properties
Menu
Model Explorer
Birds Eye View
Programming
Direct User Access
Direct Operations
Interface Queries
Printing Support
Data Types
Modes of KernelCAD Control
DIObjectGenerator class
Properties
FlatObjectArray Poperty
Context
64 bit development
Dual Mode
Initialisation Context
Overlay Editor
Memory Management
Input validation
Collapse Advanced functionalityAdvanced functionality
Collapse InterfacesInterfaces
Alphabetical list
I3DGrid
I3DBugger
I3Dpt
IAxiBase
IAxis
IBoolSection
IBoolSectionEx
IBoundary
IColor
IConstraint
IData
IDiffSurface_KC
IDIFont
IDraw
IDrawUtil
IDraw2
IElem
IElement
IKCLine
ILightSource
ILocation
ILocationEx
IMaterial
IMetrics
IMetrics2
IModel
IModel2
IModelEx
IPatch
IKCPathCollisionDetector
IProfiles
IPropertyArray
IPropertyArray2
IStdShape
IStrip
ISurface
IText
ITexture
ITransform
IUnknown
Collapse Open Cascade TechnologyOpen Cascade Technology
Collapse DataData
Collapse MovementMovement
Collapse FramesFrames
Collapse Oriented ObjectsOriented Objects
Collapse SectionsSections
Collapse GeneralGeneral
Collapse Topological InterfacesTopological Interfaces
Collapse Viewing InterfacesViewing Interfaces
Collapse Lines And CurvesLines And Curves
Collapse Symmetry InterfacesSymmetry Interfaces
Collapse Clipping plane interfacesClipping plane interfaces
Collapse AlgorithmsAlgorithms
Collapse 2D Geometry2D Geometry
Collapse Programming Samples and TutorialsProgramming Samples and Tutorials
Collapse OverviewOverview
Collapse DeploymentDeployment
Collapse .NET Samples.NET Samples
Collapse C++ SamplesC++ Samples
Collapse Visual Basic SamplesVisual Basic Samples
Collapse Delphi SamplesDelphi Samples
Collapse 3D Debugger3D Debugger
Collapse DeploymentDeployment
Licensing
Model Viewer
Open C++ Source
Technical Support
Skip Navigation LinksHome Page > KernelCAD Components > Interfaces > Movement > ISpinEffect_KC
ISpinEffect_KC Interface

ISpinEffect_KC Interface

ISpinEffect_KC interface provides access to spin effect, which implements animation of a fast rotation of an object

Spin effect can be queried form ISection inmplemented by the object to be animated

To implement the effect use Modelign Studio to create a Surface Of Revolution, which represents spinning state of the object and make it an invisible child of the orginal object. Obtain ISection of the object to be animated. Query ISpinEffect_KC from the ISection. Call ISpinEffect_KC.Setup() with objectSpan queried from the spinning state object. Call ISpinEffect_KC.Begin() / End to start / stop the animation.

The animated obejct has to be a top level one in the model. unless itis desired its parent to be span too

See also: eMotion Sample


HRESULT Setup(ISection* objectSpan, IView* iView)

Parameters

objectSpan - [in] Spinning representation of the object

Remarks:

Associates a spinning representation of the object to be span. The representation obejct has to have considing local frame and its contour has to coinside with spinning contour of the initial object for the animation to be realistic.


HRESULT Begin(int durationMilliSeconds)/strong>

Parameters

durationMilliSeconds - [in] Duration of animation of spining start

Remarks:

The method will show the animated object starting and accelerating spinning. In the end of the period the animated object will be hidden and it spinning representation will be shown instead


HRESULT End(int durationMilliSeconds)

Parameters

durationMilliSeconds/strong> - [in] Duration of animation of spining end

Remarks:

The method will show actions of the Begin() method in reverse order: The spinning representation will hidden and the initial object will be shown spinning instead. The spinning will slow down and will stop in the end of the period