Click or drag to resize
SoGLDrawStyleElement Class

Note: This API is now obsolete.

Changes the current draw style in GL.

Inheritance Hierarchy

Namespace: OIV.Inventor.Elements
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 9.9.13.0 (9.9.13.0)
Syntax
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
[ObsoleteAttribute("See documentation for more details")]
public class SoGLDrawStyleElement : SoDrawStyleElement

The SoGLDrawStyleElement type exposes the following members.

Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodStatic memberGetClassStackIndex Obsolete.

Returns the stack id for this element.

Public methodGetHashCode
Overrides GetHashCode().
(Inherited from SoNetBase.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodPop

Overrides pop() method so side effects can occur in GL.

(Overrides SoElementPop(SoState, SoElement).)
Public methodPush

Overrides push() so we can remember the previous element's draw style, and perhaps avoid sending unnecessary GL calls if this element is the same.

(Overrides SoElementPush(SoState).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

This element changes the current draw style in GL. Overrides the virtual methods on SoDrawStyleElement to send the draw style to GL when necessary.

<font color="#0000FF">NOTE:</font> This class does not exist in Open Inventor 10.0 and later.

Note that this class relies on SoDrawStyleElement to store the style in the instance.

Also note that this tells GL only how to draw polygons. Shapes that contain lines still have to check for POINTS draw styles and act accordingly.

See Also

Reference

OIV.Inventor.ElementsSoGLDrawStyleElement