14 #ifndef _HUtilityAnnotation_H
15 #define _HUtilityAnnotation_H
22 #include "hic_types.h"
48 virtual void AddChar(
char the_char);
51 virtual void AddChar(
unsigned short the_char);
56 virtual HC_KEY GetBackgroundSegmentKey();
62 static HC_KEY GetKey(HC_KEY);
67 virtual void GetText(
char * text,
int &length);
70 virtual int GetTextLength();
75 virtual void GetTextWithEncoding(
unsigned short * text,
int &length);
78 virtual char const*
GetType() {
return "HUtilityAnnotation";};
96 HC_KEY layer_key = INVALID_KEY,
97 int bg_type = BG_QUAD,
99 HC_KEY * key_path = (HC_KEY*)0,
100 int key_path_length = 0);
120 HC_KEY layer_key = INVALID_KEY,
121 int bg_type = BG_QUAD,
122 bool useArrow =
true,
123 HC_KEY * key_path = (HC_KEY*)0,
124 int key_path_length = 0);
138 virtual HC_KEY InsertWithEncoding(
139 const unsigned short * text,
144 HC_KEY layer_key = INVALID_KEY,
145 int bg_type = BG_QUAD,
146 bool useArrow =
true,
147 HC_KEY * key_path = (HC_KEY*)0,
148 int key_path_length = 0);
154 static bool IsAnnotation(HC_KEY key);
158 static bool IsNote(HC_KEY noteskey);
161 static void ChangeAllFonts(
HBaseView * view,
char const *
const font, HC_KEY seg_key = INVALID_KEY);
164 virtual void MoveText(
HPoint const & pos,
HCamera const * camera = 0);
171 virtual void SetBackgroundType(
long type);
175 virtual void SetColor(
char const * color);
178 virtual void SetEdgeWeight(
float weight);
181 virtual void SetExtents(
int xpixels,
int ypixels, HC_KEY view_key);
185 virtual void SetFacePattern(
char const * pattern);
189 virtual void SetLinePattern(
char const * pattern);
192 virtual void SetLineWeight(
float weight);
198 virtual void SetNote(HC_KEY noteskey, HC_KEY view_key);
204 virtual void SetNote(HC_KEY noteskey,
HBaseView* pView);
208 virtual void SetOnTop(
bool t);
212 virtual bool GetOnTop();
215 virtual void SetText(
char const * text);
220 virtual void SetTextFont(
char const * font);
223 virtual void SetTextWithEncoding(
unsigned short const * text);
226 virtual void ShowPosition(
HPoint &p);
229 virtual void ShowPosition(
float *x,
float *y,
float *z);
232 virtual void ShowTarget(
HPoint &p);
235 virtual void ShowTarget(
float *x,
float *y,
float *z);
238 virtual void UnSetExtents();
243 virtual void Resize(
int include_count, HC_KEY include_keys[], HC_KEY view_key);
245 virtual void Resize(HC_KEY include_keys, HC_KEY view_key) {
246 HC_KEY key = include_keys;
247 Resize(1, &key, view_key);
252 virtual HPoint GetFacing()
const;
256 virtual HPoint GetUp()
const;
260 static void WindowResizeCallback(
int signal,
void * signal_data,
void * user_data);
264 static void recursive_resize(HC_KEY seg_key,
int include_count, HC_KEY include_keys[], HC_KEY view_key);
266 static void drawLineCallback (HIC_Rendition
const *rendition,
int count, HIC_DC_Point p[]);
267 static void drawLineCallbackClip (HIC_Rendition
const *rendition,
int count, HIC_DC_Point p[]);
268 static void drawMarkerCallback (HIC_Rendition
const *rendition, HIC_DC_Point *p);
274 static void recursive_change_font(HC_KEY seg_key,
int include_count, HC_KEY include_keys[], HC_KEY view_key,
char const *
const font);
276 void SetConditionalVisibility(
HBaseView * pView, HC_KEY
const key_path[],
int const key_path_length);
279 static int Clip_Line_Inverse(HIC_DC_Point *p, HIC_DC_Point *po,
int top,
int left,
int bottom,
int right);
280 static int Clip_Line(HIC_DC_Point *p, HIC_DC_Point *po,
int top,
int left,
int bottom,
int right);
284 static HC_KEY g_segmentkey;
288 HPoint m_target, m_position;
The HCamera class is the data type of a HOOPS Camera Attribute.
Definition: HUtility.h:541
virtual HC_KEY GetKey()
Definition: HUtilityAnnotation.h:59
The HPoint class is the data type of a three-dimensional point.
Definition: HGlobals.h:121
The HBaseView class defines and manages a view of model information.
Definition: HBaseView.h:332
The HUtilityAnnotation class defines and manages annotations.
Definition: HUtilityAnnotation.h:40
virtual char const * GetType()
Definition: HUtilityAnnotation.h:78