CFx SDK Documentation  2022 SP0
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
OdSmartPtr< OdDbDetailSymbol > OdDbDetailSymbolPtr
#define MODELDOCOBJ_EXPORT
#define ODRX_OVERRIDE
OdResult
Definition: OdResult.h:29
double owningViewScale() const
OdResult setDisplayIdentifier(const bool displayIdentifier)
OdGePoint3d origin() const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdResult setOwningViewScale(double viewScale)
OdResult setOrigin(const OdGePoint3d &pt)
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdResult setDetailViewScale(double viewScale)
bool isOverriddenProperty(OdDbDetailSymbol::OverriddenProperty property) const
OdResult setModelEdgeDirection(const OdGeVector3d &dir)
const OdGePoint3d identifierPosition() const
ODDB_DECLARE_MEMBERS(OdDbDetailSymbol)
const OdGeVector3d & modelEdgeDirection() const
double detailViewScale() const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbDetailViewStyle::ModelEdge modelEdgeType() const
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm) ODRX_OVERRIDE
OdResult setModelEdgeOrigin(const OdGePoint3d &pt)
OdResult setBoundarySize(const OdGeVector2d &size)
BoundaryType boundaryType() const
virtual OdResult subGetGripPoints(OdGePoint3dArray &gripPoints) const ODRX_OVERRIDE
OdResult setIdentifierPosition(const OdGePoint3d &pt)
bool displayIdentifier() const
const OdGePoint3d & modelEdgeOrigin() const
OdResult setModelEdgeType(OdDbDetailViewStyle::ModelEdge modelEdgeType)
const OdGeVector3d direction() const
const OdGeVector2d & boundarySize() const
OdResult setBoundaryType(OdDbDetailSymbol::BoundaryType bndType)
virtual OdResult subMoveGripPointsAt(const OdIntArray &indices, const OdGeVector3d &offset) ODRX_OVERRIDE
virtual bool subWorldDraw(OdGiWorldDraw *pWorldDraw) const
GLsizeiptr size
Definition: gles2_ext.h:182
GLintptr offset
Definition: gles2_ext.h:183
@ kNone
Light mode is inherited from the annotation.