#include <mrShaderButtonHandler.h>
Public Member Functions
|
|
mrShaderButtonHandler (unsigned int applyTypes, int
ctrlID) |
virtual |
~mrShaderButtonHandler () |
void |
OnInitDialog (HWND hDialog) |
void |
OnCommand () |
void |
OnClose () |
void |
Update () |
void |
Enable (bool enable) |
virtual
SClass_ID |
GetDragType (HWND hwnd, POINT p) |
virtual
ReferenceTarget * |
GetInstance (HWND hwnd, POINT p, SClass_ID
type) |
virtual
BOOL |
OkToDrop (ReferenceTarget *dropThis, HWND
hfrom, HWND hto, POINT p, SClass_ID
type, BOOL isNew=FALSE) |
virtual
int |
SlotOwner () |
virtual
void |
Drop (ReferenceTarget *dropThis, HWND
hwnd, POINT p, SClass_ID
type, DADMgr
*srcMgr=NULL, BOOL bSrcClone=FALSE) |
virtual
BOOL |
AutoTooltip () |
Protected Member Functions
|
virtual
void |
SetShader (Texmap
*shader)=0 |
virtual
Texmap * |
GetShader ()=0 |
virtual const
MCHAR * |
GetNoneString ()=0 |
Constructor & Destructor Documentation
: m_shaderFilter(applyTypes, TYPE_MAX_TYPE, true),
m_ctrlID(ctrlID),
m_dialogHWnd(NULL)
{
}
Member Function Documentation
void OnInitDialog |
( |
HWND |
hDialog |
) |
|
void Enable |
( |
bool |
enable |
) |
|
SClass_ID
GetDragType |
( |
HWND |
hwnd, |
|
|
POINT |
p |
|
) |
|
[virtual] |
- Parameters:
- HWND hwnd
The source window handle
POINT p
The screen point (relative to the window upper left as 0,0).
Implements DADMgr.
- Parameters:
- HWND hwnd
The source window where the mouse down occurred.
POINT p
The point to drag from (position within hwnd).
SClass_ID type
The super class ID of the item to create.
Implements DADMgr.
BOOL OkToDrop |
( |
ReferenceTarget * |
dropThis, |
|
|
HWND |
hfrom, |
|
|
HWND |
hto, |
|
|
POINT |
p, |
|
|
SClass_ID |
type, |
|
|
BOOL |
isNew =
FALSE |
|
) |
|
[virtual] |
- Parameters:
-
ReferenceTarget *dropThis
A pointer to the item to check.
HWND hfrom
The window handle of the source.
HWND hto
The window handle of the destination.
POINT p
The point to check.
SClass_ID type
The super class ID of dropThis.
BOOL isNew = FALSE
TRUE if the item is a new instance; otherwise FALSE.
- Returns:
- TRUE if the specified item can be dropped; otherwise
FALSE.
Implements DADMgr.
int SlotOwner |
( |
|
) |
[virtual] |
- Returns:
- One of the following values:
OWNER_MEDIT_SAMPLE
From a materials editor sample slot.
OWNER_NODE
From a node in the scene.
OWNER_MTL_TEX
From a button in a material or texture.
OWNER_SCENE
From a button in a light, modifier, atmospheric effect, etc.
OWNER_BROWSE_NEW
From the browser in the new category.
OWNER_BROWSE_LIB
From the browser in the library category.
OWNER_BROWSE_MEDIT
From the browser in the materials editor category.
OWNER_BROWSE_SCENE
From the browser in the scene category.
OWNER_MATERIAL_EXPLORER
From the material explorer.
- Default Implementation:
- { return OWNER_MTL_TEX; }
Reimplemented from DADMgr.
- Parameters:
-
ReferenceTarget *dropThis
A pointer to the item to drop.
HWND hwnd
The destination window handle (where the mouse was released).
POINT p
The destination point (within hwnd).
SClass_ID type
The type of object being dropped -- the super class ID of
dropThis.
DADMgr* srcMgr
The source DADMgr
pointer. NULL by default.
BOOL bSrcClone
TRUE if the dropThis is a clone of the drag source object,
FALSE otherwise. FALSE by default
Implements DADMgr.
BOOL AutoTooltip |
( |
|
) |
[virtual] |
- Default Implementation:
- { return FALSE; }
Reimplemented from DADMgr.
virtual void SetShader |
( |
Texmap * |
shader |
) |
[protected, pure virtual] |
virtual Texmap* GetShader |
( |
|
) |
[protected, pure virtual] |
virtual const MCHAR* GetNoneString |
( |
|
) |
[protected, pure virtual] |