Panda3D
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
FltToEggLevelState Class Reference

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

#include "fltToEggLevelState.h"

Public Member Functions

 FltToEggLevelState (const FltToEggLevelState &copy)
 
 FltToEggLevelState (FltToEggConverter *converter)
 
EggGroupNodeget_synthetic_group (const std::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 30 of file fltToEggLevelState.h.

Constructor & Destructor Documentation

◆ FltToEggLevelState() [1/2]

FltToEggLevelState::FltToEggLevelState ( FltToEggConverter * converter)
inline

Definition at line 17 of file fltToEggLevelState.I.

◆ FltToEggLevelState() [2/2]

FltToEggLevelState::FltToEggLevelState ( const FltToEggLevelState & copy)
inline

Definition at line 28 of file fltToEggLevelState.I.

◆ ~FltToEggLevelState()

FltToEggLevelState::~FltToEggLevelState ( )

Definition at line 29 of file fltToEggLevelState.cxx.

Member Function Documentation

◆ get_synthetic_group()

EggGroupNode * FltToEggLevelState::get_synthetic_group ( const std::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 58 of file fltToEggLevelState.cxx.

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

◆ operator=()

void FltToEggLevelState::operator= ( const FltToEggLevelState & copy)
inline

Definition at line 40 of file fltToEggLevelState.I.

◆ set_transform()

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

Member Data Documentation

◆ _egg_parent

EggGroupNode* FltToEggLevelState::_egg_parent

Definition at line 44 of file fltToEggLevelState.h.

◆ _flt_object

const FltObject* FltToEggLevelState::_flt_object

Definition at line 43 of file fltToEggLevelState.h.


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