Stores the current line stipple pattern. More...
#include <Inventor/elements/SoLinePatternElement.h>
Public Member Functions | |
virtual void | print (FILE *fp) const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static int | getClassStackIndex () |
static void | set (SoState *state, u_short pattern, int factor=1) |
static void | set (SoState *state, SoNode *, u_short pattern, int factor=1) |
static u_short | get (SoState *state, int &factor) |
static u_short | getDefault () |
static u_short | getDefaultPattern () |
static int | getDefaultScaleFactor () |
Stores the current line stipple pattern.
This slement stores the current line stipple pattern.
static u_short SoLinePatternElement::get | ( | SoState * | state, | |
int & | factor | |||
) | [static] |
Returns current line pattern from the state.
The current line pattern scale factor from the state is returned in factor.
static int SoLinePatternElement::getClassStackIndex | ( | ) | [static] |
Returns the stack id for this element.
Reimplemented from SoReplacedElement.
static SoType SoLinePatternElement::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoReplacedElement.
static u_short SoLinePatternElement::getDefault | ( | ) | [inline, static] |
Deprecated: Returns the default line pattern.
static u_short SoLinePatternElement::getDefaultPattern | ( | ) | [inline, static] |
Returns the default line pattern.
static int SoLinePatternElement::getDefaultScaleFactor | ( | ) | [inline, static] |
Returns the default line pattern scale factor.
A multiplier for each bit in the line pattern. If factor is 3, for example, each bit in the pattern will be used three times before the next bit in the pattern is used. The factor parameter is clamped to the range [1, 256] and defaults to 1.
virtual void SoLinePatternElement::print | ( | FILE * | fp | ) | const [virtual] |
Prints element (for debugging).
Reimplemented from SoReplacedElement.
static void SoLinePatternElement::set | ( | SoState * | state, | |
SoNode * | , | |||
u_short | pattern, | |||
int | factor = 1 | |||
) | [inline, static] |
Sets the current line pattern in the state.
static void SoLinePatternElement::set | ( | SoState * | state, | |
u_short | pattern, | |||
int | factor = 1 | |||
) | [static] |
Sets the current line pattern in the state.