Panda3D
mayaPview.h
1 // Filename: mayaPview.h
2 // Created by: drose (11Mar03)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef MAYAPVIEW_H
16 #define MAYAPVIEW_H
17 
18 #include "pandatoolbase.h"
19 #include "pandaFramework.h"
20 
21 #include "pre_maya_include.h"
22 #include <maya/MArgList.h>
23 #include <maya/MPxCommand.h>
24 #include <maya/MObject.h>
25 #include "post_maya_include.h"
26 
27 ////////////////////////////////////////////////////////////////////
28 // Class : MayaPview
29 // Description : This class serves as a plug-in to Maya to allow
30 // viewing the current Maya selection as it will be
31 // converted to Panda.
32 ////////////////////////////////////////////////////////////////////
33 class MayaPview : public MPxCommand {
34 public:
35  MayaPview();
36  virtual MStatus doIt(const MArgList &args);
37 
38  static void *creator();
39 
40 private:
41  bool convert(const NodePath &parent, bool animate);
42 };
43 
44 EXPCL_MISC MStatus initializePlugin(MObject obj);
45 EXPCL_MISC MStatus uninitializePlugin(MObject obj);
46 
47 
48 #endif
This class serves as a plug-in to Maya to allow viewing the current Maya selection as it will be conv...
Definition: mayaPview.h:33
static void * creator()
This is used to create a new instance of the plugin.
Definition: mayaPview.cxx:222
virtual MStatus doIt(const MArgList &args)
Called when the plugin command is invoked.
Definition: mayaPview.cxx:68
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
Definition: nodePath.h:165