Public Member Functions | Public Attributes

POPickPatchAttach Class Reference

Search for all occurrences

#include <patchobj.h>

Inheritance diagram for POPickPatchAttach:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  POPickPatchAttach ()
BOOL  HitTest (IObjParam *ip, HWND hWnd, ViewExp *vpt, IPoint2 m, int flags)
BOOL  Pick (IObjParam *ip, ViewExp *vpt)
void  EnterMode (IObjParam *ip)
void  ExitMode (IObjParam *ip)
HCURSOR  GetHitCursor (IObjParam *ip)
BOOL  Filter (INode *node)
PickNodeCallback GetFilter ()
BOOL  RightClick (IObjParam *ip, ViewExp *vpt)

Public Attributes

PatchObject po

Constructor & Destructor Documentation

POPickPatchAttach ( ) [inline]
{po=NULL;}

Member Function Documentation

BOOL HitTest ( IObjParam ip,
HWND  hWnd,
ViewExp vpt,
IPoint2  m,
int  flags 
) [virtual]
Remarks:
This method is called whenever the pick mode needs to hit test.
Parameters:
IObjParam *ip

An interface pointer available to call functions defined by 3ds Max.

HWND hWnd

The window handle.

ViewExp *vpt

An interface pointer that may be used to call methods associated with the viewports.

IPoint2 m

Point to check in screen coordinates.

int flags

Scene and Node Hit Testing Flags.
Returns:
Return TRUE if something was hit; otherwise FALSE.
Sample Code:
// This implementation use the Interface::PickNode method

// to perform the hit test.

        {
            return ip->PickNode(hWnd,m,&thePickFilt)? TRUE:FALSE;
        }

Implements PickModeCallback.

BOOL Pick ( IObjParam ip,
ViewExp vpt 
) [virtual]
Remarks:
This method is called when the user picks something.
Parameters:
IObjParam *ip

An interface pointer available to call functions defined by 3ds Max.

ViewExp *vpt

An interface pointer that may be used to call methods associated with the viewports. The vpt should have the result of the hit test in it.
Returns:
Return TRUE to end the pick mode; FALSE to stay in the pick mode. Note that returning TRUE will set the command mode to MOVE. When a plug-in is in the create branch, setting the command mode to move ends the creation process.

Implements PickModeCallback.

void EnterMode ( IObjParam ip ) [virtual]
Remarks:
Called when the mode is entered. The developer may provide any pre-processing here.
Parameters:
IObjParam *ip

An interface pointer available to call functions defined by 3ds Max.

Reimplemented from PickModeCallback.

void ExitMode ( IObjParam ip ) [virtual]
Remarks:
Called when the mode is exited. The developer may provide any post-processing here.
Parameters:
IObjParam *ip

An interface pointer available to call functions defined by 3ds Max.

Reimplemented from PickModeCallback.

HCURSOR GetHitCursor ( IObjParam ip ) [virtual]
Remarks:
Called to get the hit test cursor to use.
Returns:
The handle of the hit test cursor.
Default Implementation:
{return NULL;}

Reimplemented from PickModeCallback.

BOOL Filter ( INode node ) [virtual]
Remarks:
This method should return TRUE if the node passed is an acceptable hit and FALSE otherwise.
Parameters:
INode *node

The node to test.
Returns:
Return TRUE if this is an acceptable hit, FALSE otherwise.

Implements PickNodeCallback.

PickNodeCallback* GetFilter ( ) [inline, virtual]
Remarks:
This method is called if the user hits the H key while in your pick mode. You can provide a filter to filter the name list. See Class PickNodeCallback.
Returns:
A pointer to an instance of PickNodeCallback.
Default Implementation:
{return NULL;}

Reimplemented from PickModeCallback.

{return this;}
BOOL RightClick ( IObjParam ip,
ViewExp vpt 
) [inline, virtual]
Remarks:
This method is called when the user right-clicks or presses ESC.
Parameters:
IObjParam *ip

An interface pointer available to call functions defined by 3ds Max.

ViewExp *vpt

An interface pointer that may be used to call methods associated with the viewports. The vpt should have the result of the hit test in it.
Returns:
TRUE to end the pick mode, FALSE to continue picking.
Default Implementation:
{ return FALSE; }

Reimplemented from PickModeCallback.

{ UNUSED_PARAM(ip); UNUSED_PARAM(vpt); return TRUE;}

Member Data Documentation


POPickPatchAttach POPickPatchAttach POPickPatchAttach POPickPatchAttach POPickPatchAttach POPickPatchAttach POPickPatchAttach POPickPatchAttach POPickPatchAttach POPickPatchAttach
POPickPatchAttach POPickPatchAttach POPickPatchAttach POPickPatchAttach POPickPatchAttach POPickPatchAttach POPickPatchAttach POPickPatchAttach POPickPatchAttach POPickPatchAttach