CFx SDK Documentation  2020SP3
DbDetailSymbol.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_DETAILSYMBOL_H
25 #define OD_DETAILSYMBOL_H
26 
27 #include "DbViewSymbol.h"
28 #include "DbDetailViewStyle.h"
29 #include "TD_PackPush.h"
30 
38 {
39 public:
41 
47 
52  {
53  kCircularBoundary, // Circular boundary
54  kRectangularBoundary, // Rectangular boundary
55  kCustomBoundary // Custom boundary type
56  };
57 
58 
63  {
64  kNone = 0, // No properties are overridden
65  kModelEdge = 0x1, // Indicates the model edge type of the corresponding OdDbDetailViewStyle object has been overridden.
66  kIdentifierPosition = 0x1 << 1 // Indicates the identifier placement of the corresponding OdDbDetailViewStyle object has been overridden.
67  };
68 
73 
78 
86 
90  bool displayIdentifier() const;
91 
92 
97 
101  const OdGeVector3d direction() const;
102 
106  const OdGeVector2d& boundarySize() const;
107 
111  const OdGePoint3d& modelEdgeOrigin() const;
112 
116  double owningViewScale() const;
117 
121  double detailViewScale() const;
122 
127 
132 
133  // Methods to use internal only :
135 
136  OdResult setDetailViewScale( double viewScale );
137  OdResult setOwningViewScale( double viewScale );
138 
140 
144 
145  OdResult setDisplayIdentifier( const bool displayIdentifier );
146 
149 
150 protected:
151  // OdDbObject methods :
153  virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
155  virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
156 
157  // OdGiDrawable methods :
158  virtual bool subWorldDraw(OdGiWorldDraw* pWorldDraw) const;
159 
163 
164 };
165 
170 
171 #include "TD_PackPop.h"
172 
173 #endif // OD_DETAILSYMBOL_H
OdResult
OdResult
Definition: OdResult.h:29
OdGeVector3d
Definition: GeVector3d.h:54
OdDbDetailSymbol::setIdentifierPosition
OdResult setIdentifierPosition(const OdGePoint3d &pt)
OdDbDetailViewStyle::ModelEdge
ModelEdge
Definition: DbDetailViewStyle.h:55
OdDbDetailSymbol::modelEdgeType
OdDbDetailViewStyle::ModelEdge modelEdgeType() const
OdDbDetailSymbol
Definition: DbDetailSymbol.h:38
OdDbDetailSymbol::displayIdentifier
bool displayIdentifier() const
OdDbDetailSymbol::direction
const OdGeVector3d direction() const
OdDbDetailSymbol::kRectangularBoundary
@ kRectangularBoundary
Definition: DbDetailSymbol.h:54
OdDbDetailSymbol::origin
OdGePoint3d origin() const
OdArray< OdGePoint3d, OdMemoryAllocator< OdGePoint3d > >
TD_PackPop.h
OdDbDetailSymbol::setModelEdgeType
OdResult setModelEdgeType(OdDbDetailViewStyle::ModelEdge modelEdgeType)
OdDbDetailSymbol::subWorldDraw
virtual bool subWorldDraw(OdGiWorldDraw *pWorldDraw) const
OdDbViewSymbol
Definition: DbViewSymbol.h:39
OdGeMatrix3d
Definition: GeMatrix3d.h:73
size
GLsizeiptr size
Definition: gles2_ext.h:182
OdDbDetailSymbol::setBoundarySize
OdResult setBoundarySize(const OdGeVector2d &size)
OdDbDetailSymbol::subGetGripPoints
virtual OdResult subGetGripPoints(OdGePoint3dArray &gripPoints) const ODRX_OVERRIDE
OdDbDetailSymbol::modelEdgeOrigin
const OdGePoint3d & modelEdgeOrigin() const
OdPdfPublish::Lighting::kNone
@ kNone
Light mode is inherited from the annotation.
Definition: PdfPublishCommon.h:160
OdDbDetailSymbol::boundarySize
const OdGeVector2d & boundarySize() const
OdDbDetailSymbol::OverriddenProperty
OverriddenProperty
Definition: DbDetailSymbol.h:63
OdDbDetailSymbol::setDisplayIdentifier
OdResult setDisplayIdentifier(const bool displayIdentifier)
OdDbDetailSymbol::identifierPosition
const OdGePoint3d identifierPosition() const
OdDbDetailSymbol::setOwningViewScale
OdResult setOwningViewScale(double viewScale)
OdDbDetailSymbol::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbDetailSymbol::boundaryType
BoundaryType boundaryType() const
OdSmartPtr
Definition: SmartPtr.h:58
OdGePoint3d
Definition: GePoint3d.h:55
offset
GLintptr offset
Definition: gles2_ext.h:183
OdDbDetailSymbol::setBoundaryType
OdResult setBoundaryType(OdDbDetailSymbol::BoundaryType bndType)
DbViewSymbol.h
OdDbDetailSymbolPtr
OdSmartPtr< OdDbDetailSymbol > OdDbDetailSymbolPtr
Definition: DbDetailSymbol.h:169
OdDbDxfFiler
Definition: DbFiler.h:194
OdGeVector2d
Definition: GeVector2d.h:51
TD_PackPush.h
OdDbDetailSymbol::kCircularBoundary
@ kCircularBoundary
Definition: DbDetailSymbol.h:53
OdDbDetailSymbol::subTransformBy
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm) ODRX_OVERRIDE
OdDbDetailSymbol::setModelEdgeDirection
OdResult setModelEdgeDirection(const OdGeVector3d &dir)
OdDbDetailSymbol::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdGiWorldDraw
Definition: GiWorldDraw.h:44
OdDbDetailSymbol::BoundaryType
BoundaryType
Definition: DbDetailSymbol.h:52
OdDbDetailSymbol::isOverriddenProperty
bool isOverriddenProperty(OdDbDetailSymbol::OverriddenProperty property) const
OdDbDetailSymbol::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbDetailSymbol::setModelEdgeOrigin
OdResult setModelEdgeOrigin(const OdGePoint3d &pt)
OdDbDetailSymbol::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbDetailSymbol)
MODELDOCOBJ_EXPORT
#define MODELDOCOBJ_EXPORT
Definition: ModelDocObjExports.h:33
ODRX_OVERRIDE
#define ODRX_OVERRIDE
Definition: OdPlatformSettings.h:114
OdDbDetailSymbol::OdDbDetailSymbol
OdDbDetailSymbol()
OdDbDetailSymbol::subMoveGripPointsAt
virtual OdResult subMoveGripPointsAt(const OdIntArray &indices, const OdGeVector3d &offset) ODRX_OVERRIDE
OdDbDetailSymbol::setOrigin
OdResult setOrigin(const OdGePoint3d &pt)
OdDbDetailSymbol::owningViewScale
double owningViewScale() const
OdDbDetailSymbol::detailViewScale
double detailViewScale() const
OdDbDetailSymbol::modelEdgeDirection
const OdGeVector3d & modelEdgeDirection() const
OdDbDetailSymbol::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbDetailSymbol::~OdDbDetailSymbol
~OdDbDetailSymbol()
OdDbDetailSymbol::setDetailViewScale
OdResult setDetailViewScale(double viewScale)
OdDbDwgFiler
Definition: DbFiler.h:1031
DbDetailViewStyle.h