CFx SDK Documentation  2020SP3
DbSectionSymbol.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 OD_SECTIONSYMBOL_H
25 #define OD_SECTIONSYMBOL_H
26 
27 #include "DbViewSymbol.h"
28 #include "TD_PackPush.h"
29 
37 {
38 public:
40 
46 
50  int sectionPointsCount() const;
51 
58 
64  void getLabelOffsets(OdGeVector3dArray& offsets) const;
65 
75  OdResult getSectionPointAt(int idx, OdGePoint3d& pt) const;
76 
86  OdResult getBulgeAt(int idx, double& bulge) const;
87 
97  OdResult getLabelNameAt(int idx, OdString& sName) const;
98 
99 
110 
117  bool isViewDirectionLeft() const;
118  void setViewDirectionLeft(bool bLeft);
119 
126  bool isHalfSection() const;
127  void setIsHalfSection(bool bHalf);
128 
129  // Methods to use internal only :
130 
140  OdResult addSectionPoint(const OdGePoint3d& pt, double bulge = 0);
141 
152  OdResult setSectionPointAt(int idx, const OdGePoint3d& pt, double bulge = 0);
153 
164 
175 
176 protected:
177  // OdDbObject methods :
179  virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
181  virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
182 
183  // OdGiDrawable methods :
184  virtual bool subWorldDraw(OdGiWorldDraw* pWorldDraw) const;
185 
186  // Methods to use internal only :
187  //OdResult setSectionPoints(const OdGePoint3dArray& pts);
188  //OdResult setSectionPoints(const OdGePoint3dArray& pts, const OdGeDoubleArray& bulges);
189  //OdResult removeSectionPointAt(int idx);
190  //void clearSectionPoints();
191  //OdResult setLabelNames(const OdArray<OdString>& names);
192  //OdResult setLabelOffsets(const OdGeVector3dArray& offsets);
193  //void resetLabelOffsets(bool allOffsets = true);
194  //bool flipDirection();
195 };
196 
201 
202 #include "TD_PackPop.h"
203 
204 #endif // OD_SECTIONSYMBOL_H
OdResult
OdResult
Definition: OdResult.h:29
OdGeVector3d
Definition: GeVector3d.h:54
OdString
Definition: OdString.h:95
name
GLuint const GLchar * name
Definition: gles2_ext.h:265
OdDbSectionSymbol::subWorldDraw
virtual bool subWorldDraw(OdGiWorldDraw *pWorldDraw) const
OdDbSectionSymbol::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbSectionSymbol::sectionPointsCount
int sectionPointsCount() const
OdDbSectionSymbol::getSectionPoints
void getSectionPoints(OdGePoint3dArray &pts) const
OdDbSectionSymbol::setSectionPointAt
OdResult setSectionPointAt(int idx, const OdGePoint3d &pt, double bulge=0)
OdArray< OdGePoint3d, OdMemoryAllocator< OdGePoint3d > >
TD_PackPop.h
OdDbViewSymbol
Definition: DbViewSymbol.h:39
OdDbSectionSymbol::isViewDirectionLeft
bool isViewDirectionLeft() const
OdSmartPtr
Definition: SmartPtr.h:58
OdGePoint3d
Definition: GePoint3d.h:55
OdDbSectionSymbol
Definition: DbSectionSymbol.h:37
offset
GLintptr offset
Definition: gles2_ext.h:183
OdDbSectionSymbol::addSectionPoint
OdResult addSectionPoint(const OdGePoint3d &pt, double bulge=0)
OdDbSectionSymbol::setIsHalfSection
void setIsHalfSection(bool bHalf)
DbViewSymbol.h
OdDbSectionSymbol::setLabelNameAt
OdResult setLabelNameAt(int idx, const OdString &name)
OdDbSectionSymbolPtr
OdSmartPtr< OdDbSectionSymbol > OdDbSectionSymbolPtr
Definition: DbSectionSymbol.h:200
OdDbDxfFiler
Definition: DbFiler.h:194
OdDbSectionSymbol::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
TD_PackPush.h
OdGiWorldDraw
Definition: GiWorldDraw.h:44
OdDbSectionSymbol::getLabelNameAt
OdResult getLabelNameAt(int idx, OdString &sName) const
OdDbSectionSymbol::~OdDbSectionSymbol
~OdDbSectionSymbol()
OdDbSectionSymbol::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDbSectionSymbol::getBulgeAt
OdResult getBulgeAt(int idx, double &bulge) const
OdDbSectionSymbol::setLabelOffsetAt
OdResult setLabelOffsetAt(int idx, const OdGeVector3d &offset)
OdDbSectionSymbol::isHalfSection
bool isHalfSection() const
OdDbSectionSymbol::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbSectionSymbol)
MODELDOCOBJ_EXPORT
#define MODELDOCOBJ_EXPORT
Definition: ModelDocObjExports.h:33
OdDbSectionSymbol::getLabelOffsets
void getLabelOffsets(OdGeVector3dArray &offsets) const
OdDbSectionSymbol::OdDbSectionSymbol
OdDbSectionSymbol()
OdDbSectionSymbol::getLabelOffsetAt
OdResult getLabelOffsetAt(int idx, OdGeVector3d &offset) const
OdDbSectionSymbol::setViewDirectionLeft
void setViewDirectionLeft(bool bLeft)
OdDbSectionSymbol::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbDwgFiler
Definition: DbFiler.h:1031
OdDbSectionSymbol::getSectionPointAt
OdResult getSectionPointAt(int idx, OdGePoint3d &pt) const