eng_graph_draw.hh File Reference

Visitor that renders a Graph. More...

#include "eng_node.hh"
#include "eng_node_visitor.hh"
#include "eng_graph.hh"

Go to the source code of this file.

Namespaces

namespace  eng

Classes

class  eng::VisitorDraw
 Visitor that draws a Graph. More...
class  eng::VisitorDraw::PopMatrixNode
 SpecialNode to pop matrix (counterpart of TransformNode). More...
class  eng::VisitorComputeNormals
 Visitor to compute normal vectors on polygons and vertexs. More...

Defines

#define ENG_GRAPH_DRAW_HH   1
#define COMPILE_RETRANSFORM_NORMALS   0
#define VISITOR_DRAW_SPECIAL_NODE(CLASS)


Detailed Description

Visitor that renders a Graph.

Id
LastChangedDate

Author:
Jim E. Brooks http://www.palomino3d.org

Define Documentation

#define COMPILE_RETRANSFORM_NORMALS   0

#define ENG_GRAPH_DRAW_HH   1

#define VISITOR_DRAW_SPECIAL_NODE ( CLASS   ) 

Value:

CLASS( void ) : SpecialNode() { }                           \
                CLASS( const CLASS& src ) : SpecialNode(src) { }            \
                ~CLASS() { }                                                \
    /* Cast is critical to select proper Visit() of derived class. */       \
    void        Accept( Visitor& visitor )                                  \
    {                                                                       \
         static_cast<VisitorDraw&>(visitor).Visit( *this );                 \
    }                                                                       \
    Node::Ptr   Clone( void ) const { return new CLASS( *this ); }

Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:14 2007