class tsNodeElement : public SoReplacedElement

Base class for storing a tsData node and a type(SoType)

Inheritance:


Public Methods

virtual SoElement* copyMatchInfo()
Inventor internal: Create and return a copy of this element
static const tsNodeElement* getInstance(SoState *state)
Returns the top (current and therefore valid) instance of the element in the state.
static const tsDataBase* 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 void init(SoState *state)
Makes this class known to the OpenInventor type system.
static void initClass()
Initializes the tsNodeElement class
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, const tsDataBase * dataNode, SoType dataNodeType)
Sets the data the element to be stored and propagated.
virtual ~tsNodeElement()
Destructor

Private Methods

virtual void setElt( const tsDataBase * nodePtr, SoType nodeType)
non static set method.
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

Base class for storing a tsData node and a type(SoType) . 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_ABSTRACT_HEADER(tsNodeElement)

virtual void init(SoState *state)
Makes this class known to the OpenInventor type system.

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

static const tsNodeElement* getInstance(SoState *state)
Returns the top (current and therefore valid) instance of the element in the state.

static const tsDataBase* 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)

static void initClass()
Initializes the tsNodeElement class

virtual ~tsNodeElement()
Destructor

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

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.


Direct child classes:
tsNormalElement
tsData2Element
tsData1Element
Author:
Andreas Lücke
Version:
0.0

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++