Introduction

Getting Started

Programming Guides

API Reference

Additional Resources

HOpMarkupFreehand3D.h
1 // Copyright (c) Tech Soft 3D
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 // HOpMarkupFreehand3D.h : interface of the HOpMarkupFreehand3D 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 #ifndef _HOpMarkupFreehand3D_H
19 #define _HOpMarkupFreehand3D_H
20 
21 #ifdef H_PACK_8
22 #pragma pack(push)
23 #pragma pack(8)
24 #endif
25 
26 #include "HTools.h"
27 #include "HBaseOperator.h"
28 
30 
40 class MVO_API HOpMarkupFreehand3D : public HBaseOperator
41 {
42 public:
50  HOpMarkupFreehand3D(HBaseView* view, int DoRepeat=0, int DoCapture=1);
51 
60  static void CreateMarkupFreehand(HBaseView *pView, const char *segment, unsigned int PolyLineLength, HPoint *pPolyline, bool emit_message);
61 
62  HBaseOperator * Clone();
66  virtual const char * GetName();
67 
69 
70 
79  virtual int OnLButtonDownAndMove(HEventInfo &hevent);
80 
88  virtual int OnLButtonDown(HEventInfo &hevent);
89 
96  virtual int OnLButtonUp(HEventInfo &hevent);
97 
98 protected:
99 
102  bool IsModelGeometry();
103 
105 };
106 
107 
108 #ifdef H_PACK_8
109 #pragma pack(pop)
110 #endif
111 
112 #endif
113 
114 
115 
virtual int OnLButtonDownAndMove(HEventInfo &hevent)
virtual const char * GetName()
HPoint m_ptLast
most recent construction point
Definition: HOpMarkupFreehand3D.h:104
virtual int OnLButtonUp(HEventInfo &hevent)
#define HC_KEY
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
The HEventInfo class stores and manages event information.
Definition: HEventInfo.h:207
virtual int OnLButtonDown(HEventInfo &hevent)
The HOpMarkupFreehand3D inserts a 2D freehand polyline into a markup layer. If a layer is already act...
Definition: HOpMarkupFreehand3D.h:40
HC_KEY m_lPolyline
key for HOOPS polyline
Definition: HOpMarkupFreehand3D.h:68