Share via


ITransformProperty::AddPoint

The AddPoint method adds a data point to the property.

Syntax

HRESULT AddPoint(
  double  dblTime,
  PROPVARIANT   varpropValue,
  ITransformPropertyPoint**  ppCreatedPoint
);

Parameters

dblTime

[in]  The time that is associated with this point.

varpropValue

[in]  The value that is associated with this point.

ppCreatedPoint

[out]  Address of a pointer to a copy of the created and added point. The caller must release this interface when it is no longer needed.

Return Values

The method returns an HRESULT of S_OK for success, or a standard COM error code for failure.

Remarks

If a point at the time specified already exists, this method will add a duplicate point with the same time and a new value. Therefore, you should always check first to see if the time point exists, and if so, use SetValueAtTime instead.

Requirements

Client: Windows Vista

Header: Include gputransformplugin.h and GPUPipelineTime.h.

Library: Use GPUPipelineVC7.lib (for Visual Studio .NET) or GPUPipelineVC8.lib (for Visual Studio 2005).

See Also