maxon.frameworks.mesh_misc.CustomDataTagDisplayInterface

Description

maxon.frameworks.mesh_misc.CustomDataTagDisplayInterface can be optionally implemented for each maxon.frameworks.mesh_misc.CustomDataTagClassInterface implementation and defines if and how a c4d.CustomDataTag should be displayed in the viewport.

Inheritance diagram

Inheritance

Parent Class:

Child Class:

Methods Signature

Draw(tag, op, bd, bh)

Draws the visual representation of the tag data in 3D views.

FreeDisplayControl(tag)

Frees resources allocated by maxon.frameworks.mesh_misc.CustomDataTagDisplayInterface.InitDisplayControl().

Init(tag)

Initializes the class after creation.

Reset()

Resets any local data before destroying the class instance.

Methods Definition

CustomDataTagDisplayInterface.Draw(tag, op, bd, bh)

Draws the visual representation of the tag data in 3D views.

Note

This function is called in a thread context. See the important information about threading.
To get the current drawpass call BaseDraw.GetDrawPass().
Parameters
  • tag (c4d.BaseTag) – The BaseTag connected with the TagData instance.

  • op (c4d.BaseObject) – The host object of the tag. Cinema 4D owns the pointed object.

  • bd (c4d.BaseDraw) – The editor’s view. The caller owns the pointed view.

  • bh (c4d.BaseDrawHelp) – The helper for the editor’s view. The caller owns the pointed view helper.

CustomDataTagDisplayInterface.FreeDisplayControl(tag)

Frees resources allocated by maxon.frameworks.mesh_misc.CustomDataTagDisplayInterface.InitDisplayControl().

Parameters

tag (c4d.BaseTag) – The BaseTag connected with the TagData instance.

CustomDataTagDisplayInterface.Init(tag)

Initializes the class after creation.

Parameters

tag (c4d.BaseTag) – The tag that owns the attributes.

CustomDataTagDisplayInterface.Reset()

Resets any local data before destroying the class instance.