CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
DbSectionViewStyle.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, 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-2024 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_SECTIONVIEWSTYLE_H
25#define OD_SECTIONVIEWSTYLE_H
26
27#include "DbModelDocViewStyle.h"
28#include "Ge/GeDoubleArray.h"
29#include "CmColorBase.h"
30
31#include "TD_PackPush.h"
32
40{
41public:
43
48 kEndCuttingPlane = 0, // The identifier is placed at the end of the cutting plane.
49 kAboveDirectionArrowLine = 1, // The identifier is placed above the direction arrow line.
50 kAboveDirectionArrowSymbol = 2, // The identifier is placed above the direction arrow symbol.
51 kStartDirectionArrow = 3, // The identifier is placed at the start of the direction arrow.
52 kEndDirectionArrow = 4, // The identifier is placed at the end of the direction arrow.
53 };
54
59 kTowardsCuttingPlane = 0, // The arrowheads are oriented towards the cutting plane.
60 kAwayFromCuttingPlane = 1, // The arrowheads are oriented away from the cutting plane.
61 };
62
68
73
84
89
94
98 double identifierHeight() const;
99
104
109
122
127
132
137
142
147
152
156 double arrowSymbolSize() const;
157
162
167
172
177
182
187
192
197
202
207
212
217
222
227
232
236 double bendLineLength() const;
237
242
246 double endLineLength() const;
247
252
257
262
267
272
276 double viewLabelTextHeight() const;
277
282
286 double viewLabelOffset() const;
287
292
297
302
307
312
317
328
341 const OdDbField* pField = NULL);
342
347
352
357
362
367
372
376 double hatchScale() const;
377
382
387
401
411
416
421
431
435 bool showArrowheads() const;
436
446
450 bool showViewLabel() const;
451
461
465 bool showAllPlaneLines() const;
466
476
481
491
496
506
510 bool showHatching() const;
511
521
523 // Inspects the string that defines the excluded characters of an identifier and checks it
524 // for valid characters and the correct format.
525 //
526 // \param [in] str String of characters that is set as the excluded characters for the identifier.
527 //
528 // \returns
529 // True if the string is formatted correctly; false otherwise.
530 //*/
531 //static bool validateIdentifierExcludeCharacters(const OdString& str);
532
537
547
551 double viewIdentifierOffset() const;
552
562
567
577
581 double endLineOvershoot() const;
582
592
593 // OdDbModelDocViewStyle overridden functions
594 virtual OdDbObjectId postViewStyleToDb(OdDbDatabase* pDb, const OdString& styleName);
595
614 static OdDbObjectId defaultSectionViewStyle(OdDbDatabase* db, bool init = true);
615
616protected:
617 // OdDbObject overridden functions
619 virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
621 virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
622
623 // For internal use only
624// virtual OdDbObjectPtr subDeepClone(OdDbIdMapping& idMap, OdDbObject* pOwner, bool isPrimary = true) const;
625 virtual OdDbObjectPtr subWblockClone(OdDbIdMapping& idMap, OdDbObject* pOwner, bool isPrimary = true) const;
626};
627
632
633#include "TD_PackPop.h"
634
635#endif // OD_SECTIONVIEWSTYLE_H
#define DBENT_EXPORT
Definition DbExport.h:67
OdSmartPtr< OdDbObject > OdDbObjectPtr
Definition DbObject.h:1750
OdSmartPtr< OdDbSectionViewStyle > OdDbSectionViewStylePtr
scale
OdArray< double, OdMemoryAllocator< double > > OdGeDoubleArray
OdResult
Definition OdResult.h:29
OdResult setHatchTransparency(const OdCmTransparency &transparency)
OdResult setIdentifierHeight(double height)
OdResult setBendLineTypeId(const OdDbObjectId &objId)
OdResult setHatchColor(const OdCmColor &color)
OdResult setViewIdentifierPosition(OdDbSectionViewStyle::IdentifierPosition type)
OdResult setHatchBackgroundColor(const OdCmColor &color)
OdDbObjectId bendLineTypeId() const
OdResult setBendLineColor(const OdCmColor &color)
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdCmColor arrowSymbolColor() const
double arrowSymbolExtensionLength() const
OdResult setBendLineWeight(OdDb::LineWeight lineweight)
OdDbObjectId viewLabelTextStyleId() const
virtual OdDbObjectId postViewStyleToDb(OdDbDatabase *pDb, const OdString &styleName)
bool isContinuousLabeling() const
OdResult setHatchAngles(const OdGeDoubleArray &angleArray)
OdResult setArrowSymbolExtensionLength(double length)
bool showViewLabel() const
double arrowSymbolSize() const
const OdGeDoubleArray & hatchAngles() const
double viewIdentifierOffset() const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdResult setShowAllBendIndentifiers(bool bValue)
double viewLabelOffset() const
OdResult setViewLabelAttachment(OdDbModelDocViewStyle::AttachmentPoint attachment)
OdString hatchPattern() const
OdResult setArrowEndSymbolId(const OdDbObjectId &arrowSymbolId)
bool showAllPlaneLines() const
double viewLabelTextHeight() const
OdDbSectionViewStyle::IdentifierPosition viewIdentifierPosition() const
OdDbObjectId arrowEndSymbolId() const
OdResult setArrowSymbolSize(double size)
OdDbModelDocViewStyle::TextAlignment viewLabelAlignment() const
bool showAllBendIndentifiers() const
OdCmColor hatchBackgroundColor() const
OdDbObjectId planeLineTypeId() const
OdString viewLabelPattern() const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
double endLineOvershoot() const
OdResult setShowHatching(bool bValue)
OdCmColor viewLabelTextColor() const
OdResult setViewLabelAlignment(OdDbModelDocViewStyle::TextAlignment alignment)
OdResult setViewLabelOffset(double offset)
bool showEndAndBendLines() const
OdResult setIdentifierExcludeCharacters(const OdString &str)
bool showHatching() const
OdResult setHatchPattern(const OdString &pattern)
OdResult setViewIdentifierOffset(double offset)
bool showArrowheads() const
OdResult setEndLineLength(double length)
OdDb::LineWeight bendLineWeight() const
OdResult setIdentifierStyleId(const OdDbObjectId &objId)
OdResult setShowViewLabel(bool bValue)
OdResult setContinuousLabeling(bool bValue)
double bendLineLength() const
OdResult setViewLabelTextHeight(double height)
OdResult setArrowSymbolColor(const OdCmColor &color)
ODDB_DECLARE_MEMBERS(OdDbSectionViewStyle)
OdResult setArrowPosition(OdDbSectionViewStyle::ArrowDirection type)
OdResult setShowAllPlaneLines(bool bValue)
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdCmColor planeLineColor() const
OdDbObjectId arrowStartSymbolId() const
OdResult setViewLabelTextColor(const OdCmColor &color)
OdString identifierExcludeCharacters() const
OdDbObjectId identifierStyleId() const
OdCmColor hatchColor() const
OdResult setIdentifierColor(const OdCmColor &color)
OdDb::LineWeight planeLineWeight() const
OdResult setHatchScale(double scale)
OdResult setShowEndAndBendLines(bool bValue)
OdCmTransparency hatchTransparency() const
OdResult setViewLabelTextStyleId(const OdDbObjectId &objId)
double endLineLength() const
OdString getViewLabelPattern(OdDbField *pField=NULL) const
OdResult setViewLabelPattern(const OdString &pattern, const OdDbField *pField=NULL)
virtual OdDbObjectPtr subWblockClone(OdDbIdMapping &idMap, OdDbObject *pOwner, bool isPrimary=true) const
static OdDbObjectId defaultSectionViewStyle(OdDbDatabase *db, bool init=true)
OdResult setPlaneLineTypeId(const OdDbObjectId &objId)
OdResult setArrowStartSymbolId(const OdDbObjectId &arrowSymbolId)
OdResult setPlaneLineWeight(OdDb::LineWeight lineweight)
double identifierHeight() const
OdDbModelDocViewStyle::AttachmentPoint viewLabelAttachment() const
OdResult setBendLineLength(double length)
OdDbSectionViewStyle::ArrowDirection arrowPosition() const
double hatchScale() const
OdResult setShowArrowheads(bool bValue)
OdCmColor identifierColor() const
OdResult setEndLineOvershoot(double length)
OdResult setPlaneLineColor(const OdCmColor &color)
OdCmColor bendLineColor() const
GLsizeiptr size
Definition gles2_ext.h:182
GLuint GLsizei GLsizei GLint GLenum * type
Definition gles2_ext.h:274
GLuint GLsizei GLsizei * length
Definition gles2_ext.h:274
GLenum attachment
Definition gles2_ext.h:501
GLintptr offset
Definition gles2_ext.h:183
GLint GLenum GLsizei GLsizei height
Definition gles2_ext.h:110
LineWeight
Definition OdaDefs.h:386