Skip to content

AnnotatedCubeActor

Introduction

All propertyObjects may have any of the following keys:

  • text: the face text (default “”)
  • faceColor: the face color (default “white”)
  • faceRotation: the face rotation, in degrees (default 0)
  • fontFamily: the font family to use (default Arial)
  • fontColor: the font color (default “black”)
  • fontStyle: the CSS style for the text (default “normal”)
  • fontSizeScale: A function that takes the face resolution and returns the pixel size of the font (default (resolution) => resolution / 1.8)
  • edgeThickness: the face edge/border thickness, which is a fraction of the cube resolution (default 0.1)
  • edgeColor: the color of each face’s edge/border (default “white”) resolution: the pixel resolution of a face, i.e. pixel side length (default 200) If a key is not specified, then the default value is used.

Methods

extend

Method use to decorate a given object (publicAPI+model) with vtkAnnotatedCubeActor characteristics.

ArgumentTypeRequiredDescription
publicAPIYesobject on which methods will be bounds (public)
modelYesobject on which data structure will be bounds (protected)
initialValuesIAnnotatedCubeActorInitialValuesNo(default: {})

newInstance

Method use to create a new instance of vtkAnnotatedCubeActor

ArgumentTypeRequiredDescription
initialValuesIAnnotatedCubeActorInitialValuesNofor pre-setting some of its content

setDefaultStyle

Set the default style.

ArgumentTypeRequiredDescription
styleIStyleYes

setXMinusFaceProperty

The -X face property.

ArgumentTypeRequiredDescription
propIFacePropertyYesThe -X face property.

setXPlusFaceProperty

The +X face property.

ArgumentTypeRequiredDescription
propIFacePropertyYes+X face property

setYMinusFaceProperty

The -Y face property.

ArgumentTypeRequiredDescription
propIFacePropertyYesThe -Y ace property.

setYPlusFaceProperty

The +Y face property.

ArgumentTypeRequiredDescription
propIFacePropertyYesThe +Y face property.

setZMinusFaceProperty

The -Z face property.

ArgumentTypeRequiredDescription
propIFacePropertyYesThe -Z face property.

setZPlusFaceProperty

The +Z face property.

ArgumentTypeRequiredDescription
propIFacePropertyYesThe +Z face property.