Introduction

Getting Started

Programming Guides

API Reference

Additional Resources

HOpNetwork.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 #ifndef _HOpNetwork_H
11 #define _HOpNetwork_H
12 
13 #ifdef H_PACK_8
14 #pragma pack(push)
15 #pragma pack(8)
16 #endif
17 
18 #include "HTools.h"
19 #include "HBaseOperator.h"
20 #include "HBaseView.h"
21 
23 
34 class MVO_API HOpNetwork : public HBaseOperator
35 {
36 public:
40  HOpNetwork(HBaseView * view);
41 
42  virtual ~HOpNetwork();
43 
48  virtual int OnLButtonDown(HEventInfo &hevent);
49 
54  virtual int OnLButtonDownAndMove(HEventInfo &hevent);
55 
60  virtual int OnLButtonUp(HEventInfo &hevent);
61 
62 
67  virtual int OnRButtonDown(HEventInfo &hevent);
68 
73  virtual int OnRButtonDownAndMove(HEventInfo &hevent);
74 
80  virtual int OnRButtonUp(HEventInfo &hevent);
81 
82 
83 protected:
84 
85  HC_KEY m_NetworkKey; //< The key to the network segment.
86  HC_KEY m_NodesKey; //< The key to the node segment where all the nodes are inserted.
87  HC_KEY m_SelectedNodeKey; //< The current selected node.
88  HC_KEY m_SelectedLineKey; //< The current selected connection.
89 
99  HC_KEY My_KInsert_Line(float x1, float y1, float z1, float x2, float y2, float z2);
100 
111  void My_Line_Common(HC_KEY key, float x1, float y1, float z1, float x2, float y2, float z2);
112 
122  void My_Edit_Line(HC_KEY key, float x1, float y1, float z1, float x2, float y2, float z2);
123 
127  void My_Delete_Line(HC_KEY key);
128 
135  HC_KEY My_KInsert_Node(float x, float y, float z);
136 
143  void My_Edit_Node(HC_KEY key, float x, float y, float z);
144 
151  void Show_Node_Position(HC_KEY key, float &x, float &y, float &z);
152 
154  HC_KEY Get_Node_Key(HC_KEY key);
155 
159  void My_Open_Node(HC_KEY key);
160 
164  void My_Close_Node();
165 
170  HC_KEY My_Renumber_Key(HC_KEY key);
171 
173  HC_KEY GetNextKey();
174 
175 };
176 
177 
178 #ifdef H_PACK_8
179 #pragma pack(pop)
180 #endif
181 
182 #endif
183 
184 
185 
186 
187 
188 
189 
virtual int OnLButtonDownAndMove(HEventInfo &hevent)
virtual int OnLButtonUp(HEventInfo &hevent)
The HOpNetwork class builds a network of nodes and connections.
Definition: HOpNetwork.h:34
#define HC_KEY
virtual int OnRButtonUp(HEventInfo &hevent)
The HBaseOperator class serves as a base for classes which handle user input and operate on the scene...
Definition: HBaseOperator.h:60
virtual int OnRButtonDown(HEventInfo &hevent)
The HBaseView class defines and manages a view of model information.
Definition: HBaseView.h:332
virtual int OnRButtonDownAndMove(HEventInfo &hevent)
The HEventInfo class stores and manages event information.
Definition: HEventInfo.h:207
virtual int OnLButtonDown(HEventInfo &hevent)