HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cmd_ui.C File Reference

Example for creating a native UI dialog. More...

#include <stdio.h>
#include <UT/UT_DSOVersion.h>
#include <CMD/CMD_Manager.h>
#include <CMD/CMD_Args.h>
#include <UI/UI_Value.h>
#include <SI/AP_Interface.h>
#include <time.h>
+ Include dependency graph for cmd_ui.C:

Go to the source code of this file.

Classes

class  HDK_Sample::MyDialog
 

Namespaces

 HDK_Sample
 This namespace is used to hold all HDK example source code.
 

Macros

#define MYDIALOG_CB(method)   static_cast<UI_EventMethod>(&MyDialog::method)
 Used to wrap around callback functions responding to UI_Value changes. More...
 

Functions

void CMDextendLibrary (CMD_Manager *cman)
 

Detailed Description

Example for creating a native UI dialog.

This file provides a sample command that launches an HDK-based GUI dialog. When launched as the 'cmd_ui' command from the hscript textport, it simply brings up a dialog with some UI gadgets that do nothing.

It uses a cmd_ui.ui file that can found in the same place as this file. For all platforms except OSX, cmd_ui. should be installed to:

$HOME/houdiniX.Y/config/Applications/cmd_ui/

On OSX, it should be installed to:

$HOME/Library/Preferences/houdini/X.Y/config/Applications/cmd_ui/

Definition in file cmd_ui.C.

Macro Definition Documentation

#define MYDIALOG_CB (   method)    static_cast<UI_EventMethod>(&MyDialog::method)

Used to wrap around callback functions responding to UI_Value changes.

Examples:
ui/cmd_ui.C.

Definition at line 57 of file cmd_ui.C.

Function Documentation

void CMDextendLibrary ( CMD_Manager cman)

This function gets called once during Houdini initialization to register the 'cmd_ui' hscript command.

Definition at line 205 of file cmd_ui.C.