logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SoDrawStyle — node that defines the style to use when rendering

Action Behavior

SoGLRenderAction,SoCallbackAction
          Sets the current drawing style.

Description

       This  node defines the current drawing style for all subsequent shape nodes in a scene graph. SoDrawStyle
       specifies how primitives should be rendered. The drawing style has  no  effect  on  picking  or  callback
       primitive generation.

Fields

SoSFEnumstyle
          Drawing style.

     SoSFFloatpointSize
          Radius of points (for POINTS style).

     SoSFFloatlineWidth
          Width of lines (for LINES style).

     SoSFUShortlinePattern
          Stipple  pattern  for  lines (for LINES style). Values can range from 0 (invisible) to 0xffff (solid).
          This specifies how dashed or dotted lines will be drawn.

File Format/Defaults

DrawStyle{styleFILLEDpointSize0lineWidth0linePattern0xffff}

Inherits From

       SoBase > SoFieldContainer > SoNode > SoDrawStyle

Methods

SoDrawStyle()
          Creates a drawing style node with default settings.

     staticSoTypegetClassTypeId()
          Returns type identifier for this class.

Name

       SoDrawStyle — node that defines the style to use when rendering

See Also

SoLightModel,SoPickStyle,SoShapeHintsSoDrawStyle(3IV)()

Synopsis

#include<Inventor/nodes/SoDrawStyle.h>enumStyle{SoDrawStyle::FILLED     Draw filled regions
          SoDrawStyle::LINES      Draw only outlines (wire frame)
          SoDrawStyle::POINTS     Draw points at vertices
          SoDrawStyle::INVISIBLE  Do not draw anything at all
     }

          Fields from class SoDrawStyle:

     SoSFEnumstyleSoSFFloatpointSizeSoSFFloatlineWidthSoSFUShortlinePattern

          Methods from class SoDrawStyle:

                         SoDrawStyle()staticSoTypegetClassTypeId()

          Methods from class SoNode:

     voidsetOverride(SbBoolstate)SbBoolisOverride()constSoNode*copy(SbBoolcopyConnections=FALSE)constvirtualSbBoolaffectsState()conststaticSoNode*getByName(constSbName&name)staticintgetByName(constSbName&name,SoNodeList&list)

          Methods from class SoFieldContainer:

     voidsetToDefaults()SbBoolhasDefaultValues()constSbBoolfieldsAreEqual(constSoFieldContainer*fc)constvoidcopyFieldValues(constSoFieldContainer*fc,SbBoolcopyConnections=FALSE)SbBoolset(constchar*fieldDataString)voidget(SbString&fieldDataString)virtualintgetFields(SoFieldList&resultList)constvirtualSoField*getField(constSbName&fieldName)constSbBoolgetFieldName(constSoField*field,SbName&fieldName)constSbBoolisNotifyEnabled()constSbBoolenableNotify(SbBoolflag)

          Methods from class SoBase:

     voidref()voidunref()constvoidunrefNoDelete()constvoidtouch()virtualSoTypegetTypeId()constSbBoolisOfType(SoTypetype)constvirtualvoidsetName(constSbName&name)virtualSbNamegetName()const

See Also