CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbSectionSymbol.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 license
16// 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 OD_SECTIONSYMBOL_H
25#define OD_SECTIONSYMBOL_H
26
27#include "DbViewSymbol.h"
28#include "TD_PackPush.h"
29
37{
38public:
40
46
50 int sectionPointsCount() const;
51
58
64 void getLabelOffsets(OdGeVector3dArray& offsets) const;
65
76
86 OdResult getBulgeAt(int idx, double& bulge) const;
87
97 OdResult getLabelNameAt(int idx, OdString& sName) const;
98
99
110
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
176protected:
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
OdSmartPtr< OdDbSectionSymbol > OdDbSectionSymbolPtr
#define MODELDOCOBJ_EXPORT
OdResult
Definition: OdResult.h:29
bool isViewDirectionLeft() const
void setIsHalfSection(bool bHalf)
int sectionPointsCount() const
ODDB_DECLARE_MEMBERS(OdDbSectionSymbol)
void setViewDirectionLeft(bool bLeft)
bool isHalfSection() const
OdResult setSectionPointAt(int idx, const OdGePoint3d &pt, double bulge=0)
OdResult getLabelOffsetAt(int idx, OdGeVector3d &offset) const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
virtual bool subWorldDraw(OdGiWorldDraw *pWorldDraw) const
OdResult addSectionPoint(const OdGePoint3d &pt, double bulge=0)
OdResult getLabelNameAt(int idx, OdString &sName) const
OdResult getSectionPointAt(int idx, OdGePoint3d &pt) const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
void getSectionPoints(OdGePoint3dArray &pts) const
OdResult setLabelOffsetAt(int idx, const OdGeVector3d &offset)
OdResult setLabelNameAt(int idx, const OdString &name)
void getLabelOffsets(OdGeVector3dArray &offsets) const
OdResult getBulgeAt(int idx, double &bulge) const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
GLuint const GLchar * name
Definition: gles2_ext.h:265
GLintptr offset
Definition: gles2_ext.h:183