CFx SDK Documentation  2020SP3
DbSectionViewStyle.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_SECTIONVIEWSTYLE_H
25 #define OD_SECTIONVIEWSTYLE_H
26 
27 #include "DbModelDocViewStyle.h"
28 #include "Ge/GeDoubleArray.h"
29 
30 #include "TD_PackPush.h"
31 
39 {
40 public:
42 
47  kEndCuttingPlane = 0, // The identifier is placed at the end of the cutting plane.
48  kAboveDirectionArrowLine = 1, // The identifier is placed above the direction arrow line.
49  kAboveDirectionArrowSymbol = 2, // The identifier is placed above the direction arrow symbol.
50  kStartDirectionArrow = 3, // The identifier is placed at the start of the direction arrow.
51  kEndDirectionArrow = 4, // The identifier is placed at the end of the direction arrow.
52  };
53 
58  kTowardsCuttingPlane = 0, // The arrowheads are oriented towards the cutting plane.
59  kAwayFromCuttingPlane = 1, // The arrowheads are oriented away from the cutting plane.
60  };
61 
67 
72 
83 
88 
93 
97  double identifierHeight() const;
98 
103 
108 
121 
126 
131 
136 
141 
146 
151 
155  double arrowSymbolSize() const;
156 
161 
166 
171 
176 
181 
186 
191 
196 
201 
206 
211 
216 
221 
226 
231 
235  double bendLineLength() const;
236 
241 
245  double endLineLength() const;
246 
251 
256 
261 
266 
271 
275  double viewLabelTextHeight() const;
276 
281 
285  double viewLabelOffset() const;
286 
291 
296 
301 
306 
311 
316 
327 
340  const OdDbField* pField = NULL);
341 
346 
351 
356 
361 
366 
371 
375  double hatchScale() const;
376 
381 
385  const OdGeDoubleArray& hatchAngles() const;
386 
400 
410 
415 
419  bool isContinuousLabeling() const;
420 
430 
434  bool showArrowheads() const;
435 
445 
449  bool showViewLabel() const;
450 
460 
464  bool showAllPlaneLines() const;
465 
475 
480 
490 
494  bool showEndAndBendLines() const;
495 
505 
509  bool showHatching() const;
510 
519  OdResult setShowHatching(bool bValue);
520 
522  // Inspects the string that defines the excluded characters of an identifier and checks it
523  // for valid characters and the correct format.
524  //
525  // \param [in] str String of characters that is set as the excluded characters for the identifier.
526  //
527  // \returns
528  // True if the string is formatted correctly; false otherwise.
529  //*/
530  //static bool validateIdentifierExcludeCharacters(const OdString& str);
531 
536 
546 
550  double viewIdentifierOffset() const;
551 
561 
566 
576 
580  double endLineOvershoot() const;
581 
591 
592  // OdDbModelDocViewStyle overridden functions
593  virtual OdDbObjectId postViewStyleToDb(OdDbDatabase* pDb, const OdString& styleName);
594 
595 protected:
596  // OdDbObject overridden functions
598  virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
600  virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
601 
602 //protected:
603 // // For internal use only
604 // virtual OdDbObjectPtr subDeepClone(OdDbObject* pOwner,
605 // OdDbIdMapping& idMap, bool isPrimary = true) const;
606 // virtual OdDbObjectPtr subWblockClone(OdDbObject* pOwner,
607 // OdDbIdMapping& idMap, bool isPrimary = true) const;
608 };
609 
614 
615 #include "TD_PackPop.h"
616 
617 #endif // OD_SECTIONVIEWSTYLE_H
OdDbSectionViewStyle::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbSectionViewStyle)
OdResult
OdResult
Definition: OdResult.h:29
OdDbSectionViewStyle::arrowEndSymbolId
OdDbObjectId arrowEndSymbolId() const
OdDbSectionViewStyle::setBendLineWeight
OdResult setBendLineWeight(OdDb::LineWeight lineweight)
OdDbSectionViewStyle::ArrowDirection
ArrowDirection
Definition: DbSectionViewStyle.h:57
OdString
Definition: OdString.h:95
OdDbSectionViewStyle::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbDatabase
Definition: DbDatabase.h:421
NULL
#define NULL
Definition: GsProperties.h:177
OdDbSectionViewStyle::setHatchScale
OdResult setHatchScale(double scale)
OdDbSectionViewStyle::setHatchBackgroundColor
OdResult setHatchBackgroundColor(const OdCmColor &color)
OdDbSectionViewStyle::setIdentifierStyleId
OdResult setIdentifierStyleId(const OdDbObjectId &objId)
scale
scale
Definition: DimVarDefs.h:1684
OdDbSectionViewStyle::setViewIdentifierPosition
OdResult setViewIdentifierPosition(OdDbSectionViewStyle::IdentifierPosition type)
OdDbSectionViewStyle::setViewLabelTextHeight
OdResult setViewLabelTextHeight(double height)
OdDbSectionViewStyle::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDbSectionViewStyle::setIdentifierExcludeCharacters
OdResult setIdentifierExcludeCharacters(const OdString &str)
OdDbSectionViewStyle::isContinuousLabeling
bool isContinuousLabeling() const
OdDbSectionViewStyle::setArrowStartSymbolId
OdResult setArrowStartSymbolId(const OdDbObjectId &arrowSymbolId)
OdCmTransparency
Definition: CmColorBase.h:1617
type
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
OdDbSectionViewStyle::setBendLineTypeId
OdResult setBendLineTypeId(const OdDbObjectId &objId)
OdDbSectionViewStyle::hatchBackgroundColor
OdCmColor hatchBackgroundColor() const
OdDbSectionViewStyle::setShowArrowheads
OdResult setShowArrowheads(bool bValue)
OdDbObjectId
Definition: DbObjectId.h:99
OdDbSectionViewStyle::identifierExcludeCharacters
OdString identifierExcludeCharacters() const
OdDbSectionViewStyle::setViewLabelTextStyleId
OdResult setViewLabelTextStyleId(const OdDbObjectId &objId)
OdDbSectionViewStyle::showAllPlaneLines
bool showAllPlaneLines() const
OdDbSectionViewStyle::hatchScale
double hatchScale() const
OdDbSectionViewStyle::bendLineColor
OdCmColor bendLineColor() const
OdDbSectionViewStyle::identifierColor
OdCmColor identifierColor() const
OdArray< double, OdMemoryAllocator< double > >
OdDbSectionViewStyle::arrowSymbolColor
OdCmColor arrowSymbolColor() const
OdDbSectionViewStyle::planeLineTypeId
OdDbObjectId planeLineTypeId() const
TD_PackPop.h
OdDbModelDocViewStyle
Definition: DbModelDocViewStyle.h:36
OdDbSectionViewStyle::viewLabelPattern
OdString viewLabelPattern() const
OdDbSectionViewStyle::bendLineTypeId
OdDbObjectId bendLineTypeId() const
OdDbSectionViewStyle::setArrowEndSymbolId
OdResult setArrowEndSymbolId(const OdDbObjectId &arrowSymbolId)
OdDbSectionViewStyle::setIdentifierColor
OdResult setIdentifierColor(const OdCmColor &color)
OdDbSectionViewStyle::planeLineColor
OdCmColor planeLineColor() const
OdDbSectionViewStyle::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbSectionViewStyle::endLineOvershoot
double endLineOvershoot() const
size
GLsizeiptr size
Definition: gles2_ext.h:182
OdDbSectionViewStyle::~OdDbSectionViewStyle
~OdDbSectionViewStyle()
OdDbSectionViewStyle::bendLineLength
double bendLineLength() const
OdDbSectionViewStyle::hatchColor
OdCmColor hatchColor() const
OdDbSectionViewStyle::setViewLabelAttachment
OdResult setViewLabelAttachment(OdDbModelDocViewStyle::AttachmentPoint attachment)
OdDbSectionViewStyle::endLineLength
double endLineLength() const
OdDbModelDocViewStyle::TextAlignment
TextAlignment
Definition: DbModelDocViewStyle.h:55
OdDbSectionViewStyle::setViewLabelTextColor
OdResult setViewLabelTextColor(const OdCmColor &color)
OdDbSectionViewStyle::viewIdentifierOffset
double viewIdentifierOffset() const
OdDbSectionViewStyle::arrowSymbolExtensionLength
double arrowSymbolExtensionLength() const
attachment
GLenum attachment
Definition: gles2_ext.h:501
OdDbSectionViewStyle::setPlaneLineWeight
OdResult setPlaneLineWeight(OdDb::LineWeight lineweight)
OdDbSectionViewStyle::setHatchPattern
OdResult setHatchPattern(const OdString &pattern)
OdDbSectionViewStyle::hatchPattern
OdString hatchPattern() const
OdDbSectionViewStyle::setShowAllPlaneLines
OdResult setShowAllPlaneLines(bool bValue)
OdDbSectionViewStyle::showEndAndBendLines
bool showEndAndBendLines() const
OdDbSectionViewStyle::setViewIdentifierOffset
OdResult setViewIdentifierOffset(double offset)
OdDbSectionViewStyle::getViewLabelPattern
OdString getViewLabelPattern(OdDbField *pField=NULL) const
OdSmartPtr
Definition: SmartPtr.h:58
offset
GLintptr offset
Definition: gles2_ext.h:183
OdDbSectionViewStyle::showViewLabel
bool showViewLabel() const
OdDbSectionViewStyle::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbSectionViewStyle::IdentifierPosition
IdentifierPosition
Definition: DbSectionViewStyle.h:46
OdDbModelDocViewStyle::AttachmentPoint
AttachmentPoint
Definition: DbModelDocViewStyle.h:47
OdDbSectionViewStyle::setShowHatching
OdResult setShowHatching(bool bValue)
OdDbSectionViewStyle
Definition: DbSectionViewStyle.h:39
OdDbSectionViewStyle::postViewStyleToDb
virtual OdDbObjectId postViewStyleToDb(OdDbDatabase *pDb, const OdString &styleName)
OdDbSectionViewStyle::bendLineWeight
OdDb::LineWeight bendLineWeight() const
OdDbSectionViewStyle::setPlaneLineColor
OdResult setPlaneLineColor(const OdCmColor &color)
OdDbSectionViewStyle::setEndLineLength
OdResult setEndLineLength(double length)
OdDbSectionViewStyle::setEndLineOvershoot
OdResult setEndLineOvershoot(double length)
OdDbSectionViewStyle::hatchAngles
const OdGeDoubleArray & hatchAngles() const
OdDbSectionViewStyle::showAllBendIndentifiers
bool showAllBendIndentifiers() const
height
GLint GLenum GLsizei GLsizei height
Definition: gles2_ext.h:110
length
GLuint GLsizei GLsizei * length
Definition: gles2_ext.h:274
OdDbDxfFiler
Definition: DbFiler.h:194
OdDbSectionViewStyle::setIdentifierHeight
OdResult setIdentifierHeight(double height)
OdDbSectionViewStyle::arrowSymbolSize
double arrowSymbolSize() const
OdDbSectionViewStyle::showHatching
bool showHatching() const
TD_PackPush.h
OdDbSectionViewStyle::setArrowSymbolExtensionLength
OdResult setArrowSymbolExtensionLength(double length)
OdDbSectionViewStyle::OdDbSectionViewStyle
OdDbSectionViewStyle()
OdDbSectionViewStyle::arrowStartSymbolId
OdDbObjectId arrowStartSymbolId() const
OdDbSectionViewStyle::showArrowheads
bool showArrowheads() const
DbModelDocViewStyle.h
OdDbSectionViewStyle::setArrowPosition
OdResult setArrowPosition(OdDbSectionViewStyle::ArrowDirection type)
OdDbSectionViewStyle::setShowAllBendIndentifiers
OdResult setShowAllBendIndentifiers(bool bValue)
OdDbSectionViewStyle::setHatchTransparency
OdResult setHatchTransparency(const OdCmTransparency &transparency)
OdDbSectionViewStyle::setViewLabelPattern
OdResult setViewLabelPattern(const OdString &pattern, const OdDbField *pField=NULL)
OdDbSectionViewStyle::viewLabelAttachment
OdDbModelDocViewStyle::AttachmentPoint viewLabelAttachment() const
OdDbSectionViewStyle::viewLabelTextColor
OdCmColor viewLabelTextColor() const
OdDbSectionViewStyle::viewIdentifierPosition
OdDbSectionViewStyle::IdentifierPosition viewIdentifierPosition() const
‍**
OdDbField
Definition: DbField.h:79
OdDbSectionViewStyle::setArrowSymbolSize
OdResult setArrowSymbolSize(double size)
OdDbSectionViewStyle::hatchTransparency
OdCmTransparency hatchTransparency() const
OdDbSectionViewStyle::viewLabelOffset
double viewLabelOffset() const
OdDbSectionViewStyle::setContinuousLabeling
OdResult setContinuousLabeling(bool bValue)
OdDbSectionViewStyle::viewLabelAlignment
OdDbModelDocViewStyle::TextAlignment viewLabelAlignment() const
OdDbSectionViewStyle::viewLabelTextHeight
double viewLabelTextHeight() const
OdDbSectionViewStyle::setHatchAngles
OdResult setHatchAngles(const OdGeDoubleArray &angleArray)
OdDb::LineWeight
LineWeight
Definition: OdaDefs.h:382
OdDbSectionViewStyle::setHatchColor
OdResult setHatchColor(const OdCmColor &color)
OdDbSectionViewStylePtr
OdSmartPtr< OdDbSectionViewStyle > OdDbSectionViewStylePtr
Definition: DbSectionViewStyle.h:613
OdDbSectionViewStyle::setBendLineColor
OdResult setBendLineColor(const OdCmColor &color)
OdDbSectionViewStyle::setBendLineLength
OdResult setBendLineLength(double length)
OdDbSectionViewStyle::identifierStyleId
OdDbObjectId identifierStyleId() const
OdDbSectionViewStyle::identifierHeight
double identifierHeight() const
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdDbSectionViewStyle::arrowPosition
OdDbSectionViewStyle::ArrowDirection arrowPosition() const
OdDbSectionViewStyle::planeLineWeight
OdDb::LineWeight planeLineWeight() const
OdDbSectionViewStyle::setPlaneLineTypeId
OdResult setPlaneLineTypeId(const OdDbObjectId &objId)
OdDbSectionViewStyle::setViewLabelAlignment
OdResult setViewLabelAlignment(OdDbModelDocViewStyle::TextAlignment alignment)
OdDbSectionViewStyle::setShowEndAndBendLines
OdResult setShowEndAndBendLines(bool bValue)
OdCmColor
Definition: CmColor.h:59
OdDbSectionViewStyle::setViewLabelOffset
OdResult setViewLabelOffset(double offset)
OdDbDwgFiler
Definition: DbFiler.h:1031
OdDbSectionViewStyle::setArrowSymbolColor
OdResult setArrowSymbolColor(const OdCmColor &color)
OdDbSectionViewStyle::viewLabelTextStyleId
OdDbObjectId viewLabelTextStyleId() const
GeDoubleArray.h
OdDbSectionViewStyle::setShowViewLabel
OdResult setShowViewLabel(bool bValue)