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

maya_funcs.h File Reference

#include "pandatoolbase.h"
#include "luse.h"
#include "config_maya.h"
#include "pre_maya_include.h"
#include <maya/MFnAttribute.h>
#include <maya/MPlug.h>
#include <maya/MStatus.h>
#include <maya/MFnDependencyNode.h>
#include <maya/MObject.h>
#include <maya/MString.h>
#include <maya/MVector.h>
#include "post_maya_include.h"
#include "maya_funcs.I"
#include "maya_funcs.T"

Go to the source code of this file.

Functions

bool get_maya_plug (MObject &node, const string &attribute_name, MPlug &plug)
template<class ValueType> bool get_maya_attribute (MObject &node, const string &attribute_name, ValueType &value)
template<class ValueType> bool set_maya_attribute (MObject &node, const string &attribute_name, ValueType &value)
bool has_attribute (MObject &node, const string &attribute_name)
bool get_bool_attribute (MObject &node, const string &attribute_name, bool &value)
bool get_angle_attribute (MObject &node, const string &attribute_name, double &value)
bool get_vec2f_attribute (MObject &node, const string &attribute_name, LVecBase2f &value)
bool get_vec3f_attribute (MObject &node, const string &attribute_name, LVecBase3f &value)
bool get_vec2d_attribute (MObject &node, const string &attribute_name, LVecBase2d &value)
bool get_vec3d_attribute (MObject &node, const string &attribute_name, LVecBase3d &value)
bool get_mat4d_attribute (MObject &node, const string &attribute_name, LMatrix4d &value)
bool get_enum_attribute (MObject &node, const string &attribute_name, string &value)
bool get_string_attribute (MObject &node, const string &attribute_name, string &value)
bool set_string_attribute (MObject &node, const string &attribute_name, const string &value)
void describe_maya_attribute (MObject &node, const string &attribute_name)
string string_mfndata_type (MFnData::Type type)
void list_maya_attributes (MObject &node)
INLINE ostream & operator<< (ostream &out, const MString &str)
INLINE ostream & operator<< (ostream &out, const MVector &vec)


Function Documentation

void describe_maya_attribute MObject &  node,
const string &  attribute_name
 

Definition at line 442 of file maya_funcs.cxx.

Referenced by get_angle_attribute(), get_bool_attribute(), get_string_attribute(), get_vec2d_attribute(), get_vec2f_attribute(), get_vec3d_attribute(), get_vec3f_attribute(), and set_string_attribute().

bool get_angle_attribute MObject &  node,
const string &  attribute_name,
double &  value
 

Definition at line 124 of file maya_funcs.cxx.

References describe_maya_attribute(), and get_maya_attribute().

Referenced by MayaShaderColorDef::read_surface_color().

bool get_bool_attribute MObject &  node,
const string &  attribute_name,
bool &  value
 

Definition at line 100 of file maya_funcs.cxx.

References describe_maya_attribute(), get_maya_attribute(), and has_attribute().

Referenced by MayaToEggConverter::make_polyset(), and MayaShaderColorDef::read_surface_color().

bool get_enum_attribute MObject &  node,
const string &  attribute_name,
string &  value
 

Definition at line 322 of file maya_funcs.cxx.

References get_maya_plug(), and index.

Referenced by MayaToEggConverter::r_get_egg_group(), and MayaShaderColorDef::read_surface_color().

bool get_mat4d_attribute MObject &  node,
const string &  attribute_name,
LMatrix4d &  value
 

Definition at line 291 of file maya_funcs.cxx.

References get_maya_attribute(), and matrix.

Referenced by MayaShaderColorDef::read_surface_color().

template<class ValueType>
bool get_maya_attribute MObject &  node,
const string &  attribute_name,
ValueType &  value
 

Referenced by get_angle_attribute(), get_bool_attribute(), get_mat4d_attribute(), get_string_attribute(), get_vec2d_attribute(), get_vec2f_attribute(), get_vec3d_attribute(), get_vec3f_attribute(), and set_string_attribute().

bool get_maya_plug MObject &  node,
const string &  attribute_name,
MPlug &  plug
 

Definition at line 42 of file maya_funcs.cxx.

Referenced by get_enum_attribute().

bool get_string_attribute MObject &  node,
const string &  attribute_name,
string &  value
 

Definition at line 365 of file maya_funcs.cxx.

References data, describe_maya_attribute(), and get_maya_attribute().

Referenced by MayaShaderColorDef::read_surface_color().

bool get_vec2d_attribute MObject &  node,
const string &  attribute_name,
LVecBase2d &  value
 

Definition at line 218 of file maya_funcs.cxx.

References data, describe_maya_attribute(), and get_maya_attribute().

bool get_vec2f_attribute MObject &  node,
const string &  attribute_name,
LVecBase2f &  value
 

Definition at line 144 of file maya_funcs.cxx.

References data, describe_maya_attribute(), and get_maya_attribute().

Referenced by MayaShaderColorDef::read_surface_color().

bool get_vec3d_attribute MObject &  node,
const string &  attribute_name,
LVecBase3d &  value
 

Definition at line 255 of file maya_funcs.cxx.

References data, describe_maya_attribute(), and get_maya_attribute().

Referenced by MayaToEggConverter::make_locator().

bool get_vec3f_attribute MObject &  node,
const string &  attribute_name,
LVecBase3f &  value
 

Definition at line 181 of file maya_funcs.cxx.

References data, describe_maya_attribute(), and get_maya_attribute().

Referenced by MayaShaderColorDef::read_surface_color().

bool has_attribute MObject &  node,
const string &  attribute_name
 

Definition at line 77 of file maya_funcs.cxx.

Referenced by get_bool_attribute().

void list_maya_attributes MObject &  node  ) 
 

Definition at line 543 of file maya_funcs.cxx.

References string_mfndata_type().

INLINE ostream& operator<< ostream &  out,
const MVector &  vec
 

INLINE ostream& operator<< ostream &  out,
const MString &  str
 

template<class ValueType>
bool set_maya_attribute MObject &  node,
const string &  attribute_name,
ValueType &  value
 

Referenced by set_string_attribute().

bool set_string_attribute MObject &  node,
const string &  attribute_name,
const string &  value
 

Definition at line 396 of file maya_funcs.cxx.

References data, describe_maya_attribute(), get_maya_attribute(), and set_maya_attribute().

Referenced by MayaShaderColorDef::reset_maya_texture().

string string_mfndata_type MFnData::Type  type  ) 
 

Definition at line 465 of file maya_funcs.cxx.

Referenced by list_maya_attributes().


Generated on Fri Apr 18 01:00:21 2003 for Panda-Tool by doxygen1.3