Panda3D
|
00001 // Filename: mayaPview.h 00002 // Created by: drose (11Mar03) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef MAYAPVIEW_H 00016 #define MAYAPVIEW_H 00017 00018 #include "pandatoolbase.h" 00019 #include "pandaFramework.h" 00020 00021 #include "pre_maya_include.h" 00022 #include <maya/MArgList.h> 00023 #include <maya/MPxCommand.h> 00024 #include <maya/MObject.h> 00025 #include "post_maya_include.h" 00026 00027 //////////////////////////////////////////////////////////////////// 00028 // Class : MayaPview 00029 // Description : This class serves as a plug-in to Maya to allow 00030 // viewing the current Maya selection as it will be 00031 // converted to Panda. 00032 //////////////////////////////////////////////////////////////////// 00033 class MayaPview : public MPxCommand { 00034 public: 00035 MayaPview(); 00036 virtual MStatus doIt(const MArgList &args); 00037 00038 static void *creator(); 00039 00040 private: 00041 bool convert(const NodePath &parent, bool animate); 00042 }; 00043 00044 EXPCL_MISC MStatus initializePlugin(MObject obj); 00045 EXPCL_MISC MStatus uninitializePlugin(MObject obj); 00046 00047 00048 #endif