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

MayaCopy Class Reference

#include <mayaCopy.h>

Inheritance diagram for MayaCopy:

CVSCopy ProgramBase List of all members.

Public Member Functions

 MayaCopy ()
void run ()

Protected Member Functions

virtual bool copy_file (const Filename &source, const Filename &dest, CVSSourceDirectory *dir, void *extra_data, bool new_file)
virtual string filter_filename (const string &source)

Private Types

enum  FileType { FT_maya, FT_texture }

Private Member Functions

bool copy_maya_file (const Filename &source, const Filename &dest, CVSSourceDirectory *dir)
bool extract_texture (MayaShaderColorDef &color_def, CVSSourceDirectory *dir)
bool copy_texture (const Filename &source, const Filename &dest, CVSSourceDirectory *dir)
bool collect_shaders ()
bool collect_shader_for_node (const MDagPath &dag_path)
 PT (MayaApi) _maya

Private Attributes

bool _keep_ver
MayaShaders _shaders

Member Enumeration Documentation

enum MayaCopy::FileType [private]
 

Enumeration values:
FT_maya 
FT_texture 

Definition at line 54 of file mayaCopy.h.


Constructor & Destructor Documentation

MayaCopy::MayaCopy  ) 
 

Definition at line 43 of file mayaCopy.cxx.

References _keep_ver, ProgramBase::add_option(), ProgramBase::add_path_replace_options(), ProgramBase::add_runline(), ProgramBase::clear_runlines(), ProgramBase::dispatch_none(), and ProgramBase::set_program_description().


Member Function Documentation

bool MayaCopy::collect_shader_for_node const MDagPath &  dag_path  )  [private]
 

Definition at line 322 of file mayaCopy.cxx.

References _shaders, MayaShaders::find_shader_for_node(), and MayaShaders::find_shader_for_shading_engine().

Referenced by collect_shaders().

bool MayaCopy::collect_shaders  )  [private]
 

Definition at line 280 of file mayaCopy.cxx.

References collect_shader_for_node(), and nout.

Referenced by copy_maya_file().

bool MayaCopy::copy_file const Filename source,
const Filename dest,
CVSSourceDirectory dir,
void extra_data,
bool  new_file
[protected, virtual]
 

Implements CVSCopy.

Definition at line 102 of file mayaCopy.cxx.

References MayaCopy::ExtraData::_type, copy_maya_file(), copy_texture(), FT_maya, FT_texture, and nout.

bool MayaCopy::copy_maya_file const Filename source,
const Filename dest,
CVSSourceDirectory dir
[private]
 

Definition at line 156 of file mayaCopy.cxx.

References MayaShader::_color, _shaders, MayaShader::_transparency, MayaShaders::clear(), collect_shaders(), extract_texture(), MayaShaders::get_num_shaders(), MayaShaders::get_shader(), and Filename::length().

Referenced by copy_file().

bool MayaCopy::copy_texture const Filename source,
const Filename dest,
CVSSourceDirectory dir
[private]
 

Definition at line 264 of file mayaCopy.cxx.

References CVSCopy::copy_binary_file().

Referenced by copy_file().

bool MayaCopy::extract_texture MayaShaderColorDef color_def,
CVSSourceDirectory dir
[private]
 

Definition at line 227 of file mayaCopy.cxx.

References MayaShaderColorDef::_has_texture, CVSCopy::_map_dir, MayaShaderColorDef::_texture, MayaCopy::ExtraData::_type, Filename::exists(), FT_texture, CVSSourceDirectory::get_rel_to(), Filename::is_regular_file(), nout, NULL, and MayaShaderColorDef::reset_maya_texture().

Referenced by copy_maya_file().

string MayaCopy::filter_filename const string &  source  )  [protected, virtual]
 

Reimplemented from CVSCopy.

Definition at line 127 of file mayaCopy.cxx.

References dot(), and size_t.

MayaCopy::PT MayaApi   )  [private]
 

void MayaCopy::run  ) 
 

Definition at line 73 of file mayaCopy.cxx.

References CVSCopy::_model_dir, ProgramBase::_program_name, CVSCopy::_source_files, MayaCopy::ExtraData::_type, FT_maya, nout, and NULL.

Referenced by main().


Member Data Documentation

bool MayaCopy::_keep_ver [private]
 

Definition at line 74 of file mayaCopy.h.

Referenced by MayaCopy().

MayaShaders MayaCopy::_shaders [private]
 

Definition at line 77 of file mayaCopy.h.

Referenced by collect_shader_for_node(), and copy_maya_file().


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