Introduction

Getting Started

Programming Guides

API Reference

Additional Resources

HOpConstructNurbsCurve.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 // HOpConstructNurbsCurve.h - interface for the HOpConstructNurbsCurve class
11 // started GP 11/1/99
12 
13 #ifndef _HOPConstructNURBSCURVE_H
14 #define _HOPConstructNURBSCURVE_H
15 
16 #ifdef H_PACK_8
17 #pragma pack(push)
18 #pragma pack(8)
19 #endif
20 
21 #include "HTools.h"
22 #include "HOpConstructPolyline.h"
23 
24 
26 
42 {
43 protected:
44  int m_Degree; // The order of the nurbs curve.
45  float* m_WeightsArray; // The array of weight values applied to the control points.
46  float* m_KnotsArray; // The array of knot values applied to the control points.
47  int m_StartU;
48  int m_EndU;
49  bool m_bFirstTimeThrough;
50 
51 public:
59  HOpConstructNurbsCurve(HBaseView* view, int DoRepeat=0, int DoCapture=1);
60  virtual ~HOpConstructNurbsCurve();
61 
67  virtual HBaseOperator * Clone();
71  virtual const char * GetName();
72 
73 
83  virtual int OnNoButtonDownAndMove(HEventInfo &hevent);
84 
92  virtual int OnLButtonDown(HEventInfo &hevent);
93 
100  virtual int OnLButtonDblClk(HEventInfo &hevent);
101 
107  virtual int OnMButtonDown(HEventInfo &hevent);
108 };
109 
110 
111 #ifdef H_PACK_8
112 #pragma pack(pop)
113 #endif
114 
115 #endif
116 
117 
118 
virtual int OnMButtonDown(HEventInfo &hevent)
virtual int OnLButtonDblClk(HEventInfo &hevent)
The HBaseOperator class serves as a base for classes which handle user input and operate on the scene...
Definition: HBaseOperator.h:60
The HBaseView class defines and manages a view of model information.
Definition: HBaseView.h:332
virtual HBaseOperator * Clone()
The HEventInfo class stores and manages event information.
Definition: HEventInfo.h:207
virtual int OnNoButtonDownAndMove(HEventInfo &hevent)
The HOpConstructPolyline class draws a polyline.
Definition: HOpConstructPolyline.h:45
virtual int OnLButtonDown(HEventInfo &hevent)
The HOpConstructNurbsCurve class provides support for constructing a Non Uniform Rational B-Spline (N...
Definition: HOpConstructNurbsCurve.h:41
virtual const char * GetName()