gramods
Classes | Public Types | Public Member Functions | List of all members
gramods::gmGraphics::Node Class Reference

The scenegraph node base. More...

#include <Node.hh>

Inheritance diagram for gramods::gmGraphics::Node:
Inheritance graph
[legend]
Collaboration diagram for gramods::gmGraphics::Node:
Collaboration graph
[legend]

Classes

struct  NearFarVisitor
 Visitor that extracts the optimal near and far planes for a scenegraph. More...
 
struct  RenderVisitor
 Visitor that renders a scenegraph to the currently active viewport. More...
 
struct  TransformStackVisitor
 Base for Visitor:s that need to track the space transform through traversal. More...
 

Public Types

typedef std::vector< std::shared_ptr< Node > > list
 

Public Member Functions

virtual std::vector< float > getIntersections (const IntersectionLine &line)
 Check and return intersections between the provided line and the shape represented by this node. More...
 
virtual std::string getDefaultKey () override
 Returns the default key, in Configuration, for the Object. More...
 
- Public Member Functions inherited from gramods::gmCore::Object
 Object ()
 Initializes internal data. More...
 
virtual ~Object ()
 Cleaning up internal data. More...
 
virtual void initialize ()
 Called to initialize the Object. More...
 
virtual void accept (Visitor *visitor)
 Calls the visitors apply method with this as argument. More...
 
virtual void traverse (Visitor *visitor)
 Calls the child Object's accept method, if such exist. More...
 
bool isInitialized ()
 Returns true if the Object is initialized. More...
 

Detailed Description

The scenegraph node base.

Member Function Documentation

◆ getDefaultKey()

virtual std::string gramods::gmGraphics::Node::getDefaultKey ( )
inlineoverridevirtual

Returns the default key, in Configuration, for the Object.

Reimplemented from gramods::gmCore::Object.

◆ getIntersections()

virtual std::vector<float> gramods::gmGraphics::Node::getIntersections ( const IntersectionLine line)
inlinevirtual

Check and return intersections between the provided line and the shape represented by this node.

Reimplemented in gramods::gmGraphics::ObjRenderer.


The documentation for this class was generated from the following file: