Stores various beveling attributes. More...
#include <Inventor/elements/SoBevelPropertyElement.h>
Public Member Functions | |
float | getAngle () const |
float | getRadius () const |
SbBool | isAbsoluteRadius () const |
SbBool | isEnabled () const |
SbBool | isCoplanarTestEnabled () const |
SbBool | isDuplicateTestEnabled () const |
SbBool | isOrderingTestEnabled () const |
int | getTestsToDoBeforeBevel () const |
SbBool | isOutputVRML () const |
virtual void | print (FILE *fp) const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static int | getClassStackIndex () |
static void | setAngle (SoState *state, SoNode *node, float) |
static void | setRadius (SoState *state, SoNode *node, float=SoBevelProperty::DEFAULT_RADIUS) |
static void | setAbsoluteRadius (SoState *state, SoNode *node, float) |
static void | setTests (SoState *state, SoNode *node, int) |
static void | setVRMLOutput (SoState *state, SoNode *node, SbBool) |
static const SoBevelPropertyElement * | getInstance (SoState *state) |
This element stores various beveling attributes.
float SoBevelPropertyElement::getAngle | ( | ) | const [inline] |
Gets the bevel properties (angle).
static int SoBevelPropertyElement::getClassStackIndex | ( | ) | [static] |
Returns the stack id for this element.
Reimplemented from SoReplacedElement.
static SoType SoBevelPropertyElement::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoReplacedElement.
static const SoBevelPropertyElement* SoBevelPropertyElement::getInstance | ( | SoState * | state | ) | [inline, static] |
Returns the top (current) instance of the element in the state.
float SoBevelPropertyElement::getRadius | ( | ) | const [inline] |
Gets the bevel properties (radius).
int SoBevelPropertyElement::getTestsToDoBeforeBevel | ( | ) | const [inline] |
Method to know the different tests currently selected; these tests will be performed on each shape before beveling is applied.
SbBool SoBevelPropertyElement::isAbsoluteRadius | ( | ) | const [inline] |
Gets the bevel properties (absolute radius).
SbBool SoBevelPropertyElement::isCoplanarTestEnabled | ( | ) | const [inline] |
Method to know if this test is enabled.
If it is, this test will be performed on each shape before the bevel.
SbBool SoBevelPropertyElement::isDuplicateTestEnabled | ( | ) | const [inline] |
Method to know if this test is enabled.
If it is, this test will be performed on each shape before the bevel.
SbBool SoBevelPropertyElement::isEnabled | ( | ) | const [inline] |
Gets the bevel properties (enabled flag).
SbBool SoBevelPropertyElement::isOrderingTestEnabled | ( | ) | const [inline] |
Method to know if this test is enabled.
If it is, this test will be performed on each shape before the bevel.
SbBool SoBevelPropertyElement::isOutputVRML | ( | ) | const [inline] |
Gets the current selected type of the output shape (VRML or not).
virtual void SoBevelPropertyElement::print | ( | FILE * | fp | ) | const [virtual] |
Prints element (for debugging).
Reimplemented from SoReplacedElement.
static void SoBevelPropertyElement::setAbsoluteRadius | ( | SoState * | state, | |
SoNode * | node, | |||
float | ||||
) | [static] |
Sets the bevel radius as an absolute value.
Sets the bevel angle: if 2 adjacent faces make a greater angle, then their common edge is beveled.
static void SoBevelPropertyElement::setRadius | ( | SoState * | state, | |
SoNode * | node, | |||
float | = SoBevelProperty::DEFAULT_RADIUS | |||
) | [static] |
Sets the bevel radius as a percentage [0.0, 1.0] of the greater value of the length of each edge.
Allows the user to switch on/off the tests applied before the bevel (can increase speed when the tests are not needed).
static void SoBevelPropertyElement::setVRMLOutput | ( | SoState * | state, | |
SoNode * | node, | |||
SbBool | ||||
) | [static] |
Allows the user to select the type of the output shapes (VRML or not).