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