Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

BamInfo Class Reference

#include <bamInfo.h>

Inheritance diagram for BamInfo:

ProgramBase List of all members.

Public Member Functions

 BamInfo ()
void run ()

Protected Member Functions

virtual bool handle_args (Args &args)

Private Types

typedef pvector< FilenameFilenames

Private Member Functions

bool get_info (const Filename &filename)
void describe_scene_graph (PandaNode *node)
void describe_general_object (TypedWritable *object)
void list_hierarchy (PandaNode *node, int indent_level)

Private Attributes

Filenames _filenames
bool _ls
bool _verbose_transitions
bool _verbose_geoms
int _num_scene_graphs
SceneGraphAnalyzer _analyzer

Member Typedef Documentation

typedef pvector<Filename> BamInfo::Filenames [private]
 

Definition at line 51 of file bamInfo.h.


Constructor & Destructor Documentation

BamInfo::BamInfo  ) 
 

Definition at line 33 of file bamInfo.cxx.

References _ls, _num_scene_graphs, _verbose_geoms, _verbose_transitions, ProgramBase::add_option(), ProgramBase::add_runline(), ProgramBase::clear_runlines(), ProgramBase::dispatch_none(), and ProgramBase::set_program_description().


Member Function Documentation

void BamInfo::describe_general_object TypedWritable object  )  [private]
 

Definition at line 193 of file bamInfo.cxx.

References TypedWritable::get_type(), and nout.

Referenced by get_info().

void BamInfo::describe_scene_graph PandaNode node  )  [private]
 

Definition at line 162 of file bamInfo.cxx.

References _analyzer, _ls, SceneGraphAnalyzer::_num_nodes, _num_scene_graphs, _verbose_geoms, _verbose_transitions, SceneGraphAnalyzer::add_node(), list_hierarchy(), nout, ProgramBase::PT(), and root.

Referenced by get_info().

bool BamInfo::get_info const Filename filename  )  [private]
 

Definition at line 117 of file bamInfo.cxx.

References BamFile::close(), DCAST, describe_general_object(), describe_scene_graph(), PandaNode::get_class_type(), BamFile::get_file_major_ver(), BamFile::get_file_minor_ver(), BamFile::is_eof(), nout, NULL, BamFile::open_read(), BamFile::read_object(), and BamFile::resolve().

Referenced by run().

bool BamInfo::handle_args Args args  )  [protected, virtual]
 

Reimplemented from ProgramBase.

Definition at line 95 of file bamInfo.cxx.

References _filenames, and nout.

void BamInfo::list_hierarchy PandaNode node,
int  indent_level
[private]
 

Definition at line 204 of file bamInfo.cxx.

References _verbose_geoms, DCAST_INTO_V, PandaNode::get_child(), PandaNode::get_effects(), PandaNode::get_num_children(), PandaNode::get_state(), PandaNode::get_transform(), indent(), PandaNode::is_geom_node(), TransformState::is_identity(), nout, RenderEffects::write(), RenderState::write(), TransformState::write(), and GeomNode::write_verbose().

Referenced by describe_scene_graph().

void BamInfo::run  ) 
 

Definition at line 66 of file bamInfo.cxx.

References _analyzer, _filenames, _num_scene_graphs, get_info(), nout, and SceneGraphAnalyzer::write().

Referenced by main().


Member Data Documentation

SceneGraphAnalyzer BamInfo::_analyzer [private]
 

Definition at line 59 of file bamInfo.h.

Referenced by describe_scene_graph(), and run().

Filenames BamInfo::_filenames [private]
 

Definition at line 52 of file bamInfo.h.

Referenced by handle_args(), and run().

bool BamInfo::_ls [private]
 

Definition at line 54 of file bamInfo.h.

Referenced by BamInfo(), and describe_scene_graph().

int BamInfo::_num_scene_graphs [private]
 

Definition at line 58 of file bamInfo.h.

Referenced by BamInfo(), describe_scene_graph(), and run().

bool BamInfo::_verbose_geoms [private]
 

Definition at line 56 of file bamInfo.h.

Referenced by BamInfo(), describe_scene_graph(), and list_hierarchy().

bool BamInfo::_verbose_transitions [private]
 

Definition at line 55 of file bamInfo.h.

Referenced by BamInfo(), and describe_scene_graph().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 01:00:44 2003 for Panda-Tool by doxygen1.3