CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
AECWallStyleComp.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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 Open Design Alliance software pursuant to a
16// license agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 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 __AECWALLSTYLECOMP_H__
25#define __AECWALLSTYLECOMP_H__
26
29#include "AECArchBaseDefs.h"
30#include <Ge/GeInterval.h>
31
37class AECARCHBASE_API AECWallStyleComp : public AECImpObj
38{
40
41 public:
45 const OdString& GetName() const;
46
50 void SetName( const OdString& strName );
51
56
60 void SetPriority( OdInt16 iPriority );
61
66
71
75 void SetIndex( OdUInt16 iIndex );
76
81 const OdDbObjectId& GetMaterial() const;
82
87 void SetMaterial( const OdDbObjectId& id );
88
93
98
102 bool IsDimensionLeft() const;
103
107 void SetIsDimensionLeft( bool bDimension );
108
112 bool IsDimensionCenter() const;
113
117 void SetIsDimensionCenter( bool bDimension );
118
122 bool IsDimensionRight() const;
123
127 void SetIsDimensionRight( bool bDimension );
128
129 public:
134 bool OwnsModifier( AECWallModifier* pModifier ) const;
135
144 OdGeInterval GetRealWidth( double dBaseWidth ) const;
145
146 protected:
148 union Flags
149 {
151 struct
152 {
153#ifdef ODA_BIGENDIAN
154 OdUInt8 iUnused : 5;
155 OdUInt8 bDimensionRight : 1;
156 OdUInt8 bDimensionCenter : 1;
157 OdUInt8 bDimensionLeft : 1;
158#else
163#endif
164 } m_bBits;
165 };
166
167 protected:
168 // The name of the component.
170
171 // Priority.
173
174 // Wall style component position.
176
177 // Component index.
179
180 // Object ID of material definition.
182
183 // Wall function.
185
186 // Dimension flags.
188};
189
192
193#endif //__AECWALLSTYLECOMP_H__
#define AEC_DECLARE_MEMBERS(ClassName)
Definition: AECMacros.h:54
OdSmartPtr< AECWallStyleComp > AECWallStyleCompPtr
AECSubPtr< AECWallStyleComp > AECWallStyleCompSubPtr
short OdInt16
unsigned short OdUInt16
unsigned char OdUInt8
const OdDbObjectId & GetMaterial() const
bool IsDimensionCenter() const
void SetFunction(AECDefs::WallComponentFunction eFunction)
OdDbObjectId m_hpidMaterial
OdInt16 GetPriority() const
void SetMaterial(const OdDbObjectId &id)
AECWallStyleCompPosSubPtr GetPosition() const
AECWallStyleCompPosPtr m_pPosition
void SetPriority(OdInt16 iPriority)
const OdString & GetName() const
void SetIsDimensionLeft(bool bDimension)
bool OwnsModifier(AECWallModifier *pModifier) const
void SetName(const OdString &strName)
OdUInt16 GetIndex() const
void SetIsDimensionCenter(bool bDimension)
void SetIsDimensionRight(bool bDimension)
void SetIndex(OdUInt16 iIndex)
OdGeInterval GetRealWidth(double dBaseWidth) const
AECDefs::WallComponentFunction m_eFunction
bool IsDimensionRight() const
AECDefs::WallComponentFunction GetFunction() const
bool IsDimensionLeft() const