CFx SDK Documentation  2022 SP0
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
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdDbSectionViewStyle > OdDbSectionViewStylePtr
scale
Definition: DimVarDefs.h:1684
#define NULL
Definition: GsProperties.h:177
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
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)
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)
const OdGeDoubleArray & hatchAngles() const
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:382