Introduction

Getting Started

Programming Guides

API Reference

Additional Resources

HUtilityAntialiasing.h
1 // Copyright (c) Tech Soft 3D
2 //
3 // The information contained herein is confidential and proprietary to Tech Soft 3D, Inc.,
4 // and considered a trade secret as defined under civil and criminal statutes.
5 // Tech Soft 3D, Inc. shall pursue its civil and criminal remedies in the event of
6 // unauthorized use or misappropriation of its trade secrets. Use of this information
7 // by anyone other than authorized employees of Tech Soft 3D, Inc. is granted only under
8 // a written non-disclosure agreement, expressly prescribing the scope and manner of such use.
9 
10 #ifndef _HUtilityAntialiasing_H
11 #define _HUtilityAntialiasing_H
12 
13 #ifdef H_PACK_8
14 #pragma pack(push)
15 #pragma pack(8)
16 #endif
17 
18 
19 #include "HTools.h"
20 #include "hic_types.h"
21 
22 
23 class HBaseView;
24 
26 
30 class MVO_API HUtilityAntialiasing
31 {
32 public:
33 
37 
38 
42  bool GetShowState();
43 
48  bool CreateImage();
49 
54  void Show(int factor = 4);
55 
59  void Hide();
60 
66  static void RegisterCallbacks();
68  static void skip_segment_tree (HIC_Rendition *rendition, HIC_Segment_Info *seg);
70  static void draw_thick_polylines (HIC_Rendition *rendition, int count, HIC_DC_Point poi3[]);
72  static void draw_thick_polyedges (HIC_Rendition *rendition, int count, HIC_DC_Point points[]);
73 
74 
75 
76 protected:
77 
83  void GetWindowSize(int &xmax, int &ymax);
84 
85 private:
86  HBaseView *m_pHView;
87  HPixelRGB *m_pAAImageData;
88  HC_KEY m_AntialisedImageSegmentKey;
89  int m_width;
90  int m_height;
91  bool m_bIsShown;
92  int m_factor;
93 
94  char m_drawsegmenttree_callback_name[MVO_BUFFER_SIZE];
95  char m_drawwindow_callback_name[MVO_BUFFER_SIZE];
96  bool m_bFirst;
97  char largeImageSegment[MVO_BUFFER_SIZE];
98  char imagedriver[MVO_BUFFER_SIZE];
99 
100  bool m_bFirstFirst;
101  HC_KEY image_key;
102 
103 };
104 
105 
106 #ifdef H_PACK_8
107 #pragma pack(pop)
108 #endif
109 
110 #endif
111 
112 
113 
114 
115 
The HPixelRGB class is the data type of a rgb pixel.
Definition: HGlobals.h:471
#define HC_KEY
The HUtilityAntialiasing class contains a set of function for software based image antialiasing...
Definition: HUtilityAntialiasing.h:30
The HBaseView class defines and manages a view of model information.
Definition: HBaseView.h:332