CFx SDK Documentation  2023 SP0
AECDbGridAssembly.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 __AECDBGRIDASSEMBLY_H__
25 #define __AECDBGRIDASSEMBLY_H__
26 
44 
56 class AECBASE_API AECDbGridAssembly : public AECDbCellLayoutTool
57 {
59 
61 
62  public:
68 
75 
81 
88 
92  bool IsEditInPlaceModeOn() const;
93 
99  bool GetStartMiterAngle( double& dAngle ) const;
100 
106  void SetStartMiterAngle( double dAngle );
107 
113  bool GetEndMiterAngle( double& dAngle ) const;
114 
120  void SetEndMiterAngle( double dAngle );
121 
127 
132 
140 
148 
153 
161 
166 
174 
179 
187 
192 
200 
205 
213 
218 
226 
233 
241 
248 
256 
262 
268 
273 
281 
286 
290  void SetCustomProfile( AECGeProfilePtr ptrProfile );
291 
292  public:
299  virtual bool GetAECProfile(FacetModeler::Profile2D& rProfile) const;
300 
304  double GetWidth() const;
305 
309  void SetWidth( double dWidth );
310 
314  double GetHeight() const;
315 
319  void SetHeight( double dHeight );
320 
324  double GetRise() const;
325 
329  void SetRise( double dRise );
330 
341 
351 
355  virtual double GetBaseCurveRadius() const;
356 
357  public:
361  virtual OdUInt32 GetLayoutNodeCount() const;
362 
366  virtual OdUInt32 GetLayoutCellCount() const;
367 
371  virtual OdUInt32 GetLayoutNodeIndex( OdUInt32 iPos ) const;
372 
376  virtual OdUInt32 GetLayoutCellIndex( OdUInt32 iPos ) const;
377 
382 
387 
388  public:
389  // Returns cell definition by given cell descriptor.
391 
392  // Returns edge definition by given edge descriptor.
394 
395  // Returns grid definition used for cell or edge with specified path.
396  AECGeGridAssemblyDefSubPtr GetOwnerGrid( const std::vector<OdUInt16>& aPath ) const;
397 
398  // Finds the cell assignment with the specified index.
399  // Bad approach.
400  // Used when the assignment is not found using the cell path.
402 
403  // Finds the edge assignment with the specified index.
404  // Used when the assignment is not found using the edge path.
406 };
407 
409 
410 #endif //__AECDBGRIDASSEMBLY_H__
OdSmartPtr< AECDbGridAssembly > AECDbGridAssemblyPtr
#define CURVE_DECLARE_MEMBERS()
Definition: AECMacros.h:34
#define AEC_DECLARE_MEMBERS(ClassName)
Definition: AECMacros.h:54
unsigned int OdUInt32
unsigned short OdUInt16
OdUInt32 GetNextCellAssignmentIndex() const
virtual OdUInt32 GetLayoutNodeIndex(OdUInt32 iPos) const
OdUInt32 GetNextEdgeIndex() const
AECGeGridAssemblyDefSubPtr GetGridDefinition() const
virtual OdUInt32 GetLayoutNodeCount() const
AECGeNgCellOverrideSubPtr GetCellOverrideByIndex(OdUInt32 iIndex) const
AECGridAssemblyCellSubPtr GetCellByPosition(OdUInt32 iIndex) const
OdUInt32 GetEdgeProfileOverrideCount() const
OdUInt32 GetNextEdgeAssignmentIndex() const
OdUInt32 GetNextEdgeIndexInc()
AECGeNgCellAssignmentSubPtr GetCellAssignment(OdUInt16 iIndex) const
AECGridAssemblyEdgeSubPtr GetEdgeByPosition(OdUInt32 iIndex) const
OdUInt32 GetInterferenceCount() const
AECGeNgEdgeProfileOverrideSubPtr GetEdgeProfileOverrideByIndex(OdUInt32 iIndex) const
void SetCustomProfile(AECGeProfilePtr ptrProfile)
AECGeNgDivisionOverrideSubPtr GetDivisionOverrideByIndex(OdUInt32 iIndex) const
OdGeInterval GetFrameInterval() const
OdUInt32 GetNextEdgeAssignmentIndexInc()
OdUInt16 GetMarkersDepth() const
bool IsEditInPlaceModeOn() const
double GetHeight() const
void SetHeight(double dHeight)
OdUInt32 GetDivisionOverrideCount() const
AECGeNgEdgeAssignmentSubPtr GetEdgeAssignment(OdUInt16 iIndex) const
AECGeNgEdgeOverrideSubPtr GetEdgeOverrideByIndex(OdUInt32 iIndex) const
OdUInt32 GetNextCellAssignmentIndexInc()
OdUInt32 GetNextCellIndexInc()
void SetRise(double dRise)
virtual OdGeMatrix3d GetLayoutNodeTransform(OdUInt32 iPos) const
bool GetEndMiterAngle(double &dAngle) const
AECGeNestedGridEdgeDefSubPtr GetEdgeDefinition(AECGridAssemblyEdgeSubPtr pEdge) const
AECGeNgCellMergeDataSubPtr GetMergeDataByIndex(OdUInt32 iIndex) const
AECGaInterferenceSubPtr GetInterferenceByIndex(OdUInt32 iIndex) const
virtual double GetBaseCurveRadius() const
AECGeNestedGridInfillDefSubPtr GetCellDefinition(AECGridAssemblyCellSubPtr pCell) const
OdUInt32 GetNextCellIndex() const
virtual OdGeMatrix3d GetLayoutCellTransform(OdUInt32 iPos) const
virtual OdUInt32 GetLayoutCellCount() const
AECGeGridAssemblyDefSubPtr GetOwnerGrid(const std::vector< OdUInt16 > &aPath) const
virtual OdUInt32 GetLayoutCellIndex(OdUInt32 iPos) const
OdGeInterval GetDepthInterval() const
OdUInt32 GetCellOverrideCount() const
void SetEndMiterAngle(double dAngle)
OdUInt32 GetEdgeOverrideCount() const
OdUInt32 GetMergeDataCount() const
AECGeProfileSubPtr GetCustomProfile() const
double GetRise() const
AECGridAssemblyCellSubPtr GetCellByIndex(OdUInt32 uiCellIndex) const
OdUInt32 GetCellCount() const
AECGaComponentSetSubPtr GetComponentSet() const
OdUInt32 GetEdgeCount() const
void SetWidth(double dWidth)
virtual bool GetAECProfile(FacetModeler::Profile2D &rProfile) const
void SetStartMiterAngle(double dAngle)
bool GetStartMiterAngle(double &dAngle) const
double GetWidth() const