HOpConstructPolyline.h
1 // Copyright (c) Tech Soft 3D, Inc.
2 //
3 // The information contained herein is confidential and proprietary to Tech Soft 3D, Inc.,
4 // and considered a trade secret as defined under civil and criminal statutes.
5 // Tech Soft 3D, Inc. shall pursue its civil and criminal remedies in the event of
6 // unauthorized use or misappropriation of its trade secrets. Use of this information
7 // by anyone other than authorized employees of Tech Soft 3D, Inc. is granted only under
8 // a written non-disclosure agreement, expressly prescribing the scope and manner of such use.
9 
10 // HOpConstructPolyline.h : interface of the HOpConstructPolyline class
11 //
12 // Draws a polyline in the view plane based on pointer input
13 // Polyline points are stored in protected member variables and ready after
14 // OnLButtonDblClk method has been called.
15 // Derived Classes should call this::OnLButtonDblClk in their overloaded implementation.
16 // Polyline points are in window space.
17 
18 
19 #ifndef _HOPCONSTRUCTPOLYLINE_H
20 #define _HOPCONSTRUCTPOLYLINE_H
21 
22 #ifdef H_PACK_8
23 #pragma pack(push)
24 #pragma pack(8)
25 #endif
26 
27 #include "HTools.h"
28 #include "HBaseOperator.h"
29 
30 
32 
45 class MVO_API HOpConstructPolyline : public HBaseOperator
46 {
47 public:
55  HOpConstructPolyline(HBaseView* view, int DoRepeat=0, int DoCapture=1);
56  virtual ~HOpConstructPolyline();
57 
63  virtual HBaseOperator * Clone();
64 
68  virtual const char * GetName();
69 
81  virtual int OnNoButtonDownAndMove(HEventInfo &hevent);
82 
89  virtual int OnLButtonDown(HEventInfo &hevent);
90 
96  virtual int OnLButtonDblClk(HEventInfo &hevent);
97 
98 protected:
99 
105 };
106 
107 #ifdef H_PACK_8
108 #pragma pack(pop)
109 #endif
110 
111 #endif
112 
113 
114 
virtual const char * GetName()
#define HC_KEY
virtual int OnNoButtonDownAndMove(HEventInfo &hevent)
HPoint m_ptLast
Definition: HOpConstructPolyline.h:102
int m_PolylineCount
Definition: HOpConstructPolyline.h:104
virtual HBaseOperator * Clone()
The HBaseOperator class serves as a base for classes which handle user input and operate on the scene...
Definition: HBaseOperator.h:60
The HPoint class is the data type of a three-dimensional point.
Definition: HGlobals.h:121
The HBaseView class defines and manages a view of model information.
Definition: HBaseView.h:332
virtual int OnLButtonDblClk(HEventInfo &hevent)
The HEventInfo class stores and manages event information.
Definition: HEventInfo.h:207
virtual int OnLButtonDown(HEventInfo &hevent)
HC_KEY m_PolylineKey
Definition: HOpConstructPolyline.h:70
The HOpConstructPolyline class draws a polyline.
Definition: HOpConstructPolyline.h:45
HPoint * m_pPolyline
Definition: HOpConstructPolyline.h:103