narrowPolyViewerCmd.h
#ifndef NARROWPOLYVIEWERCMD_H
#define NARROWPOLYVIEWERCMD_H
#include <maya/MDagPathArray.h>
#include <maya/MPxModelEditorCommand.h>
#include "narrowPolyViewer.h"
#define kInitFlag                       "-in"
#define kInitFlagLong           "-initilize"
#define kResultsFlag            "-r"
#define kResultsFlagLong        "-results"
#define kClearFlag                      "-cl"
#define kClearFlagLong          "-clear"
#define kToleranceFlag          "-tol"
#define kToleranceFlagLong      "-tolerance"
#define kViewCmdName            "narrowPolyViewer"
class MPx3dModelView;
class MObject;
class MDagPath;
class narrowPolyViewerCmd: public MPxModelEditorCommand
{
public:
        typedef MPxModelEditorCommand ParentClass;
                                                narrowPolyViewerCmd();
        virtual                         ~narrowPolyViewerCmd();
        static void*            creator();
        virtual MStatus         doEditFlags();
        virtual MStatus         doQueryFlags();
        virtual MStatus         appendSyntax();
protected:
        MStatus initTests(narrowPolyViewer &view);
        MStatus testResults(narrowPolyViewer &view);
        MStatus clearResults(narrowPolyViewer &view);
        MDagPathArray           fCameraList;
private:
        static const char*  className() { return "narrowPolyViewerCmd"; }
};
#endif