class tsNormalElement : public tsNodeElement

Element for propagating normal data

Inheritance:


Public Methods

virtual SoElement* copyMatchInfo()
Inventor internal: Create and return a copy of this element
static const tsNormalElement* getInstance(SoState *state)
Returns the top (current) instance of the element in the state
static tsNormal* getPtr(SoState *state, SoNode *node)
Returns the pointer stored in the current (and therefore valid) element in the stack. Inline for speed.
static SoType getType(SoState *state)
Returns the type stored in the current (and therefore valid) element in the stack
virtual void init(SoState *state)
Initializes this element.
SoINTERNAL static void initClass()
Makes this class known to the OpenInventor type system.
virtual SbBool matches(const SoElement *elt)
Inventor internal: Returns TRUE if the element matches another element, based on node-id
virtual void pop(SoState *state, const SoElement *prevTopElement)
virtual void push(SoState *state)
Inventor internal: Pushes/pops element
static void set(SoState *state, tsNormal * dataNode, SoType dataNodeType)
Sets the data the element to be stored and propagated.
virtual ~tsNormalElement()
Destructor

Private Fields

tsNormal* nodePtr
The pointer that is stored. Overrides type to propagating only tsNormal pointers.
SoType nodeType

Private Methods

virtual void setElt( tsNormal * nodePtr, SoType nodeType)
non static set method.
SO_ELEMENT_HEADER(tsNormalElement)
Inventor macro

Inherited from tsNodeElement:

Private Methods

SO_ELEMENT_ABSTRACT_HEADER(tsNodeElement)

Private

Data that is propagated

const tsDataBase* nodePtr
A pointer of class tsDataBase to cover all tsData nodes.
SoType nodeType
A type, most often used to store the type of the node pointed to by the pointer.

Documentation

Element for propagating normal data. Element for storing a pointer to a node derived from tsNormal for propagating normal data. Note: Elements are an internal class family, that is used for Inventor's traversal mechanism and are NOT used for black box use of tsKit.

SO_ELEMENT_HEADER(tsNormalElement)
Inventor macro

virtual void init(SoState *state)
Initializes this element.

static void set(SoState *state, tsNormal * dataNode, SoType dataNodeType)
Sets the data the element to be stored and propagated.

static const tsNormalElement* getInstance(SoState *state)
Returns the top (current) instance of the element in the state

static tsNormal* getPtr(SoState *state, SoNode *node)
Returns the pointer stored in the current (and therefore valid) element in the stack. Inline for speed.

static SoType getType(SoState *state)
Returns the type stored in the current (and therefore valid) element in the stack. Inline for speed.

virtual SbBool matches(const SoElement *elt)
Inventor internal: Returns TRUE if the element matches another element, based on node-id

virtual SoElement* copyMatchInfo()
Inventor internal: Create and return a copy of this element. The only operation supported by the copy is matches() (the copy will be unitialized except for the nodeId).

virtual void push(SoState *state)
Inventor internal: Pushes/pops element. Allows for side effects to occur. Default methods do nothing.

virtual void pop(SoState *state, const SoElement *prevTopElement)

SoINTERNAL static void initClass()
Makes this class known to the OpenInventor type system.

virtual ~tsNormalElement()
Destructor

virtual void setElt( tsNormal * nodePtr, SoType nodeType)
non static set method.

tsNormal* nodePtr
The pointer that is stored. Overrides type to propagating only tsNormal pointers.

SoType nodeType


This class has no child classes.
Author:
Andreas Lücke
Version:
0.0
See Also:
tsNormal

alphabetic index hierarchy of classes


This page is part of the tsKit's reference manual by Andreas Lücke.
Back to tsKit-Home

generated by doc++