1#ifndef COIN_SONODEVISUALIZE_H
2#define COIN_SONODEVISUALIZE_H
27#include <Inventor/nodekits/SoBaseKit.h>
28#include <Inventor/nodes/SoSeparator.h>
29#include <Inventor/lists/SoNodeList.h>
30#include <Inventor/tools/SbPimplPtr.h>
31#include <Inventor/SbVec2s.h>
32#include <Inventor/SbVec3f.h>
41class COIN_DLL_API SoNodeVisualize :
public SoBaseKit
45 SO_KIT_HEADER(SoNodeVisualize);
46 SO_KIT_CATALOG_ENTRY_HEADER(topSeparator);
47 SO_KIT_CATALOG_ENTRY_HEADER(childrenVisible);
48 SO_KIT_CATALOG_ENTRY_HEADER(color);
49 SO_KIT_CATALOG_ENTRY_HEADER(texture);
50 SO_KIT_CATALOG_ENTRY_HEADER(textureTransform);
51 SO_KIT_CATALOG_ENTRY_HEADER(shape);
52 SO_KIT_CATALOG_ENTRY_HEADER(rotSwitch);
53 SO_KIT_CATALOG_ENTRY_HEADER(rotation);
54 SO_KIT_CATALOG_ENTRY_HEADER(childGeometry);
55 SO_KIT_CATALOG_ENTRY_HEADER(translation);
56 SO_KIT_CATALOG_ENTRY_HEADER(lines);
57 SO_KIT_CATALOG_ENTRY_HEADER(lineSep);
60 static void initClass(
void);
61 static void cleanClass(
void);
63 SoNodeVisualize * visualize(
SoNode *);
64 static SoNodeVisualize* visualizeTree(
SoNode * node,
int depth=-1);
66 void setAlternate(
bool alternating=
true);
67 bool nodeHasChildren();
68 unsigned int nodeNumChildren();
69 bool isAlternating()
const;
76 SoNodeVisualize(
void);
77 virtual ~SoNodeVisualize();
80 void setupChildCatalog(
SoNode * node,
int depth);
81 void visualizeSubTree(
SoNode * node,
int depth=-1);
84 SoNodeVisualize* getSoNodeVisualizeRoot();
85 void internalAlternating(
bool alternating,
int direction);
90 SbPimplPtr<class SoNodeVisualizeP> pimpl;
93 SoNodeVisualize(
const SoNodeVisualize &);
94 SoNodeVisualize & operator = (
const SoNodeVisualize &);
98 SoNodeVisualize *parent;
The SbVec2s class is a 2 dimensional vector with short integer coordinates.
Definition SbVec2s.h:41
The SoBaseKit class is the toplevel superclass for nodekits.
Definition SoBaseKit.h:57
virtual void handleEvent(SoHandleEventAction *action)
Definition SoBaseKit.cpp:1065
The SoHandleEventAction class distributes user events to the scene.
Definition SoHandleEventAction.h:37
The SoNodeList class is a container for pointers to SoNode objects.
Definition SoNodeList.h:31
The SoNode class is the base class for nodes used in scene graphs.
Definition SoNode.h:47
The SoProfilerStats class is a node for exposing profiling results gathered by SoProfilerElement.
Definition SoProfilerStats.h:38