1#ifndef COIN_SONORMALELEMENT_H
2#define COIN_SONORMALELEMENT_H
27#include <Inventor/elements/SoReplacedElement.h>
28#include <Inventor/SbVec3f.h>
31class COIN_DLL_API SoNormalElement :
public SoReplacedElement {
32 typedef SoReplacedElement inherited;
34 SO_ELEMENT_HEADER(SoNormalElement);
38 virtual ~SoNormalElement();
41 virtual void init(SoState * state);
43 static void set(SoState *
const state,
SoNode *
const node,
45 const SbBool normalsAreUnitLength = FALSE);
47 static const SoNormalElement *
getInstance(SoState *
const state);
48 int32_t
getNum(
void)
const;
52 SbBool areNormalsUnitLength(
void)
const;
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition SbVec3f.h:40
The SoNode class is the base class for nodes used in scene graphs.
Definition SoNode.h:47
const SbVec3f & get(const int index) const
FIXME: write doc.
Definition SoNormalElement.cpp:126
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:71
const SbVec3f * normals
Definition SoNormalElement.h:56
static const SoNormalElement * getInstance(SoState *const state)
FIXME: write doc.
Definition SoNormalElement.cpp:105
static void initClass(void)
Definition SoNormalElement.cpp:55
const SbVec3f * getArrayPtr(void) const
Definition SoNormalElement.cpp:136
int32_t getNum(void) const
FIXME: write doc.
Definition SoNormalElement.cpp:117
int32_t numNormals
Definition SoNormalElement.h:55
virtual void init(SoState *state)
Definition SoReplacedElement.cpp:79
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated on Thu Jan 16 2025 for Coin by Doxygen 1.13.2.