1#ifndef COIN_SONORMALELEMENT_H
2#define COIN_SONORMALELEMENT_H
36#include <Inventor/elements/SoReplacedElement.h>
37#include <Inventor/SbVec3f.h>
40class COIN_DLL_API SoNormalElement :
public SoReplacedElement {
41 typedef SoReplacedElement inherited;
43 SO_ELEMENT_HEADER(SoNormalElement);
47 virtual ~SoNormalElement();
50 virtual void init(SoState * state);
52 static void set(SoState *
const state,
SoNode *
const node,
54 const SbBool normalsAreUnitLength = FALSE);
56 static const SoNormalElement *
getInstance(SoState *
const state);
57 int32_t
getNum(
void)
const;
61 SbBool areNormalsUnitLength(
void)
const;
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition SbVec3f.h:51
The SoNode class is the base class for nodes used in scene graphs.
Definition SoNode.h:56
const SbVec3f & get(const int index) const
FIXME: write doc.
Definition SoNormalElement.cpp:140
static void set(SoState *const state, SoNode *const node, const int32_t numNormals, const SbVec3f *const normals, const SbBool normalsAreUnitLength=FALSE)
FIXME: write doc.
Definition SoNormalElement.cpp:81
const SbVec3f * normals
Definition SoNormalElement.h:65
static const SoNormalElement * getInstance(SoState *const state)
FIXME: write doc.
Definition SoNormalElement.cpp:119
const SbVec3f * getArrayPtr(void) const
Definition SoNormalElement.cpp:150
int32_t getNum(void) const
FIXME: write doc.
Definition SoNormalElement.cpp:131
int32_t numNormals
Definition SoNormalElement.h:64
static void initClass(void)
Definition SoReplacedElement.cpp:77
virtual void init(SoState *state)
Definition SoReplacedElement.cpp:91