17 #ifndef _HUtilityAnnotation_H
18 #define _HUtilityAnnotation_H
25 #include "hic_types.h"
51 virtual void AddChar(
char the_char);
54 virtual void AddChar(
unsigned short the_char);
59 virtual HC_KEY GetBackgroundSegmentKey();
65 static HC_KEY GetKey(HC_KEY);
70 virtual void GetText(
char * text,
int &length);
73 virtual int GetTextLength();
78 virtual void GetTextWithEncoding(
unsigned short * text,
int &length);
81 virtual char const*
GetType() {
return "HUtilityAnnotation";};
99 HC_KEY layer_key = INVALID_KEY,
100 int bg_type = BG_QUAD,
101 bool useArrow =
true,
102 HC_KEY * key_path = (HC_KEY*)0,
103 int key_path_length = 0);
123 HC_KEY layer_key = INVALID_KEY,
124 int bg_type = BG_QUAD,
125 bool useArrow =
true,
126 HC_KEY * key_path = (HC_KEY*)0,
127 int key_path_length = 0);
141 virtual HC_KEY InsertWithEncoding(
142 const unsigned short * text,
147 HC_KEY layer_key = INVALID_KEY,
148 int bg_type = BG_QUAD,
149 bool useArrow =
true,
150 HC_KEY * key_path = (HC_KEY*)0,
151 int key_path_length = 0);
157 static bool IsAnnotation(HC_KEY key);
161 static bool IsNote(HC_KEY noteskey);
164 static void ChangeAllFonts(
HBaseView * view,
char const *
const font, HC_KEY seg_key = INVALID_KEY);
167 virtual void MoveText(
HPoint const & pos,
HCamera const * camera = 0);
174 virtual void SetBackgroundType(
long type);
178 virtual void SetColor(
char const * color);
181 virtual void SetEdgeWeight(
float weight);
184 virtual void SetExtents(
int xpixels,
int ypixels, HC_KEY view_key);
188 virtual void SetFacePattern(
char const * pattern);
192 virtual void SetLinePattern(
char const * pattern);
195 virtual void SetLineWeight(
float weight);
201 virtual void SetNote(HC_KEY noteskey, HC_KEY view_key);
207 virtual void SetNote(HC_KEY noteskey,
HBaseView* pView);
211 virtual void SetOnTop(
bool t);
215 virtual bool GetOnTop();
218 virtual void SetText(
char const * text);
223 virtual void SetTextFont(
char const * font);
226 virtual void SetTextWithEncoding(
unsigned short const * text);
229 virtual void ShowPosition(
HPoint &p);
232 virtual void ShowPosition(
float *x,
float *y,
float *z);
235 virtual void ShowTarget(
HPoint &p);
238 virtual void ShowTarget(
float *x,
float *y,
float *z);
241 virtual void UnSetExtents();
246 virtual void Resize(
int include_count, HC_KEY *include_keys, HC_KEY view_key);
248 virtual void Resize(HC_KEY include_keys, HC_KEY view_key) {
249 HC_KEY key = include_keys;
250 Resize(1, &key, view_key);
255 virtual HPoint GetFacing()
const;
259 virtual HPoint GetUp()
const;
263 static void WindowResizeCallback(
int signal,
void * signal_data,
void * user_data);
267 static void recursive_resize(HC_KEY seg_key,
int include_count, HC_KEY *include_keys, HC_KEY view_key);
269 static void drawLineCallback (HIC_Rendition
const *rendition,
int count, HIC_DC_Point *p);
270 static void drawLineCallbackClip (HIC_Rendition
const *rendition,
int count, HIC_DC_Point *p);
271 static void drawMarkerCallback (HIC_Rendition
const *rendition, HIC_DC_Point *p);
277 static void recursive_change_font(HC_KEY seg_key,
int include_count, HC_KEY *include_keys, HC_KEY view_key,
char const *
const font);
279 void SetConditionalVisibility(
HBaseView * pView, HC_KEY
const *
const key_path,
int const key_path_length);
282 static int Clip_Line_Inverse(HIC_DC_Point *p, HIC_DC_Point *po,
int top,
int left,
int bottom,
int right);
283 static int Clip_Line(HIC_DC_Point *p, HIC_DC_Point *po,
int top,
int left,
int bottom,
int right);
287 static HC_KEY g_segmentkey;
291 HPoint m_target, m_position;
The HCamera class is the data type of a HOOPS Camera Attribute.
Definition: HUtility.h:543
virtual HC_KEY GetKey()
Definition: HUtilityAnnotation.h:62
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
virtual char const * GetType()
Definition: HUtilityAnnotation.h:81