CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbDetailViewStyle.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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-2022 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{
39public:
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
150
155
160
164 double arrowSymbolSize() const;
165
170
174 bool showArrows() const;
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
373protected:
374 // OdDbObject overridden functions
376 virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
378 virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
379
380 // For internal use only
381// virtual OdDbObjectPtr subDeepClone(OdDbIdMapping& idMap, OdDbObject* pOwner, bool isPrimary = true) const;
382 virtual OdDbObjectPtr subWblockClone(OdDbIdMapping& idMap, OdDbObject* pOwner, bool isPrimary = true) const;
383};
384
389
390#include "TD_PackPop.h"
391
392#endif // OD_DETAILVIEWSTYLE_H
OdSmartPtr< OdDbDetailViewStyle > OdDbDetailViewStylePtr
#define DBENT_EXPORT
Definition: DbExport.h:67
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)
virtual OdDbObjectPtr subWblockClone(OdDbIdMapping &idMap, OdDbObject *pOwner, bool isPrimary=true) const
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:386