Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpNetwork.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: 1496a2047c8fc482c108b17b0243d413989e15f2 $
13 //
14 
15 
16 #ifndef _HOpNetwork_H
17 #define _HOpNetwork_H
18 
19 #ifdef H_PACK_8
20 #pragma pack(push)
21 #pragma pack(8)
22 #endif
23 
24 #include "HTools.h"
25 #include "HBaseOperator.h"
26 #include "HBaseView.h"
27 
29 
40 class MVO_API HOpNetwork : public HBaseOperator
41 {
42 public:
46  HOpNetwork(HBaseView * view);
47 
48  virtual ~HOpNetwork();
49 
54  virtual int OnLButtonDown(HEventInfo &hevent);
55 
60  virtual int OnLButtonDownAndMove(HEventInfo &hevent);
61 
66  virtual int OnLButtonUp(HEventInfo &hevent);
67 
68 
73  virtual int OnRButtonDown(HEventInfo &hevent);
74 
79  virtual int OnRButtonDownAndMove(HEventInfo &hevent);
80 
86  virtual int OnRButtonUp(HEventInfo &hevent);
87 
88 
89 protected:
90 
91  HC_KEY m_NetworkKey; //< The key to the network segment.
92  HC_KEY m_NodesKey; //< The key to the node segment where all the nodes are inserted.
93  HC_KEY m_SelectedNodeKey; //< The current selected node.
94  HC_KEY m_SelectedLineKey; //< The current selected connection.
95 
105  HC_KEY My_KInsert_Line(float x1, float y1, float z1, float x2, float y2, float z2);
106 
117  void My_Line_Common(HC_KEY key, float x1, float y1, float z1, float x2, float y2, float z2);
118 
128  void My_Edit_Line(HC_KEY key, float x1, float y1, float z1, float x2, float y2, float z2);
129 
133  void My_Delete_Line(HC_KEY key);
134 
141  HC_KEY My_KInsert_Node(float x, float y, float z);
142 
149  void My_Edit_Node(HC_KEY key, float x, float y, float z);
150 
157  void Show_Node_Position(HC_KEY key, float &x, float &y, float &z);
158 
160  HC_KEY Get_Node_Key(HC_KEY key);
161 
165  void My_Open_Node(HC_KEY key);
166 
170  void My_Close_Node();
171 
176  HC_KEY My_Renumber_Key(HC_KEY key);
177 
179  HC_KEY GetNextKey();
180 
181 };
182 
183 
184 #ifdef H_PACK_8
185 #pragma pack(pop)
186 #endif
187 
188 #endif
189 
190 
191 
192 
193 
194 
195 
virtual int OnLButtonDownAndMove(HEventInfo &hevent)
virtual int OnLButtonUp(HEventInfo &hevent)
#define HC_KEY
The HOpNetwork class builds a network of nodes and connections.
Definition: HOpNetwork.h:40
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:65
virtual int OnRButtonDown(HEventInfo &hevent)
The HBaseView class defines and manages a view of model information.
Definition: HBaseView.h:337
virtual int OnRButtonDownAndMove(HEventInfo &hevent)
The HEventInfo class stores and manages event information.
Definition: HEventInfo.h:214
virtual int OnLButtonDown(HEventInfo &hevent)