ConeGUIPluginInfo.C 2.64 KB
Newer Older
hrchilds's avatar
hrchilds committed
1 2 3 4 5 6 7 8
// ************************************************************************* //
//  File: ConeGUIPluginInfo.C
// ************************************************************************* //

#include <ConePluginInfo.h>
#include <ConeAttributes.h>
#include <QvisConeWindow.h>

hrchilds's avatar
hrchilds committed
9 10 11 12
#if defined(__APPLE__)
#define GetGUIInfo Cone_GetGUIInfo
#endif

hrchilds's avatar
hrchilds committed
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
// ****************************************************************************
//  Function:  GetGUIInfo
//
//  Purpose:
//    Return a new GUIPluginInfo for the Cone operator.
//
//  Programmer: whitlocb -- generated by xml2info
//  Creation:   Thu Mar 13 13:21:02 PST 2003
//
// ****************************************************************************
extern "C" GUIOperatorPluginInfo* GetGUIInfo()
{
    return new ConeGUIPluginInfo;
}

// ****************************************************************************
//  Method: ConeGUIPluginInfo::GetMenuName
//
//  Purpose:
//    Return a pointer to the name to use in the GUI menu.
//
//  Returns:    A pointer to the name to use in the GUI menu.
//
//  Programmer: whitlocb -- generated by xml2info
//  Creation:   Thu Mar 13 13:21:02 PST 2003
//
// ****************************************************************************

const char *
ConeGUIPluginInfo::GetMenuName() const
{
    return "Cone";
}


// ****************************************************************************
//  Method: ConeGUIPluginInfo::CreatePluginWindow
//
//  Purpose:
//    Return a pointer to an operator's attribute window.
//
//  Arguments:
//    type      The type of the operator.
//    attr      The attribute subject for the operator.
//    notepad   The notepad to use for posting the window.
//
//  Returns:    A pointer to the operator's attribute window.
//
//  Programmer: whitlocb -- generated by xml2info
//  Creation:   Thu Mar 13 13:21:02 PST 2003
//
// ****************************************************************************

QvisPostableWindowObserver *
ConeGUIPluginInfo::CreatePluginWindow(int type, AttributeSubject *attr,
    QvisNotepadArea *notepad)
{
    return new QvisConeWindow(type, (ConeAttributes *)attr,
        "Cone operator attributes", "Cone operator", notepad);
}

// ****************************************************************************
//  Method: ConeGUIPluginInfo::XPMIconData
//
//  Purpose:
//    Return a pointer to the icon data.
//
//  Returns:    A pointer to the icon data.
//
//  Programmer: whitlocb -- generated by xml2info
//  Creation:   Thu Mar 13 13:21:02 PST 2003
//
// ****************************************************************************

#include <Cone.xpm>
const char **
ConeGUIPluginInfo::XPMIconData() const
{
    return Cone_xpm;
}