CFx SDK Documentation  2023 SP0
AECDbDimensionGroup.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 __AECDBDIMENSIONGROUP_H__
25 #define __AECDBDIMENSIONGROUP_H__
26 
27 #include "DbEntity/AECDbGeo.h"
29 #include "Common/AECDimPoint.h"
35 
38 
44 class AECARCHDACHBASE_API AECDbDimensionGroup : public AECDbGeo
45 {
47 
48  public:
53 
58 
66  OdUInt32 iRefIndex ) const;
67 
73 
78  OdUInt32 iPointIndex ) const;
79 
83  void AddNonAssociativePointToChain( OdUInt32 iChainIndex, const AECDimPoint& ptDim );
84 
88  bool IsTextPositionFlipped() const;
89 
90  // Descriptioin:
91  // Sets "isTextPositionFlipped" flag
92  void SetTextPositionFlipped( bool bFlipped );
93 
94  public:
106  OdUInt16 iChain, double dPosition, const AECDimPoint& ptDim ) const;
107 
119  OdUInt16 iChain, const AECDimPoint& ptDim) const;
120 
130  void SetExtLineOffset( const OdDbObjectId& idDispRep,
131  OdUInt16 iChain, const AECDimPoint& ptDim, const OdGeVector3d &vOffset);
132 
137  const OdGeVector3d &v, const OdDbObjectId& idDispRep, OdUInt16 iChain, const OdGeInterval& intPosition);
138 
142  OdGeVector3d GetTextOffset(const OdDbObjectId& idDispRep, OdUInt16 iChain, const OdGeInterval& intPosition);
143 
155  OdUInt16 iChain, double dPosition ) const;
156 
168  OdUInt16 iChain, const OdGeInterval& intPosition ) const;
169 
181  OdUInt16 iChain, const OdGeInterval& intPosition ) const;
182 
187  OdUInt16 iChain, const AECDimPoint& ptDim ) const;
188 
200  OdUInt16 iChain, const OdGeInterval& intPosition ) const;
201 
212  bool bCreateIfNotFound = false );
213 
222  void RemoveOverrideContainer( const OdDbObjectId& idDispRep );
223 
224  public:
232  const OdDbObjectId& idDimStyle );
233 
247  const OdDbObjectId& idPathToObject = OdDbObjectId::kNull );
248 
262  const OdDbObjectId& idPathToObject = OdDbObjectId::kNull );
263 
264 protected:
268  virtual bool subCloneMeForDragging();
269 };
270 
271 #endif //__AECDBDIMENSIONGROUP_H__
OdSmartPtr< AECDbDimensionGroup > AECDbDimensionGroupPtr
#define AEC_DECLARE_MEMBERS(ClassName)
Definition: AECMacros.h:54
unsigned int OdUInt32
unsigned short OdUInt16
OdResult
Definition: OdResult.h:29
OdResult AttachDimObject(const OdDbObjectId &idObject, const OdDbObjectId &idPathToObject=OdDbObjectId::kNull)
AECDimensionOverrideDataTextSubPtr LocateOverrideText(const OdDbObjectId &idDispRep, OdUInt16 iChain, const OdGeInterval &intPosition) const
const AECDimensionOverrideDataOffsetSubPtr GetExtLineOffset(const OdDbObjectId &idDispRep, OdUInt16 iChain, const AECDimPoint &ptDim) const
const AECSmartReference & GetReferenceFromChainByIndex(OdUInt32 iChainIndex, OdUInt32 iRefIndex) const
OdUInt32 GetPointFromChainCount(OdUInt32 iChainIndex) const
AECDimensionOverrideDataVisibilitySubPtr LocateOverrideVisibility(const OdDbObjectId &idDispRep, OdUInt16 iChain, double dPosition, const AECDimPoint &ptDim) const
void RemoveOverrideContainer(const OdDbObjectId &idDispRep)
OdDbObjectId GetOverrideContainer(const OdDbObjectId &idDispRep, bool bCreateIfNotFound=false)
void SetTextOffset(const OdGeVector3d &v, const OdDbObjectId &idDispRep, OdUInt16 iChain, const OdGeInterval &intPosition)
static AECDbDimensionGroupPtr CreateAECObject(const OdDbObjectId &idBlock, const OdDbObjectId &idDimStyle)
OdUInt32 GetChainCount() const
AECDimensionOverrideDataVisibilitySubPtr LocateOverrideVisibility(const OdDbObjectId &idDispRep, OdUInt16 iChain, const OdGeInterval &intPosition) const
void SetTextPositionFlipped(bool bFlipped)
OdGeVector3d GetTextOffset(const OdDbObjectId &idDispRep, OdUInt16 iChain, const OdGeInterval &intPosition)
const AECDimPoint & GetPointFromChainByIndex(OdUInt32 iChainIndex, OdUInt32 iPointIndex) const
void AddNonAssociativePointToChain(OdUInt32 iChainIndex, const AECDimPoint &ptDim)
bool IsTextPositionFlipped() const
AECDimensionOverrideDataOffsetSubPtr LocateOverrideOffset(const OdDbObjectId &idDispRep, OdUInt16 iChain, double dPosition) const
AECDimensionOverrideDataOffsetSubPtr LocateOverrideOffset(const OdDbObjectId &idDispRep, OdUInt16 iChain, const OdGeInterval &intPosition) const
void SetExtLineOffset(const OdDbObjectId &idDispRep, OdUInt16 iChain, const AECDimPoint &ptDim, const OdGeVector3d &vOffset)
OdResult DetachDimObject(const OdDbObjectId &idObject, const OdDbObjectId &idPathToObject=OdDbObjectId::kNull)
virtual bool subCloneMeForDragging()
OdUInt32 GetReferenceFromChainCount(OdUInt32 iChainIndex) const
AECDimensionOverrideDataTargetExtLinePositionsSubPtr LocateOverrideKeyDimTargetComponents(const OdDbObjectId &idDispRep, OdUInt16 iChain, const AECDimPoint &ptDim) const
static TOOLKIT_EXPORT_STATIC const OdDbObjectId kNull
Definition: DbObjectId.h:118
const GLfloat * v
Definition: gles2_ext.h:315