Public Member Functions | Protected Member Functions | Protected Attributes | Friends

SelectionProcessor Class Reference

This reference page is linked to from the following overview topics: Implementing Sub-Object Selection, Edit Mesh Selection Example.


Search for all occurrences

#include <objmode.h>

Inheritance diagram for SelectionProcessor:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  SelectionProcessor (MouseCallBack *m, IObjParam *i)
virtual CoreExport int  proc (HWND hwnd, int msg, int point, int flags, IPoint2 m)
  Called to handle the mouse event processing whenever a mouse event happens.
CoreExport void  pan (IPoint2 d)

Protected Member Functions

virtual BOOL  HitTest (ViewExp *vpt, IPoint2 *p, int type, int flags)=0
virtual BOOL  AnyHits (ViewExp *vpt)=0
virtual HCURSOR  GetTransformCursor ()=0
virtual void  Select (ViewExp *vpt, BOOL all, BOOL clear, BOOL invert)=0
virtual void  DeSelect (ViewExp *vpt, BOOL all)=0
virtual void  ClearSelection ()=0
virtual void  CloneSelected (int initialCall=TRUE)=0
virtual void  AbortClone ()=0
virtual void  AcceptClone ()=0
virtual void  SelectChildren (ViewExp *vpt)

Protected Attributes

IObjParam ip

Friends

class  PaintSelectionProcessor

Constructor & Destructor Documentation

SelectionProcessor ( MouseCallBack m,
IObjParam i 
) [inline]
            { mcallback = m; ip = i; offset = IPoint2(0,0); }

Member Function Documentation

virtual BOOL HitTest ( ViewExp vpt,
IPoint2 p,
int  type,
int  flags 
) [protected, pure virtual]
virtual BOOL AnyHits ( ViewExp vpt ) [protected, pure virtual]
virtual HCURSOR GetTransformCursor ( ) [protected, pure virtual]
virtual void Select ( ViewExp vpt,
BOOL  all,
BOOL  clear,
BOOL  invert 
) [protected, pure virtual]
virtual void DeSelect ( ViewExp vpt,
BOOL  all 
) [protected, pure virtual]
virtual void ClearSelection ( ) [protected, pure virtual]
virtual void CloneSelected ( int  initialCall = TRUE ) [protected, pure virtual]
virtual void AbortClone ( ) [protected, pure virtual]
virtual void AcceptClone ( ) [protected, pure virtual]
virtual void SelectChildren ( ViewExp vpt ) [inline, protected, virtual]
virtual CoreExport int proc ( HWND  hwnd,
int  msg,
int  point,
int  flags,
IPoint2  m 
) [virtual]

Called to handle the mouse event processing whenever a mouse event happens.

Parameters:
hwnd The window handle of the window in which the user has clicked. It is one of the viewports to which an interface can be obtained from the system. To get such interface, the window handle should be passes to the functions Interface::GetViewport() as the input. Developers should call Interface::ReleaseViewport() once they are done with the viewport interface.
msg This message describes the type of event that occurred. See Mouse Call Back Flags.
point The point number. this is 0 for the first click, 1 for the second, etc.
flags These flags describe the state of the mouse buttons. See Mouse Call Back Flags.
m The 2D screen point on which that the user has clicked. Methods in the viewport interface allow this point to be converted into a world space ray or a 3D view space point. A world space ray can be intersected with the active construction plane which results in a point on the active construction plane. See Class ViewExp.
Returns:
TRUE, indicating the proc should continue to process points; or FALSE, meaning to stop processing points. If a plug-in supplied a large number of points in a command mode that uses this mouse proc, FALSE can be returned to abort the processing before all the points have been entered.

Reimplemented from MouseCallBack.

CoreExport void pan ( IPoint2  d ) [virtual]

Friends And Related Function Documentation

friend class PaintSelectionProcessor [friend]

Member Data Documentation

IObjParam* ip [protected]

SelectionProcessor SelectionProcessor SelectionProcessor SelectionProcessor SelectionProcessor SelectionProcessor SelectionProcessor SelectionProcessor SelectionProcessor SelectionProcessor
SelectionProcessor SelectionProcessor SelectionProcessor SelectionProcessor SelectionProcessor SelectionProcessor SelectionProcessor SelectionProcessor SelectionProcessor SelectionProcessor