CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
AECSpaceSurfaceComponent.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 __AECSPACESURFACECOMPONENT_H__
25#define __AECSPACESURFACECOMPONENT_H__
26
28
34class AECARCHBASE_API AECSpaceSurfaceComponent : public AECImpObj
35{
37
38 public:
42 enum Type
43 {
44 eUndefinedOpening = 0,
45 eWindowFixed = 1,
46 eWindowOperable = 2,
47 eSkylightFixed = 100,
48 eSkylightOperable = 101,
49 eDoorSliding = 200,
50 eDoorNonSliding = 201,
51 eAir = 300
52 };
53
54 public:
58 double GetHeight() const;
59
63 void SetHeight( double dHeight );
64
68 double GetWidth() const;
69
73 void SetWidth( double dWidth );
74
78 const OdGePoint2d& GetLocation() const;
79
83 void SetLocation( const OdGePoint2d& ptLocation );
84
89
93 void SetName( const OdString& strName );
94
98 Type GetType() const;
99
103 void SetType( Type eType );
104
109
113 void SetStyle( const OdDbObjectId& idStyle );
114
118 virtual void copyFrom( const OdRxObject* pSource);
119
123 bool isEqualTo( const OdRxObject* pSource );
124
129
133 void SetProperties( const OdDbObjectId& idProps );
134
135 private:
136 //
137 double m_dHeight;
138
139 //
140 double m_dWidth;
141
142 //
143 OdGePoint2d m_location;
144
145 //
146 OdString m_strName;
147
148 //
149 Type m_eType;
150
151 // Either Door Style, Window Style or null.
152 OdDbHardPointerId m_idStyle;
153
154 //
155 OdUInt8 m_iFlags;
156
157 //
158 OdDbHardPointerId m_idProps;
159};
160
163
164#endif // __AECSPACESURFACECOMPONENT_H__
#define AEC_DECLARE_MEMBERS(ClassName)
Definition: AECMacros.h:54
AECSubPtr< AECSpaceSurfaceComponent > AECSpaceSurfaceComponentSubPtr
OdSmartPtr< AECSpaceSurfaceComponent > AECSpaceSurfaceComponentPtr
unsigned char OdUInt8
void SetLocation(const OdGePoint2d &ptLocation)
virtual void copyFrom(const OdRxObject *pSource)
OdString GetName() const
OdDbObjectId GetStyle() const
bool isEqualTo(const OdRxObject *pSource)
void SetProperties(const OdDbObjectId &idProps)
void SetHeight(double dHeight)
void SetName(const OdString &strName)
void SetWidth(double dWidth)
double GetHeight() const
double GetWidth() const
void SetStyle(const OdDbObjectId &idStyle)
void SetType(Type eType)
const OdGePoint2d & GetLocation() const
OdDbObjectId GetProperties() const