Panda3D
Public Member Functions | List of all members
EggSaver Class Reference

Converts the scene graph beginning at the indicated node into an EggData structure, for writing to an egg file. More...

#include "eggSaver.h"

Public Member Functions

 EggSaver (EggData *data=nullptr)
 
void add_node (PandaNode *node)
 Adds the scene graph rooted at the indicated node to the accumulated egg data within this object. More...
 
void add_subgraph (PandaNode *root)
 Adds the scene graph rooted at the indicated node (but without the node itself) to the accumulated egg data within this object. More...
 
EggDataget_egg_data () const
 Returns the EggData populated within this class. More...
 

Detailed Description

Converts the scene graph beginning at the indicated node into an EggData structure, for writing to an egg file.

The conversion is not necessarily complete (some Panda or egg constructs are not fully supported by this class).

Definition at line 53 of file eggSaver.h.

Member Function Documentation

◆ add_node()

void EggSaver::add_node ( PandaNode node)

Adds the scene graph rooted at the indicated node to the accumulated egg data within this object.

Call get_egg_data() to retrieve the result.

Definition at line 97 of file eggSaver.cxx.

◆ add_subgraph()

void EggSaver::add_subgraph ( PandaNode root)

Adds the scene graph rooted at the indicated node (but without the node itself) to the accumulated egg data within this object.

Call get_egg_data() to retrieve the result.

Definition at line 117 of file eggSaver.cxx.

◆ get_egg_data()

EggData * EggSaver::get_egg_data ( ) const
inline

Returns the EggData populated within this class.

Definition at line 18 of file eggSaver.I.


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