DG Kernel (ActiveX) Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
What is new
Upgrading Native Apps
Licensing
Collapse ModelsModels
Collapse DG Kernel ControlsDG Kernel Controls
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Collapse ModelModel
Collapse ViewView
Collapse General ComputingGeneral Computing
Collapse ViewsViews
Collapse Samples and TutorialsSamples and Tutorials
Collapse GraphicsGraphics
Collapse Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation Links Go to DGKC docs Search Documentation


IKCContext2 Interface

GetColorParam
SetColorParam

Manages extended types of parameters of a context. IKCContext2 can be queried from the relevant IKCContext.

See also IKCContext, Interface List


HRESULT GetColorParam(int id, float* red, float* green, float* blue, float* alpha)

Parameters

id - [in] 0-based index in array of color parameters of the context

red, green, blue, alpha - [out] The returned color

Remarks:

Returns id-th color parameter in the context. The method fails if id is greater or equal to the count retuned by IKCContext.GetParamCount(EKCType.eKCTypeColor, count). Where IKCContext is the interface this IKCContext2 was queried from.


HRESULT SetColorParam(int id, float red, float green, float blue, float alpha)

Parameters

id - [in] 0-based index in array of color parameters of the context

red, green, blue, alpha - [in] New value of color

Remarks:

Modifies id-th color parameter in the context. The method fails if id is greater or equal to the count retuned by IKCContext.GetParamCount(EKCType.eKCTypeColor, count). Where IKCContext is the interface this IKCContext2 was queried from.