DGKC Control Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
What is new
Licensing
Expand ModelsModels
Expand DG Kernel ControlDG Kernel Control
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Expand General GeometryGeneral Geometry
Expand ModelModel
Expand ViewView
Collapse General ComputingGeneral Computing
Expand Samples and TutorialsSamples and Tutorials
Expand GraphicsGraphics
Expand Math ObjectsMath Objects
Expand DeprecatedDeprecated
Redistribution
Model Viewer
Support
Skip Navigation LinksHome Page > API Reference > General Computing > IUnk Go to ActiveX docs Search Documentation


IUnk Interface


IUnk is the base class of all DGKC interfaces.

IUnk Query(string typeName)

The method gives access to other interfaces of an object. See samples and your development system documentation for more details

Example:

    void f(IAppearance_DG appearance)
    {
        IMaterial_DG material = appearance.Query("IMaterial_DG") as IMaterial_DG;
        //Or
        IMaterial_DG material2 = appearance.Query<IMaterial_DG>();
        //Or
        IMaterial_DG material3 = appearance.As<IMaterial_DG>();
    }