Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HUtilityAnnotationMeasure.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: 4a617e2b0b9493880c3d7897258ef2fa0db44960 $
13 //
14 
15 // HUtilityAnnotationMeasure.h : interface of the HUtilityAnnotationMeasure class
16 
17 #ifndef _HUtilityAnnotationMeasure_H
18 #define _HUtilityAnnotationMeasure_H
19 
20 #ifdef H_PACK_8
21 #pragma pack(push)
22 #pragma pack(8)
23 #endif
24 
25 #include "hic_types.h"
26 
27 #include "HTools.h"
28 #include "HUtilityAnnotation.h"
29 
31 
35 {
36 public:
38  virtual char const* GetType() {return "HUtilityAnnotationMeasure";};
39 
51  virtual HC_KEY Insert(
52  HPoint target,
53  HPoint position,
54  HC_KEY AnnotateThis,
55  HBaseView * pView,
56  HC_KEY layer_key = INVALID_KEY,
57  int bg_type = BG_QUAD,
58  bool useArrow = true,
59  HC_KEY * key_path = (HC_KEY*)0,
60  int key_path_length = 0);
61 
74  virtual HC_KEY Insert(
75  char const * text,
76  HPoint target,
77  HPoint position,
78  HC_KEY AnnotateThis,
79  HBaseView * pView,
80  HC_KEY layer_key = INVALID_KEY,
81  int bg_type = BG_QUAD,
82  bool useArrow = true,
83  HC_KEY * key_path = (HC_KEY*)0,
84  int key_path_length = 0);
85 
98  virtual HC_KEY InsertWithEncoding(
99  unsigned short const * text,
100  HPoint target,
101  HPoint position,
102  HC_KEY AnnotateThis,
103  HBaseView * pView,
104  HC_KEY layer_key = INVALID_KEY,
105  int bg_type = BG_QUAD,
106  bool useArrow = true,
107  HC_KEY * key_path = (HC_KEY*)0,
108  int key_path_length = 0);
109 
111  virtual void MoveText(HPoint position);
112 
114  virtual void MoveText(HPoint A, HPoint B);
115 
117  static bool IsMeasurement(HC_KEY key);
118 
121  virtual void SetNote(HC_KEY noteskey, HBaseView *view);
122  static void drawLineCallbackDummy (HIC_Rendition const *rendition,int count, HIC_DC_Point *p);
123 
124 protected:
125  static void mid_point(HPoint &A, HPoint &B, HPoint &mid);
126 
127  HPoint m_pnt_a1, m_pnt_b1;
128  HPoint m_pnt_a2, m_pnt_b2, m_position;
129 };
130 
131 
132 #ifdef H_PACK_8
133 #pragma pack(pop)
134 #endif
135 
136 #endif
137 
138 
139 
#define HC_KEY
virtual void MoveText(HPoint const &pos, HCamera const *camera=0)
virtual HC_KEY InsertWithEncoding(const unsigned short *text, HPoint target, HPoint position, HC_KEY AnnotateThis, HBaseView *pView, HC_KEY layer_key=INVALID_KEY, int bg_type=BG_QUAD, bool useArrow=true, HC_KEY *key_path=(HC_KEY *) 0, int key_path_length=0)
virtual char const * GetType()
Definition: HUtilityAnnotationMeasure.h:38
The HPoint class is the data type of a three-dimensional point.
Definition: HGlobals.h:126
The HBaseView class defines and manages a view of model information.
Definition: HBaseView.h:337
The HUtilityAnnotation class defines and manages annotations.
Definition: HUtilityAnnotation.h:43
The HUtilityAnnotationMeasure class defines and manages annotations.
Definition: HUtilityAnnotationMeasure.h:34
virtual void SetNote(HC_KEY noteskey, HC_KEY view_key)
virtual HC_KEY Insert(HPoint target, HPoint position, HC_KEY AnnotateThis, HBaseView *pView, HC_KEY layer_key=INVALID_KEY, int bg_type=BG_QUAD, bool useArrow=true, HC_KEY *key_path=(HC_KEY *) 0, int key_path_length=0)