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

# MayaDAGUtility.h

Go to the documentation of this file.

    00001 //------------------------------------------------------------------------------
    00002 // Lamp : Open source game middleware
    00003 // Copyright (C) 2004  Junpei Ohtani ( Email : junpee@users.sourceforge.jp )
    00004 //
    00005 // This library is free software; you can redistribute it and/or
    00006 // modify it under the terms of the GNU Lesser General Public
    00007 // License as published by the Free Software Foundation; either
    00008 // version 2.1 of the License, or (at your option) any later version.
    00009 //
    00010 // This library is distributed in the hope that it will be useful,
    00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
    00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00013 // Lesser General Public License for more details.
    00014 //
    00015 // You should have received a copy of the GNU Lesser General Public
    00016 // License along with this library; if not, write to the Free Software
    00017 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    00018 //------------------------------------------------------------------------------
    00019
    00020 /** @file
    00021  * MayaDAGユーティリティヘッダ
    00022  * @author Junpee
    00023  */
    00024
    00025 #ifndef MAYA_DAG_UTILITY_H_
    00026 #define MAYA_DAG_UTILITY_H_
    00027
    00028 namespace LampForMaya{
    00029
    00030 //------------------------------------------------------------------------------
    00031 /**
    00032  * MayaDAGユーティリティ
    00033  */
    00034 class MayaDAGUtility{
    00035 public:
    00036     /**
    00037      * 名前の取得
    00038      * @param node DAGノード
    00039      * @return 名前
    00040      */
    00041     static String getName(const MObject& node);
    00042
    00043     /**
    00044      * 名前の取得
    00045      * @param dagPath DAGパス
    00046      * @return 名前
    00047      */
    00048     static String getName(const MDagPath& dagPath);
    00049
    00050     /**
    00051      * フルパスの取得
    00052      * @param node DAGノード
    00053      * @return フルパス
    00054      */
    00055     static String getFullPath(const MObject& node);
    00056
    00057     /**
    00058      * フルパスの取得
    00059      * @param dagPath DAGパス
    00060      * @return フルパス
    00061      */
    00062     static String getFullPath(const MDagPath& dagPath);
    00063
    00064     /**
    00065      * プラグの取得
    00066      * @param node ディペンデンシノード
    00067      * @param plugName プラグ名
    00068      * @return プラグ
    00069      */
    00070     static MPlug getPlug(const MObject& node, const String& plugName);
    00071
    00072     /**
    00073      * プラグの取得
    00074      * @param dagPath DAGパス
    00075      * @param plugName プラグ名
    00076      * @return プラグ
    00077      */
    00078     static MPlug getPlug(const MDagPath& dagPath, const String& plugName);
    00079
    00080 private:
    00081     // コンストラクタの隠蔽
    00082     MayaDAGUtility();
    00083
    00084 };
    00085
    00086 //------------------------------------------------------------------------------
    00087 } // End of namespace LampForMaya
    00088 #endif // End of MAYA_DAG_UTILITY_H_
    00089 //------------------------------------------------------------------------------