CFx SDK Documentation  2020SP3
DbDetailViewStyle.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_DETAILVIEWSTYLE_H
25 #define OD_DETAILVIEWSTYLE_H
26 
27 #include "DbModelDocViewStyle.h"
28 
29 #include "TD_PackPush.h"
30 
38 {
39 public:
41 
46  kOutsideBoundary = 0, // Identifier is placed outside of the detail view symbol boundary.
47  kOutsideBoundaryWithLeader = 1, // Identifier is placed outside of the detail view symbol boundary, and the leader between the identifier and the boundary is drawn.
48  kOnBoundary = 2, // Identifier is placed on the detail view symbol boundary.
49  kOnBoundaryWithLeader, // Identifier is placed on the detail view symbol boundary. If then the identifier is moved out of the boundary, the leader is added.
50  };
51 
55  enum ModelEdge {
56  kSmooth = 0, // The edge of detail view symbol is to be smooth.
60  };
61 
67 
75 
85 
90 
100 
104  double identifierHeight() const;
105 
115 
119  double identifierOffset() const;
120 
125 
130 
140 
145 
149  OdResult setArrowSymbolId(const OdDbObjectId& arrowSymbolId);
150 
155 
160 
164  double arrowSymbolSize() const;
165 
170 
174  bool showArrows() const;
175  OdResult setShowArrows(bool bValue);
176 
181 
186 
191 
196 
201 
206 
211 
216 
221 
226 
231 
236 
241 
246 
251 
256 
260  double viewLabelTextHeight() const;
262 
266  double viewLabelOffset() const;
267 
272 
277 
282 
287 
292 
297 
309 
322  const OdDbField* pField = NULL);
323 
327  bool showViewLabel() const;
329 
334 
339 
344 
349 
354 
359 
364 
369 
370  // OdDbModelDocViewStyle overridden functions
371  virtual OdDbObjectId postViewStyleToDb(OdDbDatabase* pDb, const OdString& styleName);
372 
373 protected:
374  // OdDbObject overridden functions
376  virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
378  virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
379 
380 //protected:
381 // // For internal use only
382 // virtual OdDbObjectPtr subDeepClone(OdDbObject* pOwner,
383 // OdDbIdMapping& idMap, bool isPrimary = true) const;
384 // virtual OdDbObjectPtr subWblockClone(OdDbObject* pOwner,
385 // OdDbIdMapping& idMap, bool isPrimary = true) const;
386 };
387 
392 
393 #include "TD_PackPop.h"
394 
395 #endif // OD_DETAILVIEWSTYLE_H
OdDbDetailViewStyle::identifierColor
OdCmColor identifierColor() const
OdResult
OdResult
Definition: OdResult.h:29
OdString
Definition: OdString.h:95
OdDbDatabase
Definition: DbDatabase.h:421
NULL
#define NULL
Definition: GsProperties.h:177
OdDbDetailViewStyle::ModelEdge
ModelEdge
Definition: DbDetailViewStyle.h:55
OdDbDetailViewStyle::OdDbDetailViewStyle
OdDbDetailViewStyle()
OdDbDetailViewStyle::connectionLineColor
OdCmColor connectionLineColor() const
OdDbDetailViewStyle::arrowSymbolColor
OdCmColor arrowSymbolColor() const
OdDbDetailViewStyle::IdentifierPlacement
IdentifierPlacement
Definition: DbDetailViewStyle.h:45
OdDbDetailViewStyle::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbDetailViewStyle)
OdDbDetailViewStyle::showArrows
bool showArrows() const
OdDbObjectId
Definition: DbObjectId.h:99
OdDbDetailViewStyle::kSmoothWithConnectionLine
@ kSmoothWithConnectionLine
Definition: DbDetailViewStyle.h:58
OdDbDetailViewStyle::setIdentifierPlacement
OdResult setIdentifierPlacement(OdDbDetailViewStyle::IdentifierPlacement placement)
OdDbDetailViewStyle::viewLabelTextStyleId
OdDbObjectId viewLabelTextStyleId() const
OdDbDetailViewStyle::viewLabelTextHeight
double viewLabelTextHeight() const
OdDbDetailViewStyle::getViewLabelPattern
OdString getViewLabelPattern(OdDbField *pField=NULL) const
OdDbDetailViewStyle::boundaryLineColor
OdCmColor boundaryLineColor() const
OdDbDetailViewStyle::setIdentifierColor
OdResult setIdentifierColor(const OdCmColor &color)
TD_PackPop.h
OdDbModelDocViewStyle
Definition: DbModelDocViewStyle.h:36
OdDbDetailViewStyle::identifierStyleId
OdDbObjectId identifierStyleId() const
OdDbDetailViewStyle::setIdentifierOffset
OdResult setIdentifierOffset(double offset)
OdDbDetailViewStyle::viewLabelTextColor
OdCmColor viewLabelTextColor() const
OdDbDetailViewStyle
Definition: DbDetailViewStyle.h:38
size
GLsizeiptr size
Definition: gles2_ext.h:182
OdDbDetailViewStyle::setViewLabelAttachment
OdResult setViewLabelAttachment(OdDbModelDocViewStyle::AttachmentPoint attachment)
OdDbDetailViewStyle::setViewLabelTextStyleId
OdResult setViewLabelTextStyleId(const OdDbObjectId &objId)
OdDbModelDocViewStyle::TextAlignment
TextAlignment
Definition: DbModelDocViewStyle.h:55
OdDbDetailViewStyle::viewLabelAttachment
OdDbModelDocViewStyle::AttachmentPoint viewLabelAttachment() const
OdDbDetailViewStyle::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
attachment
GLenum attachment
Definition: gles2_ext.h:501
OdDbDetailViewStyle::borderLineTypeId
OdDbObjectId borderLineTypeId() const
OdDbDetailViewStyle::setViewLabelAlignment
OdResult setViewLabelAlignment(OdDbModelDocViewStyle::TextAlignment alignment)
OdDbDetailViewStyle::identifierHeight
double identifierHeight() const
OdDbDetailViewStyle::setConnectionLineColor
OdResult setConnectionLineColor(const OdCmColor &color)
OdDbDetailViewStylePtr
OdSmartPtr< OdDbDetailViewStyle > OdDbDetailViewStylePtr
Definition: DbDetailViewStyle.h:391
OdSmartPtr
Definition: SmartPtr.h:58
OdDbDetailViewStyle::setViewLabelPattern
OdResult setViewLabelPattern(const OdString &pattern, const OdDbField *pField=NULL)
offset
GLintptr offset
Definition: gles2_ext.h:183
OdDbDetailViewStyle::setArrowSymbolSize
OdResult setArrowSymbolSize(double size)
OdDbDetailViewStyle::identifierOffset
double identifierOffset() const
OdDbDetailViewStyle::setArrowSymbolId
OdResult setArrowSymbolId(const OdDbObjectId &arrowSymbolId)
OdDbModelDocViewStyle::AttachmentPoint
AttachmentPoint
Definition: DbModelDocViewStyle.h:47
OdDbDetailViewStyle::setBorderLineTypeId
OdResult setBorderLineTypeId(const OdDbObjectId &objId)
OdDbDetailViewStyle::arrowSymbolSize
double arrowSymbolSize() const
OdDbDetailViewStyle::setShowViewLabel
OdResult setShowViewLabel(bool bValue)
OdDbDetailViewStyle::kSmoothWithBorder
@ kSmoothWithBorder
Definition: DbDetailViewStyle.h:57
OdDbDetailViewStyle::setIdentifierHeight
OdResult setIdentifierHeight(double height)
OdDbDetailViewStyle::arrowSymbolId
OdDbObjectId arrowSymbolId() const
height
GLint GLenum GLsizei GLsizei height
Definition: gles2_ext.h:110
OdDbDxfFiler
Definition: DbFiler.h:194
OdDbDetailViewStyle::setViewLabelTextColor
OdResult setViewLabelTextColor(const OdCmColor &color)
OdDbDetailViewStyle::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbDetailViewStyle::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
TD_PackPush.h
DbModelDocViewStyle.h
OdDbDetailViewStyle::setConnectionLineTypeId
OdResult setConnectionLineTypeId(const OdDbObjectId &objId)
OdDbDetailViewStyle::setViewLabelTextHeight
OdResult setViewLabelTextHeight(double height)
OdDbDetailViewStyle::~OdDbDetailViewStyle
~OdDbDetailViewStyle()
OdDbDetailViewStyle::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDbDetailViewStyle::setShowArrows
OdResult setShowArrows(bool bValue)
OdDbDetailViewStyle::setBoundaryLineTypeId
OdResult setBoundaryLineTypeId(const OdDbObjectId &objId)
OdDbDetailViewStyle::viewLabelPattern
OdString viewLabelPattern() const
OdDbDetailViewStyle::setArrowSymbolColor
OdResult setArrowSymbolColor(const OdCmColor &color)
OdDbField
Definition: DbField.h:79
OdDbDetailViewStyle::setBoundaryLineColor
OdResult setBoundaryLineColor(const OdCmColor &color)
OdDbDetailViewStyle::setModelEdge
OdResult setModelEdge(OdDbDetailViewStyle::ModelEdge placement)
OdDbDetailViewStyle::setBorderLineColor
OdResult setBorderLineColor(const OdCmColor &color)
OdDbDetailViewStyle::setIdentifierStyleId
OdResult setIdentifierStyleId(const OdDbObjectId &objId)
OdDb::LineWeight
LineWeight
Definition: OdaDefs.h:382
OdDbDetailViewStyle::postViewStyleToDb
virtual OdDbObjectId postViewStyleToDb(OdDbDatabase *pDb, const OdString &styleName)
OdDbDetailViewStyle::viewLabelOffset
double viewLabelOffset() const
OdDbDetailViewStyle::connectionLineTypeId
OdDbObjectId connectionLineTypeId() const
OdDbDetailViewStyle::borderLineWeight
OdDb::LineWeight borderLineWeight() const
OdDbDetailViewStyle::boundaryLineWeight
OdDb::LineWeight boundaryLineWeight() const
OdDbDetailViewStyle::connectionLineWeight
OdDb::LineWeight connectionLineWeight() const
OdDbDetailViewStyle::modelEdge
OdDbDetailViewStyle::ModelEdge modelEdge() const
OdDbDetailViewStyle::setConnectionLineWeight
OdResult setConnectionLineWeight(OdDb::LineWeight lineweight)
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdDbDetailViewStyle::boundaryLineTypeId
OdDbObjectId boundaryLineTypeId() const
OdDbDetailViewStyle::setViewLabelOffset
OdResult setViewLabelOffset(double offset)
OdDbDetailViewStyle::showViewLabel
bool showViewLabel() const
OdDbDetailViewStyle::setBoundaryLineWeight
OdResult setBoundaryLineWeight(OdDb::LineWeight lineweight)
OdDbDetailViewStyle::identifierPlacement
OdDbDetailViewStyle::IdentifierPlacement identifierPlacement() const
OdCmColor
Definition: CmColor.h:59
OdDbDetailViewStyle::setBorderLineWeight
OdResult setBorderLineWeight(OdDb::LineWeight lineweight)
OdDbDetailViewStyle::borderLineColor
OdCmColor borderLineColor() const
OdDbDetailViewStyle::kJagged
@ kJagged
Definition: DbDetailViewStyle.h:59
OdDbDwgFiler
Definition: DbFiler.h:1031
OdDbDetailViewStyle::kOnBoundaryWithLeader
@ kOnBoundaryWithLeader
Definition: DbDetailViewStyle.h:49
OdDbDetailViewStyle::viewLabelAlignment
OdDbModelDocViewStyle::TextAlignment viewLabelAlignment() const