CFx SDK Documentation  2022 SP0
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
OdSmartPtr< OdDbDetailViewStyle > OdDbDetailViewStylePtr
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
#define NULL
Definition: GsProperties.h:177
OdResult
Definition: OdResult.h:29
OdCmColor identifierColor() const
OdCmColor boundaryLineColor() const
OdResult setBorderLineColor(const OdCmColor &color)
OdDbDetailViewStyle::ModelEdge modelEdge() const
OdResult setArrowSymbolId(const OdDbObjectId &arrowSymbolId)
double viewLabelTextHeight() const
OdResult setArrowSymbolSize(double size)
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdResult setIdentifierPlacement(OdDbDetailViewStyle::IdentifierPlacement placement)
OdDbModelDocViewStyle::TextAlignment viewLabelAlignment() const
OdResult setModelEdge(OdDbDetailViewStyle::ModelEdge placement)
OdDbModelDocViewStyle::AttachmentPoint viewLabelAttachment() const
OdResult setShowViewLabel(bool bValue)
OdDbObjectId viewLabelTextStyleId() const
OdResult setBoundaryLineColor(const OdCmColor &color)
OdResult setBoundaryLineWeight(OdDb::LineWeight lineweight)
OdResult setViewLabelAlignment(OdDbModelDocViewStyle::TextAlignment alignment)
OdDbObjectId arrowSymbolId() const
OdResult setViewLabelTextHeight(double height)
OdCmColor connectionLineColor() const
OdResult setViewLabelTextColor(const OdCmColor &color)
OdDbDetailViewStyle::IdentifierPlacement identifierPlacement() const
OdDbObjectId connectionLineTypeId() const
OdResult setArrowSymbolColor(const OdCmColor &color)
OdResult setIdentifierOffset(double offset)
OdResult setConnectionLineColor(const OdCmColor &color)
OdDbObjectId identifierStyleId() const
ODDB_DECLARE_MEMBERS(OdDbDetailViewStyle)
OdResult setIdentifierHeight(double height)
double identifierOffset() const
OdDb::LineWeight connectionLineWeight() const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdCmColor borderLineColor() const
OdDbObjectId borderLineTypeId() const
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
virtual OdDbObjectId postViewStyleToDb(OdDbDatabase *pDb, const OdString &styleName)
bool showArrows() const
OdResult setConnectionLineWeight(OdDb::LineWeight lineweight)
double identifierHeight() const
OdDb::LineWeight borderLineWeight() const
OdString getViewLabelPattern(OdDbField *pField=NULL) const
OdCmColor arrowSymbolColor() const
OdResult setConnectionLineTypeId(const OdDbObjectId &objId)
OdResult setViewLabelPattern(const OdString &pattern, const OdDbField *pField=NULL)
OdResult setBorderLineWeight(OdDb::LineWeight lineweight)
OdResult setViewLabelTextStyleId(const OdDbObjectId &objId)
OdDb::LineWeight boundaryLineWeight() const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdResult setIdentifierColor(const OdCmColor &color)
OdResult setBorderLineTypeId(const OdDbObjectId &objId)
OdResult setViewLabelOffset(double offset)
OdResult setViewLabelAttachment(OdDbModelDocViewStyle::AttachmentPoint attachment)
OdString viewLabelPattern() const
bool showViewLabel() const
OdResult setIdentifierStyleId(const OdDbObjectId &objId)
OdCmColor viewLabelTextColor() const
double arrowSymbolSize() const
OdResult setBoundaryLineTypeId(const OdDbObjectId &objId)
OdResult setShowArrows(bool bValue)
double viewLabelOffset() const
OdDbObjectId boundaryLineTypeId() const
GLsizeiptr size
Definition: gles2_ext.h:182
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