CFx SDK Documentation  2023 SP0
AECMuntinsBlock.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 #ifndef __AECMUNTINSBLOCK_H__
25 #define __AECMUNTINSBLOCK_H__
26 
27 #include "AECArchBaseDefs.h"
29 
35 class AECARCHBASE_API AECMuntinsBlock : public AECDispCompEnt
36 {
38 
39  public:
43  const OdString& GetName() const;
44 
48  void SetName( const OdString& strName );
49 
53  double GetWidth() const;
54 
58  void SetWidth( double dWidth );
59 
63  double GetDepth() const;
64 
68  void SetDepth( double dDepth );
69 
76  double GetHubRadius() const;
77 
84  void SetHubRadius( double dRadius );
85 
89  bool IsConvertToBody() const;
90 
94  void SetIsConvertToBody( bool bConvert );
95 
99  bool IsCleanupJoints() const;
100 
104  void SetIsCleanupJoints( bool bCleanup );
105 
110 
115 
123 
130  void SetSingleIndex( OdUInt8 iIndex );
131 
136 
140  void SetLightsHigh( OdUInt8 iCount );
141 
146 
150  void SetLightsWide( OdUInt8 iCount );
151 
159 
166  void SetSpokeCount( OdUInt8 iCount );
167 
172 
177 
185 
193 
198 
203 
210  double GetEdgeOffsetX() const;
211 
218  void SetEdgeOffsetX( double dOffset );
219 
226  double GetEdgeOffsetY() const;
227 
234  void SetEdgeOffsetY( double dOffset );
235 
237  void SetShape( AECDefs::Shape eShape );
238 
239  protected:
240  // Block name.
242 
243  // Muntin width.
245 
246  // Muntin depth.
248 
249  // Hub radius (valid only for sunburst pattern).
250  double m_dHubRadius;
251 
252  // "Convert to Body" state flag.
253  // i.e. makes muntin look 3d, intersects with door, etc.
255 
256  // "Cleanup Joints" flag.
258 
259  // Door/Window pane. AECDefs::emgpTop is valid only for windows.
261 
262  // Single index, to wich current muntin applies.
264 
265  // The number of lights in the horizontal direction.
267 
268  // The number of lights in the vertical direction.
270 
271  // The number of spokes, valid only for starburst or
272  // sunburst patterns.
274 
275  // Muntins pattern.
277 
278  // 0 unknown.
280 
281  // Hub style.
283 
284  // Hub center.
286 
287  // Glass component shape.
288  // Either *esQuarterRound* or *esHalfRound*.
290 
291  // Edge offset along X axis.
293 
294  // Edge offset along Y axis.
296 };
297 
300 
301 #endif // __AECMUNTINSBLOCK_H__
#define AEC_DECLARE_MEMBERS(ClassName)
Definition: AECMacros.h:54
AECSubPtr< AECMuntinsBlock > AECMuntinsBlockSubPtr
OdSmartPtr< AECMuntinsBlock > AECMuntinsBlockPtr
unsigned char OdUInt8
void SetLightsWide(OdUInt8 iCount)
void SetName(const OdString &strName)
double GetHubRadius() const
void SetEdgeOffsetY(double dOffset)
void SetEdgeOffsetX(double dOffset)
AECDefs::MuntinsHubCenter GetHubCenter() const
OdString m_strBlockName
AECDefs::Shape GetShape() const
void SetIsCleanupJoints(bool bCleanup)
AECDefs::Shape m_eShape
void SetDepth(double dDepth)
OdUInt8 GetLightsWide() const
void SetHubStyle(AECDefs::MuntinsHubStyle eStyle)
double GetDepth() const
bool IsConvertToBody() const
double GetEdgeOffsetY() const
void SetPattern(AECDefs::MuntinsPattern ePattern)
void SetShape(AECDefs::Shape eShape)
void SetHubCenter(AECDefs::MuntinsHubCenter eType)
void SetSingleIndex(OdUInt8 iIndex)
void SetHubRadius(double dRadius)
void SetGlassComponent(AECDefs::MuntinsGlassComponent eComponent)
bool IsCleanupJoints() const
double GetEdgeOffsetX() const
OdUInt8 GetLightsHigh() const
void SetSpokeCount(OdUInt8 iCount)
void SetLightsHigh(OdUInt8 iCount)
const OdString & GetName() const
AECDefs::MuntinsHubStyle m_eHubStyle
AECDefs::MuntinsPattern GetPattern() const
AECDefs::MuntinsHubStyle GetHubStyle() const
AECDefs::MuntinsGlassComponent GetGlassComponent() const
OdUInt8 GetSingleIndex() const
AECDefs::MuntinsHubCenter m_eHubCenter
double GetWidth() const
void SetIsConvertToBody(bool bConvert)
AECDefs::MuntinsPattern m_eMuntinsPattern
void SetWidth(double dWidth)
AECDefs::MuntinsGlassComponent m_eGlassComponent
OdUInt8 GetSpokeCount() const