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

Class d3drmWrap

Applications use the methods of the d3drmWrap class to work with wrap objects.

public class d3drmWrap implements Id3drmWrap
{
  public void InternalSetObject(IUnknown lpdd);
  public IUnknown InternalGetObject();
  public void AddDestroyCallback(Id3drmCallback fn, IUnknown Arg);
  public void DeleteDestroyCallback(Id3drmCallback fn, IUnknown args);
  public d3drmWrap Clone();
  public void SetAppData(int data);
  public int GetAppData();
  public void SetName(String name);
  public String GetName();
  public String GetClassName();
  public void Init(int typ, d3drmFrame ref, float ox, float oy, float oz, float dx, float dy, float dz, float ux, float uy, float uz, float ou, float ov, float su, float sv);
  public void Apply(d3drmObject o);
  public void ApplyRelative(d3drmFrame f, d3drmObject o);
}

The methods can be organized into the following groups:
Initialization Init
Wrap Apply
ApplyRelative

In addition, the d3drmWrap class inherits the following methods from the d3drmObject class:
AddDestroyCallback
Clone
DeleteDestroyCallback
GetAppData
GetClassName
GetName
SetAppData
SetName

The d3drmWrap object is obtained by calling the CreateWrap method.

Apply

public void Apply(d3drmObject o);

Applies a d3drmWrap object to its destination object. The destination object is typically a face or a mesh.

Return Value:

No return value.

ParameterDescription
o The destination object.

See Also: CreateWrap


ApplyRelative

public void ApplyRelative(d3drmFrame f, d3drmObject o);

Applies the wrap to the vertices of the object, first transforming each vertex by the frame's world transformation and the inverse world transformation of the wrap's reference frame.

Return Value:

No return value.

ParameterDescription
f The d3drmFrame object containing the object to wrap.
o The d3drmWrap object to apply.

See Also: CreateWrap


Init

public void Init(int typ, d3drmFrame ref, float ox, float oy, float oz, float dx, float dy, float dz, float ux, float uy, float uz, float ou, float ov, float su, float sv);

Initializes a d3drmWrap object.

Return Value:

No return value.

ParameterDescription
typ One value of wrap type.
ref A d3drmFrame object representing the reference frame for this d3drmWrap object.
ox, oy, and oz Origin of the wrap.
dx, dy, and dz The z-axis of the wrap.
ux, uy, and uz The y-axis of the wrap.
ou and ov Origin in the texture.
su and sv Scale factor in the texture.

See Also: CreateWrap



Top© 1996 Microsoft Corporation. All rights reserved.