UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
zq_surface_inline.hpp
1 /* zq_surface_inline.hpp */
2 /* $Id: zq_surface_inline.hpp,v 1.2 2006/06/23 08:52:37 guser4 Exp $ */
3 #ifndef __zq_surface_inline_hpp
4 #define __zq_surface_inline_hpp
5 
6 /* DON'T INCLUDE IN APPLICATION SOURCES */
7 
8 #ifdef __zq_surface_hpp
9 #define INLINE inline
10 #else
11 #define INLINE
12 #endif /* __zq_surface_hpp */
13 
14 
15 /*
16  * Properties
17  */
18 
23 INLINE void
25 {
26  m_eFillMode = eFillMode;
27 }
28 
29 
36 {
37  return m_eFillMode;
38 }
39 
40 
45 INLINE void
47 {
48  m_ScPal = scpal;
49 }
50 
51 
57 INLINE void
59 {
60  m_zqScPal = zscpal;
61 }
62 
63 
69 INLINE const ZqbScaledPalette&
71 {
72  if(NULL != m_zqScPal)
73  return m_zqScPal->getPalette();
74  return m_ScPal;
75 }
76 
77 
78 /*
79  * Run-time type identification facility
80  */
81 
87 INLINE bool
89 {
90  return findTypeAmong(pDoc, "ZdFunction3D", NULL);
91 }
92 
93 
94 /*
95  * Data access
96  */
97 
98 
104 INLINE ZdFunc3DArgDir
106 {
107  return m_eArgDir;
108 }
109 
110 
116 INLINE ZdFunction3D*
118 {
119  return (ZdFunction3D*)doc();
120 }
121 
122 
123 
124 #undef INLINE
125 
126 #endif /* zq_surface_inline.hpp */
virtual void setFillMode(FillMode eFillMode)
Definition: zq_surface_inline.hpp:24
static bool findTypeAmong(const ZdDocument *pDoc, const char *szExpectedType1,...)
virtual bool compatibleDoc(const ZdDocument *pDoc) const
Definition: zq_surface_inline.hpp:88
virtual ZdFunc3DArgDir argDir() const
Definition: zq_surface_inline.hpp:105
ZqbScaledPalette m_ScPal
Definition: zq_surface.hpp:140
Definition: zq_scaled_palette.hpp:23
Definition: zqb_scaled_palette.hpp:15
virtual const ZqbScaledPalette & getPalette() const
Definition: zq_surface_inline.hpp:70
virtual void attachPalette(ZqScaledPalette *zscpal)
Definition: zq_surface_inline.hpp:58
ZdFunc3DArgDir m_eArgDir
Definition: zq_surface.hpp:134
FillMode m_eFillMode
Definition: zq_surface.hpp:137
ZqScaledPalette * m_zqScPal
Definition: zq_surface.hpp:144
FillMode
Definition: zq_surface.hpp:36
Definition: zd_document.hpp:16
virtual const ZqbScaledPalette & getPalette() const
Definition: zq_scaled_palette_inline.hpp:153
virtual ZdFunction3D * data()
Definition: zq_surface_inline.hpp:117
virtual ZdDocument * doc()
virtual void setPalette(const ZqbScaledPalette &scpal)
Definition: zq_surface_inline.hpp:46
virtual FillMode getFillMode() const
Definition: zq_surface_inline.hpp:35
Definition: zd_function3d.hpp:29