Skip to content

Actor

Introduction

vtkActor is used to represent an entity in a rendering scene. It inherits functions related to the actors position, and orientation from vtkProp3D. The actor also has scaling and maintains a reference to the defining geometry (i.e., the mapper), rendering properties, and possibly a texture map. vtkActor combines these instance variables into one 4x4 transformation matrix as follows: [x y z 1] = [x y z 1] Translate(-origin) Scale(scale) Rot(y) Rot(x) Rot (z) Trans(origin) Trans(position)

See Also

vtkMappervtkProperty

Methods

extend

Method used to decorate a given object (publicAPI+model) with vtkActor characteristics.

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

getActors

For some exporters and other other operations we must be able to collect all the actors or volumes. These methods are used in that process.

getBackfaceProperty

Get the property object that controls this actors backface surface properties.

getForceOpaque

Check whether the opaque is forced or not.

getForceTranslucent

Check whether the translucency is forced or not.

getIsOpaque

Check if the actor is opaque or not

getMapper

Get the Mapper that this actor is getting its data from.

getSupportsSelection

Check whether if the actor supports selection

hasTranslucentPolygonalGeometry

Return if the prop have some translucent polygonal geometry

makeProperty

Create a new property suitable for use with this type of Actor.

ArgumentTypeRequiredDescription
initialValuesIPropertyInitialValuesNo(default: {})

newInstance

Method used to create a new instance of vtkActor with the following defaults:

  • origin = [0, 0, 0]
  • position = [0, 0, 0]
  • scale = [1, 1, 1]
  • visibility = 1
  • pickable = 1
  • dragable = 1
  • orientation = [0, 0, 0]

No user defined matrix and no texture map.

ArgumentTypeRequiredDescription
initialValuesIActorInitialValuesNofor pre-setting some of its content

setBackfaceProperty

Set the property object that controls this actors backface surface properties.

ArgumentTypeRequiredDescription
backfacePropertyvtkPropertyYesThe backfaceProperty instance.

setForceOpaque

Force the actor to be treated as opaque or translucent.

ArgumentTypeRequiredDescription
forceOpaqueBooleanYes

setForceTranslucent

Force the actor to be treated as opaque or translucent.

ArgumentTypeRequiredDescription
forceTranslucentBooleanYes

setMapper

This is the method that is used to connect an actor to the end of a visualization pipeline, i.e. the mapper.

ArgumentTypeRequiredDescription
mappervtkMapperYesThe vtkMapper instance.