CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
AECGeSlabEdge.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 __AECGESLABEDGE_H__
25#define __AECGESLABEDGE_H__
26
27#include "AECArchBaseDefs.h"
29
35class AECARCHBASE_API AECGeSlabEdge : public AECGeSegment2d
36{
38
39 public:
47
51 void SetIndex( OdUInt16 iIndex );
52
60
64 void SetSlabEdgeStyle( const OdDbObjectId& id );
65
69 double GetAngle() const;
70
74 void SetAngle( double dAngle );
75
79 double GetOverhang() const;
80
84 void SetOverhang( double dOverhang );
85
90
95
96 void MarkNew( bool bNew );
97
98 bool IsNew() const;
99
100 void SetUpdateFlag( bool bUpdateNeeded );
101
102 bool IsUpdateNeeded() const;
103
107 virtual void copyFrom( const OdRxObject* pSource);
108
109 protected:
111 // Edge flags.
112 enum {
113 kHasStyle = 1,
114 kHasOverhang = 2,
115 kOrientation = 4,
116 kNew = 8,
117 kUpdateNeeded = 16,
118 };
119
120 protected:
121 // Edge index.
122 // The base for this index is 0x0402.
124
125 // Slab edge style.
126 // The slab edge style is defined by the entity of the AECDbSlabEdgeStyle type.
128
129 // Angle for the edge. For the vertical edge side its value is 0.0 .
130 // How this angle is counted off from the baseline of the edge
131 // depends on the value of AECGeSlabEdge::m_uOrientation
132 double m_dAngle;
133
134 // Overhang value.
135 // This is the length of the part of slab that overhangs the edge baseline.
137
138 // Edge flags.
140};
141
144
145#endif //__AECGESLABEDGE_H__
AECSubPtr< AECGeSlabEdge > AECGeSlabEdgeSubPtr
OdSmartPtr< AECGeSlabEdge > AECGeSlabEdgePtr
#define AEC_DECLARE_MEMBERS(ClassName)
Definition: AECMacros.h:54
unsigned short OdUInt16
unsigned char OdUInt8
void SetUpdateFlag(bool bUpdateNeeded)
void SetOrientation(AECDefs::SlabEdgeOrientation eOrientation)
double GetOverhang() const
double GetAngle() const
OdUInt16 m_nId
void SetAngle(double dAngle)
bool IsUpdateNeeded() const
void SetOverhang(double dOverhang)
AECDefs::SlabEdgeOrientation GetOrientation() const
OdDbObjectId GetSlabEdgeStyle() const
bool IsNew() const
void SetSlabEdgeStyle(const OdDbObjectId &id)
double m_dOverhang
virtual void copyFrom(const OdRxObject *pSource)
OdUInt16 GetIndex() const
OdDbHardPointerId m_slabEdgeStyleId
void MarkNew(bool bNew)
void SetIndex(OdUInt16 iIndex)