Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpMarkupFreehand.h
1 //
2 // Copyright (c) 2000 by Tech Soft 3D, LLC.
3 // The information contained herein is confidential and proprietary to
4 // Tech Soft 3D, LLC., and considered a trade secret as defined under
5 // civil and criminal statutes. Tech Soft 3D shall pursue its civil
6 // and criminal remedies in the event of unauthorized use or misappropriation
7 // of its trade secrets. Use of this information by anyone other than
8 // authorized employees of Tech Soft 3D, LLC. is granted only under a
9 // written non-disclosure agreement, expressly prescribing the scope and
10 // manner of such use.
11 //
12 // $Id: 9e03b99dbb886e94c1d05b7dd9a476861722a18f $
13 //
14 // HOpMarkupFreehand.h : interface of the HOpMarkupFreehand class
15 //
16 // Draws a polyline in the view plane based on pointer input
17 // Polyline points are stored in protected member variables and ready after
18 // OnLButtonDblClk method has been called.
19 // Derived Classes should call this::OnLButtonDblClk in their overloaded implementation.
20 // Polyline points are in window space.
21 
22 
23 #ifndef _HOpMarkupFreehand_H
24 #define _HOpMarkupFreehand_H
25 
26 #ifdef H_PACK_8
27 #pragma pack(push)
28 #pragma pack(8)
29 #endif
30 
31 #include "HTools.h"
32 #include "HBaseOperator.h"
33 
35 
45 class MVO_API HOpMarkupFreehand : public HBaseOperator
46 {
47 public:
48 
56  HOpMarkupFreehand(HBaseView* view, int DoRepeat=0, int DoCapture=1);
57 
67  static void CreateMarkupFreehand(HBaseView *pView, const char *segment, unsigned int PolyLineLength, HPoint *pPolyline, bool emit_message);
68 
69  virtual HBaseOperator * Clone();
73  virtual const char * GetName();
74 
76 
82  virtual int OnLButtonDownAndMove(HEventInfo &hevent);
83 
90  virtual int OnLButtonDown(HEventInfo &hevent);
91 
98  virtual int OnLButtonUp(HEventInfo &hevent);
99 
100 protected:
102 };
103 
104 #ifdef H_PACK_8
105 #pragma pack(pop)
106 #endif
107 
108 #endif
109 
110 
111 
112 
113 
virtual int OnLButtonDownAndMove(HEventInfo &hevent)
virtual const char * GetName()
virtual int OnLButtonUp(HEventInfo &hevent)
#define HC_KEY
virtual HBaseOperator * Clone()
HPoint m_ptLast
most recent construction point
Definition: HOpMarkupFreehand.h:101
The HBaseOperator class serves as a base for classes which handle user input and operate on the scene...
Definition: HBaseOperator.h:65
The HPoint class is the data type of a three-dimensional point.
Definition: HGlobals.h:126
The HBaseView class defines and manages a view of model information.
Definition: HBaseView.h:337
The HEventInfo class stores and manages event information.
Definition: HEventInfo.h:214
virtual int OnLButtonDown(HEventInfo &hevent)
HC_KEY m_lPolyline
key for HOOPS polyline
Definition: HOpMarkupFreehand.h:75
The HOpMarkupFreehand inserts a 2D freehand polyline into a markup layer. If a layer is already activ...
Definition: HOpMarkupFreehand.h:45