29 #define VISIT(CLASS) \
30 void ScenePrettyPrinter::visit##CLASS(CLASS &) \
32 _ofs << _space << #CLASS << endl; \
39 VISIT(NodeDrawingStyle)
89 const float *vertices = ifs.
vertices();
90 unsigned vsize = ifs.
vsize();
92 _ofs << _space <<
"IndexedFaceSet" << endl;
93 const float *p = vertices;
94 for (
unsigned int i = 0; i < vsize / 3; i++) {
95 _ofs << _space <<
" " << setw(3) << setfill(
'0') << i <<
": " << p[0] <<
", " << p[1] <<
", "
A Set of indexed faces to represent a surface object.
Class to display textual information about a scene graph.
SIMD_FORCE_INLINE btVector3 transform(const btVector3 &point) const
virtual const unsigned vsize() const
virtual const float * vertices() const
virtual void visitNodeGroupBefore(NodeGroup &)
virtual void visitNodeDrawingStyleBefore(NodeDrawingStyle &)
virtual void visitNodeDrawingStyleAfter(NodeDrawingStyle &)
virtual void visitNodeShapeAfter(NodeShape &)
virtual void visitNodeGroupAfter(NodeGroup &)
virtual void visitNodeTransformBefore(NodeTransform &)
virtual void visitNodeTransformAfter(NodeTransform &)