Panda3D
Classes | Public Member Functions | Public Attributes
FltToEggLevelState Class Reference

This keeps track of relevant things about the traversal as we walk through the flt hierarchy. More...

#include "fltToEggLevelState.h"

List of all members.

Classes

class  ParentNodes

Public Member Functions

 FltToEggLevelState (FltToEggConverter *converter)
 FltToEggLevelState (const FltToEggLevelState &copy)
EggGroupNodeget_synthetic_group (const string &name, const FltBead *transform_bead, FltGeometry::BillboardType type=FltGeometry::BT_none)
 Sometimes it is necessary to synthesize a group within a particular EggGroup, for instance to insert a transform or billboard flag.
void operator= (const FltToEggLevelState &copy)
void set_transform (const FltBead *flt_bead, EggGroup *egg_group)
 Sets up the group to reflect the transform indicated by the given record, if any.

Public Attributes

EggGroupNode_egg_parent
const FltObject_flt_object

Detailed Description

This keeps track of relevant things about the traversal as we walk through the flt hierarchy.

Definition at line 32 of file fltToEggLevelState.h.


Member Function Documentation

EggGroupNode * FltToEggLevelState::get_synthetic_group ( const string &  name,
const FltBead transform_bead,
FltGeometry::BillboardType  type = FltGeometry::BT_none 
)

Sometimes it is necessary to synthesize a group within a particular EggGroup, for instance to insert a transform or billboard flag.

This function will synthesize a group as needed, or return an existing group (if the group need not be synthesized, or if a matching group was previously synthesized).

This collects together polygons that share the same billboard axis and/or transform space into the same group, rather than wastefully creating a group per polygon.

Definition at line 68 of file fltToEggLevelState.cxx.

References EggGroupNode::add_child(), LMatrix4d::almost_equal(), FltBead::get_transform(), LMatrix4d::ident_mat(), and set_transform().

void FltToEggLevelState::set_transform ( const FltBead flt_bead,
EggGroup egg_group 
)

The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations