interface.h

Go to the documentation of this file.
00001 
00002 //**************************************************************************/
00003 // Copyright (c) 2008 Autodesk, Inc.
00004 // All rights reserved.
00005 //
00006 // Use of this software is subject to the terms of the Autodesk license
00007 // agreement provided at the time of installation or download, or which
00008 // otherwise accompanies this software in either electronic or hard copy form.
00009 //
00010 //**************************************************************************/
00011 // DESCRIPTION:
00012 // CREATED: October 2008
00013 //**************************************************************************/
00014 
00015 #ifndef __MUDBOXSDK_INTERFACE_H__
00016 #define __MUDBOXSDK_INTERFACE_H__
00017 #pragma once
00018 
00019 
00020 namespace mudbox
00021 {
00022     class MBDLL_DECL Interface
00023     {
00024     public:
00025 
00026         enum LayerUIType
00027         {
00028             ltSculptUI,     
00029             ltPaintUI       
00030         };
00031 
00032 
00033         void ShowNewPaintLayerDialog( void );
00034 
00036         void ActivateLayerSystem( 
00037             LayerUIType eType  
00038             );
00040         bool RestorePreviousBrush( void );
00041 
00047         void Load( 
00048             QString filename, 
00049             Scene::LoadData& cData  
00050             );
00051 
00053         void ShowProperties( 
00054             Node *pNode,    
00055             bool bFloating  
00056             ) const;
00057 
00061         bool CreateNewScene(); 
00062     };
00063 
00068     class MBDLL_DECL Action : public Node
00069     {
00070         DECLARE_CLASS;
00071 
00072         enum Hotkeys
00073         {
00074             keyAlt = 0x00010000,        
00075             keyShift = 0x00020000,  
00076             keyCtrl = 0x00040000,   
00077             keyMeta = 0x00080000,
00078             keyLMB = 0x00000100,    
00079             keyMMB   = 0x00000200,  
00080             keyRMB = 0x00000400,    
00081             keyWheel = 0x00000800,
00082             keyLeft = 0x01000012,   
00083             keyUp = 0x01000013,     
00084             keyRight = 0x01000014,  
00085             keyDown = 0x01000015    
00086         };
00087 
00088     public:
00089         Action( void );
00090         ~Action( void );
00091 
00093         virtual int DefaultHotkey( void ) const;
00095         virtual bool IsSticky( void ) const;
00097         virtual bool IsHide( void ) const;
00098 
00100         virtual bool IsEnabled( void ) const;
00101 
00103         virtual void SetEnabled( bool bEnabled );
00104 
00106         virtual void OnActivate( 
00107             bool bRepeat    
00108             );
00110         virtual void OnDeactivate( void );
00112         virtual void OnCursorMove( 
00113             float fXPosition,   
00114             float fYPosition,   
00115             float fXChange, 
00116             float fYChange  
00117             );
00119         virtual void OnOptions( void );
00120     };
00121 };
00122 
00123 #endif
00124