Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HUtilityAntialiasing.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: 5552dd57cf83644ce035de5e5d281e3c77a4333c $
13 //
14 
15 #ifndef _HUtilityAntialiasing_H
16 #define _HUtilityAntialiasing_H
17 
18 #ifdef H_PACK_8
19 #pragma pack(push)
20 #pragma pack(8)
21 #endif
22 
23 
24 #include "HTools.h"
25 #include "hic_types.h"
26 
27 
28 class HBaseView;
29 
31 
35 class MVO_API HUtilityAntialiasing
36 {
37 public:
38 
42 
43 
47  bool GetShowState();
48 
53  bool CreateImage();
54 
59  void Show(int factor = 4);
60 
64  void Hide();
65 
71  static void RegisterCallbacks();
73  static void skip_segment_tree (HIC_Rendition *rendition, HIC_Segment_Info *seg);
75  static void draw_thick_polylines (HIC_Rendition *rendition, int count, HIC_DC_Point * poi3);
77  static void draw_thick_polyedges (HIC_Rendition *rendition, int count, HIC_DC_Point *points);
78 
79 
80 
81 protected:
82 
88  void GetWindowSize(int &xmax, int &ymax);
89 
90 private:
91  HBaseView *m_pHView;
92  HPixelRGB *m_pAAImageData;
93  HC_KEY m_AntialisedImageSegmentKey;
94  int m_width;
95  int m_height;
96  bool m_bIsShown;
97  int m_factor;
98 
99  char m_drawsegmenttree_callback_name[MVO_BUFFER_SIZE];
100  char m_drawwindow_callback_name[MVO_BUFFER_SIZE];
101  bool m_bFirst;
102  char largeImageSegment[MVO_BUFFER_SIZE];
103  char imagedriver[MVO_BUFFER_SIZE];
104 
105  bool m_bFirstFirst;
106  HC_KEY image_key;
107 
108 };
109 
110 
111 #ifdef H_PACK_8
112 #pragma pack(pop)
113 #endif
114 
115 #endif
116 
117 
118 
119 
120 
The HPixelRGB class is the data type of a rgb pixel.
Definition: HGlobals.h:478
#define HC_KEY
The HUtilityAntialiasing class contains a set of function for software based image antialiasing...
Definition: HUtilityAntialiasing.h:35
The HBaseView class defines and manages a view of model information.
Definition: HBaseView.h:337