VisualStyle

Context: Sofa.Component.Visual

Edit the visual style.

Allowed values for displayFlags data are a combination of the following:

showAll, hideAll,
showVisual, hideVisual,

showVisualModels, hideVisualModels,

showBehavior, hideBehavior,

showBehaviorModels, hideBehaviorModels, showForceFields, hideForceFields, showInteractionForceFields, hideInteractionForceFields

showMapping, hideMapping

showMappings, hideMappings showMechanicalMappings, hideMechanicalMappings

showCollision, hideCollision

showCollisionModels, hideCollisionModels showBoundingCollisionModels, hideBoundingCollisionModels

showOptions hideOptions

showRendering hideRendering showNormals hideNormals showWireframe hideWireframe

Data:
  • name : object name

  • printLog : if true, emits extra messages at runtime.

  • tags : list of the subsets the objet belongs to

  • bbox : this object bounding box

  • componentState : The state of the component among (Dirty, Valid, Undefined, Loading, Invalid).

  • listening : if true, handle the events, otherwise ignore the events

  • enable : Display the object or not

  • displayFlags : Display Flags

Links:
  • context : Graph Node containing this object (or BaseContext::getDefault() if no graph is used

  • slaves : Sub-objects used internally by this object

  • master : nullptr for regular objects, or master object for which this object is one sub-objects