.TH "SoLineWidthElement" 3 "Fri Sep 6 2024 15:32:06" "Version 4.0.3" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME SoLineWidthElement \- The \fBSoLineWidthElement\fP class changes the line width setting of the render state\&. .SH SYNOPSIS .br .PP .PP \fR#include \fP .PP Inherits \fBSoFloatElement\fP\&. .PP Inherited by \fBSoGLLineWidthElement\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "virtual void \fBinit\fP (\fBSoState\fP *state)" .br .in -1c Public Member Functions inherited from \fBSoFloatElement\fP .in +1c .ti -1c .RI "virtual SbBool \fBmatches\fP (const \fBSoElement\fP *element) const" .br .ti -1c .RI "virtual \fBSoElement\fP * \fBcopyMatchInfo\fP (void) const" .br .ti -1c .RI "virtual void \fBprint\fP (FILE *file) const" .br .ti -1c .RI "virtual void \fBsetElt\fP (float value)" .br .in -1c Public Member Functions inherited from \fBSoElement\fP .in +1c .ti -1c .RI "const \fBSoType\fP \fBgetTypeId\fP (void) const" .br .ti -1c .RI "int \fBgetStackIndex\fP (void) const" .br .ti -1c .RI "virtual void \fBpush\fP (\fBSoState\fP *state)" .br .ti -1c .RI "virtual void \fBpop\fP (\fBSoState\fP *state, const \fBSoElement\fP *prevTopElement)" .br .ti -1c .RI "void \fBsetDepth\fP (const int \fBdepth\fP)" .br .ti -1c .RI "int \fBgetDepth\fP (void) const" .br .ti -1c .RI "virtual \fB~SoElement\fP ()" .br .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "static \fBSoType\fP \fBgetClassTypeId\fP (void)" .br .ti -1c .RI "static int \fBgetClassStackIndex\fP (void)" .br .ti -1c .RI "static void * \fBcreateInstance\fP (void)" .br .ti -1c .RI "static void \fBinitClass\fP (void)" .br .ti -1c .RI "static void \fBset\fP (\fBSoState\fP *const state, \fBSoNode\fP *const node, const float lineWidth)" .br .ti -1c .RI "static void \fBset\fP (\fBSoState\fP *const state, const float lineWidth)" .br .ti -1c .RI "static float \fBget\fP (\fBSoState\fP *const state)" .br .ti -1c .RI "static float \fBgetDefault\fP ()" .br .in -1c Static Public Member Functions inherited from \fBSoFloatElement\fP .in +1c .ti -1c .RI "static \fBSoType\fP \fBgetClassTypeId\fP (void)" .br .ti -1c .RI "static int \fBgetClassStackIndex\fP (void)" .br .ti -1c .RI "static void \fBinitClass\fP (void)" .br .ti -1c .RI "static void \fBset\fP (const int \fBstackIndex\fP, \fBSoState\fP *const state, \fBSoNode\fP *const node, const float value)" .br .ti -1c .RI "static void \fBset\fP (const int \fBstackIndex\fP, \fBSoState\fP *const state, const float value)" .br .ti -1c .RI "static float \fBget\fP (const int \fBstackIndex\fP, \fBSoState\fP *const state)" .br .in -1c Static Public Member Functions inherited from \fBSoElement\fP .in +1c .ti -1c .RI "static void \fBinitClass\fP (void)" .br .ti -1c .RI "static \fBSoType\fP \fBgetClassTypeId\fP (void)" .br .ti -1c .RI "static int \fBgetClassStackIndex\fP (void)" .br .ti -1c .RI "static void \fBinitElements\fP (void)" .br .ti -1c .RI "static int \fBgetNumStackIndices\fP (void)" .br .ti -1c .RI "static \fBSoType\fP \fBgetIdFromStackIndex\fP (const int \fBstackIndex\fP)" .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "virtual \fB~SoLineWidthElement\fP ()" .br .in -1c Protected Member Functions inherited from \fBSoFloatElement\fP .in +1c .ti -1c .RI "virtual \fB~SoFloatElement\fP ()" .br .in -1c Protected Member Functions inherited from \fBSoElement\fP .in +1c .ti -1c .RI "\fBSoElement\fP (void)" .br .ti -1c .RI "void \fBcapture\fP (\fBSoState\fP *const state) const" .br .ti -1c .RI "virtual void \fBcaptureThis\fP (\fBSoState\fP *state) const" .br .ti -1c .RI "void \fBsetTypeId\fP (const \fBSoType\fP \fBtypeId\fP)" .br .ti -1c .RI "void \fBsetStackIndex\fP (const int index)" .br .ti -1c .RI "\fBSoElement\fP * \fBgetNextInStack\fP (void) const" .br .ti -1c .RI "\fBSoElement\fP * \fBgetNextFree\fP (void) const" .br .in -1c .SS "Additional Inherited Members" Static Protected Member Functions inherited from \fBSoElement\fP .in +1c .ti -1c .RI "static \fBSoElement\fP * \fBgetElement\fP (\fBSoState\fP *const state, const int \fBstackIndex\fP)" .br .ti -1c .RI "static const \fBSoElement\fP * \fBgetConstElement\fP (\fBSoState\fP *const state, const int \fBstackIndex\fP)" .br .ti -1c .RI "static int \fBcreateStackIndex\fP (const \fBSoType\fP id)" .br .in -1c Protected Attributes inherited from \fBSoFloatElement\fP .in +1c .ti -1c .RI "float \fBdata\fP" .br .in -1c Protected Attributes inherited from \fBSoElement\fP .in +1c .ti -1c .RI "\fBSoType\fP \fBtypeId\fP" .br .ti -1c .RI "int \fBstackIndex\fP" .br .ti -1c .RI "int \fBdepth\fP" .br .in -1c Static Protected Attributes inherited from \fBSoElement\fP .in +1c .ti -1c .RI "static int \fBclassStackIndex\fP" .br .ti -1c .RI "static \fBSoTypeList\fP * \fBstackToType\fP" .br .in -1c .SH "Detailed Description" .PP The \fBSoLineWidthElement\fP class changes the line width setting of the render state\&. Requests from the scene graph to change the line width when rendering line primitives will be made through this element, which forwards it to the appropriate native call in the underlying rendering library\&. .PP Subsequent nodes rendering line primitives will use the width setting (for instance \fBSoLineSet\fP nodes)\&. .SH "Constructor & Destructor Documentation" .PP .SS "SoLineWidthElement::~SoLineWidthElement ()\fR [protected]\fP, \fR [virtual]\fP" Destructor\&. .SH "Member Function Documentation" .PP .SS "\fBSoType\fP SoLineWidthElement::getClassTypeId (void )\fR [static]\fP" This static method returns the \fBSoType\fP object associated with objects of this class\&. .br .SS "int SoLineWidthElement::getClassStackIndex (void )\fR [static]\fP" This static method returns the state stack index for the class\&. .br .SS "void * SoLineWidthElement::createInstance (void )\fR [static]\fP" \fIThis API member is considered internal to the library, as it is not likely to be of interest to the application programmer\&.\fP .br .br Creates a new instance of the class type corresponding to the \fBSoType\fP object\&. .br .SS "void SoLineWidthElement::initClass (void )\fR [static]\fP" Initialize relevant common data for all instances, like the type system\&. .SS "void SoLineWidthElement::init (\fBSoState\fP * state)\fR [virtual]\fP" Initializes the element to its default value\&. The default value is 0\&.0\&. .PP Reimplemented from \fBSoFloatElement\fP\&. .PP Reimplemented in \fBSoGLLineWidthElement\fP\&. .SS "void SoLineWidthElement::set (\fBSoState\fP *const state, \fBSoNode\fP *const node, const float lineWidth)\fR [static]\fP" Set up the current state's \fIlineWidth\fP value\&. .SS "void SoLineWidthElement::set (\fBSoState\fP *const state, const float lineWidth)\fR [static]\fP" Set up the current state's \fIlineWidth\fP value\&. .SS "float SoLineWidthElement::get (\fBSoState\fP *const state)\fR [static]\fP" Returns the current line width value\&. .SS "float SoLineWidthElement::getDefault (void )\fR [static]\fP" Returns the default line width value if no value has been set explicitly\&. .SH "Author" .PP Generated automatically by Doxygen for Coin from the source code\&.