HTexturePickerWindow Class Reference

Public Member Functions

 HTexturePickerWindow (HBaseView *view, int DoRepeat=0, int DoCapture=1)
 
virtual int OnLButtonDown (HEventInfo &hevent)
 
virtual int OnLButtonDownAndMove (HEventInfo &hevent)
 
virtual int OnLButtonUp (HEventInfo &hevent)
 
virtual void UpdateContent ()
 
- Public Member Functions inherited from HSubwindow2
virtual void ChangeType (int type, long appearance=SW_BORDER|SW_SIZE_FIELD|SW_MOVE_FIELD|SW_DRAG_FIELD|SW_DELETE_FIELD|SW_BACKGROUND_BOX)
 
virtual void ComputeCoordinates (HBaseView *view, const char *in_system, HPoint &from, const char *out_system, HPoint &to)
 
virtual void ConvertFromSubwindowToView (HPoint &in_point, HPoint &out_point)
 
virtual void ConvertFromViewToSubwindow (HPoint const &in_point, HPoint &out_point)
 
virtual void DrawScrollBox ()
 
virtual bool FindSubwindow (HBaseView *view, HPoint pos, bool &pointerselected)
 
virtual HC_KEY FindSubwindowFromSegment (HC_KEY key)
 
virtual void GetFromKey (HC_KEY key)
 
virtual HC_KEY GetKey ()
 
virtual const char * GetName ()
 
virtual void GetPosition (float &x, float &y)
 
virtual void GetSize (float &x, float &y)
 
virtual int GetType ()
 
virtual HC_KEY GetWindowKey ()
 
 HSubwindow2 (HBaseView *view, int DoRepeat=0, int DoCapture=1)
 
 HSubwindow2 ()
 
virtual void Insert (float left, float right, float bottom, float top, char const *title=0, float minwidth=0, float minheight=0, int type=SUBWINDOW_NOTYPE, long appearance=SW_BORDER|SW_SIZE_FIELD|SW_MOVE_FIELD|SW_DRAG_FIELD|SW_DELETE_FIELD|SW_BACKGROUND_BOX|SW_SCROLL_FIELD)
 
virtual bool IsActive ()
 
virtual bool IsSubwindow (HC_KEY key)
 
virtual int ObjectMovedEvent (HBaseView *view, HC_KEY key, HPoint *p)
 
virtual int ObjectScaledEvent (HBaseView *view, HC_KEY key, HPoint &scale)
 
virtual int PostFitWorldEvent (HBaseView *view)
 
virtual int PreFitWorldEvent (HBaseView *view)
 
virtual void Reset ()
 
virtual void SetPosition (float x, float y)
 
virtual void SetSize (float deltax, float deltay)
 
virtual void SetSize (float left, float right, float bottom, float top)
 
virtual int SetupHandlesEvent (HBaseView *view, HC_KEY key, bool complex)
 
- Public Member Functions inherited from HObject
 HObject ()
 
- Public Member Functions inherited from HBaseOperator
int Capture ()
 Returns whether we are currently in mouse capture mode. See this class' constructor for a more detailed description of what this means. This method has been deprecated.
 
virtual HBaseOperatorClone ()
 
HPoint const GetFirstPoint ()
 Returns the initial selection point.
 
HPoint const GetNewPoint ()
 Returns the current selection point.
 
HBaseViewGetView ()
 Returns a pointer to the view that this operator is associated with.
 
 HBaseOperator (HBaseView *view, int DoRepeat=0, int DoCapture=1)
 
virtual int OnKeyDown (HEventInfo &hevent)
 
virtual int OnKeyUp (HEventInfo &hevent)
 
virtual int OnLButtonDblClk (HEventInfo &hevent)
 
virtual int OnLRButtonDownAndMove (HEventInfo &hevent)
 
virtual int OnMButtonDblClk (HEventInfo &hevent)
 
virtual int OnMButtonDown (HEventInfo &hevent)
 
virtual int OnMButtonDownAndMove (HEventInfo &hevent)
 
virtual int OnMButtonUp (HEventInfo &hevent)
 
virtual int OnMouseMove (HEventInfo &hevent)
 
virtual int OnMouseWheel (HEventInfo &hevent)
 
virtual int OnNoButtonDownAndMove (HEventInfo &hevent)
 
virtual int OnRButtonDblClk (HEventInfo &hevent)
 
virtual int OnRButtonDown (HEventInfo &hevent)
 
virtual int OnRButtonDownAndMove (HEventInfo &hevent)
 
virtual int OnRButtonUp (HEventInfo &hevent)
 
virtual int OnTimer (HEventInfo &hevent)
 
virtual int OnTouchesDown (HEventInfo &hevent)
 
virtual int OnTouchesMove (HEventInfo &hevent)
 
virtual int OnTouchesUp (HEventInfo &hevent)
 
virtual bool OperatorStarted ()
 Operator has been started if true, and has not been started if false.
 
int Repeat ()
 Returns whether the operation is repeatable. This method has been deprecated.
 
void SetFirstPoint (HPoint const &new_point)
 Sets the initial selection point.
 
void SetMapTouchesToMouseEvents (bool val)
 Touch Events are mapped to mouse events if true, and are not if false.
 
void SetNewPoint (HPoint const &new_point)
 Sets the current selection point.
 
void SetOperatorStarted (bool val)
 Operator has been started if true, and has not been started if false.
 
void SetView (HBaseView *new_view)
 Sets the view that this operator is associated with.
 

Additional Inherited Members

- Static Public Member Functions inherited from HSubwindow2
static const char * GetStaticName ()
 
- Protected Member Functions inherited from HSubwindow2
void BuildBorder ()
 
void BuildMagnifyController (float pos)
 
void ChangeMagnification (HBaseView *view, HPoint &p)
 
void ChangeMagnification (HBaseView *view, float magnification)
 
void CopyViewLight (HBaseView *view)
 
void GetParameters ()
 
bool IsInCloseArea (HPoint &point)
 
bool IsInDragArea (HPoint &point)
 
bool IsInMagnifyArea (HPoint &point)
 
bool IsInMoveArea (HPoint &point)
 
bool IsInScrollArea (HPoint &point)
 
bool IsInSizeArea (HPoint &point)
 
void Magnify (HBaseView *view)
 
- Protected Member Functions inherited from HBaseOperator
bool IsSpecialKey (HC_KEY key)
 
- Protected Attributes inherited from HSubwindow2
int m_Action
 
long m_Appearance
 
float m_Bottom
 
float m_Left
 
float m_MinHeight
 
float m_MinWidth
 
HC_KEY m_OuterKey
 
HPoint m_Pointer
 
HPoint m_ptLast
 
float m_Right
 
int m_ScrollHeight
 
int m_ScrollPos
 
char m_title [256]
 
float m_Top
 
int m_Type
 
HC_KEY m_WindowKey
 
- Protected Attributes inherited from HBaseOperator
bool m_bMapTouchesToMouseEvents
 Indicates if touch events are mapped to mouse events.
 
bool m_bOpStarted
 Indicates whether the operator has already 'started'. More...
 
int m_doCapture
 Integer indicating whether to capture mouse on button down and release on button up. This parameter has been deprecated.
 
int m_doRepeat
 Integer indicating if the operator is repeatable . This parameter has been deprecated.
 
HPoint m_ptFirst
 Initial selection point.
 
HPoint m_ptNew
 Current selection point.
 
HBaseViewm_pView
 The HOOPS view corresponding to this operator.
 
HCutGeometryVisibility m_TempCutGeometryVisibility
 stores original cut geometry visibility
 
HShadowMode m_TempShadowMode
 stores original shadow mode
 

Member Function Documentation

◆ OnLButtonDown()

virtual int HTexturePickerWindow::OnLButtonDown ( HEventInfo hevent)
virtual

This method handles the left button down event by determining what type of action the user is trying to take depending on the position of the mouse pointer and the characteristics of the subwindow.

Parameters
heventAn HEventInfo object containing the information about the current event.
Returns
An HOperatorReturn indicating the status of the event.

Reimplemented from HSubwindow2.

◆ OnLButtonDownAndMove()

virtual int HTexturePickerWindow::OnLButtonDownAndMove ( HEventInfo hevent)
virtual

This method handles the left button down and move event by updating the window characteristics depending on the current action identified in the OnLButtonDown event. For instance, if the action was determined to be SW_ACTION_MOVE, then this event would cause the subwindow to move to the new position indicated in hevent. If the action was SW_ACTION_SIZING, then the subwindow would be resized.

Parameters
heventAn HEventInfo object containing the information about the current event.
Returns
An HOperatorReturn indicating the status of the event.

Reimplemented from HSubwindow2.

◆ OnLButtonUp()

virtual int HTexturePickerWindow::OnLButtonUp ( HEventInfo hevent)
virtual

This method handles the left button up event. If the action is SW_ACTION_MOVE or SW_ACTION_MAGNIFYING, this method creates a new movement keyframe. If the action is SW_ACTION_SIZING, this method creates a new scale keyframe.

Parameters
heventAn HEventInfo object containing the information about the current event.
Returns
An HOperatorReturn indicating the status of the event.

Reimplemented from HSubwindow2.


The documentation for this class was generated from the following file: