Package com.ms.com.directX Previous
Previous
Microsoft Packages
Microsoft Packages
Index
Index
Next
Next

Class d3drmPickedArray

Applications use the methods of the d3drmPickedArray class to organize pick objects.

public class d3drmPickedArray implements Id3drmPickedArray
{
  public void InternalSetObject(IUnknown lpdd);
  public IUnknown InternalGetObject();
  public int GetSize();
  public d3drmVisual GetPickVisual(int index, d3drmPickDesc desc);
  public d3drmFrameArray GetPickFrame(int index, d3drmPickDesc desc);
}

There are the following methods:
GetSize
GetPickVisual
GetPickFrame

The d3drmPickedArray object is obtained by calling the Pick method.

GetSize

public int GetSize();

Returns the number of d3drmVisual and d3drmFrameArray objects associated with this object.

Return Value:

Returns the number of objects.


GetPickVisual

public d3drmVisual GetPickVisual(int index, d3drmPickDesc desc);

Returns one of the d3drmVisual objects associated with this object.

Return Value:

Returns the d3drmVisual object if successful; null otherwise.

ParameterDescription
index Identifies the object to return. Must be a value in the range 0 to one less than the number returned by the GetSize method.
desc The d3drmPickDesc object that receives the pick description.


GetPickFrame

public d3drmFrameArray GetPickFrame(int index, d3drmPickDesc desc);

Returns one of the d3drmFrameArray objects associated with this object.

Return Value:

Returns the d3drmFrameArray object if successful; null otherwise.

ParameterDescription
index Identifies the object to return. Must be a value in the range 0 to one less than the number returned by the GetSize method.
desc The d3drmPickDesc object that receives the pick description.



Top© 1996 Microsoft Corporation. All rights reserved.