CFx SDK Documentation  2022 SP0
DbUnderlayReference.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_DB_UNDERLAY_REFERENCE__
25 #define __OD_DB_UNDERLAY_REFERENCE__
26 
27 #include "TD_PackPush.h"
28 #include "DbEntity.h"
29 #include "Ge/GePoint2dArray.h"
30 
37 class OdUnderlayLayer;
38 
44 {
45 public:
47 
49  OdDbDwgFiler* pFiler);
50 
51  virtual void dwgOutFields(
52  OdDbDwgFiler* pFiler) const;
53 
55  OdDbDxfFiler* pFiler);
56 
57  virtual void dxfOutFields(
58  OdDbDxfFiler* pFiler) const;
59 
61  OdGiDrawableTraits* traits) const;
62 
63  virtual bool subWorldDraw(
64  OdGiWorldDraw* pWd) const;
65 
66  virtual void subViewportDraw(
67  OdGiViewportDraw* pVd) const;
68 
69  // method with wrong input parameters - must be removed in next release
71  OdDb::OsnapMode osnapMode,
72  OdGsMarker gsSelectionMark,
73  const OdGePoint3d& pickPoint,
74  const OdGePoint3d& lastPoint,
75  const OdGeMatrix3d& viewXform,
76  const OdGeMatrix3d& ucs,
77  OdGePoint3dArray& snapPoints ) const { return eNotApplicable; }
78 
80  OdDb::OsnapMode osnapMode,
81  OdGsMarker gsSelectionMark,
82  const OdGePoint3d& pickPoint,
83  const OdGePoint3d& lastPoint,
84  const OdGeMatrix3d& xWorldToEye,
85  OdGePoint3dArray& snapPoints ) const;
86 
88  const OdGeMatrix3d& xfm);
89 
91  void setPosition(const OdGePoint3d& position);
92 
95 
96  double rotation() const;
97  void setRotation(double rotation);
98 
100  void setNormal(const OdGeVector3d& normal);
101 
103  OdResult setTransform(const OdGeMatrix3d& transform);
104 
107 
109  void setClipBoundary(const OdGePoint2d* clipBoundary, OdUInt32 nbPts);
110 
111  bool isClipped() const;
112  void setIsClipped(bool value);
113 
114  OdUInt8 contrast() const;
116 
117  OdUInt8 fade() const;
119 
120  bool isOn() const;
121  void setIsOn(bool value);
122 
123  bool isMonochrome() const;
124  void setIsMonochrome(bool value);
125 
128 
129  // must be overriden
130 
131  virtual bool isFrameVisible() const = 0;
132  virtual bool isFramePlottable() const = 0;
133 
137 
144 
145  bool isClipInverted() const;
146  void setClipInverted(bool value);
148 
150 };
151 
153 
154 
160 {
161 public:
163 
165 
166  virtual bool isFrameVisible() const;
167  virtual bool isFramePlottable() const;
168 
169  virtual bool subIsContentSnappable() const;
170  virtual OdResult subGetClassID(void* pClsid) const;
171 };
172 
174 
175 
181 {
182 public:
184 
186 
187  virtual bool isFrameVisible() const;
188  virtual bool isFramePlottable() const;
189 
190  virtual bool subIsContentSnappable() const;
191  virtual OdResult subGetClassID(void* pClsid) const;
192 
193  void setXrefDepth(OdInt32 depth);
194 };
195 
197 
203 {
204 public:
206 
208 
209  virtual bool isFrameVisible() const;
210  virtual bool isFramePlottable() const;
211 
212  virtual bool subIsContentSnappable() const;
213  virtual OdResult subGetClassID(void* pClsid) const;
214 
216 
219 // FELIX_CHANGE_BEGIN
221  OdDbDwgFiler* pFiler);
222 
224  OdDbDxfFiler* pFiler);
225 // FELIX_CHANGE_END
226 };
227 
229 
235 {
236 public:
238 
240 
242  void setInsertionPoint( const OdGePoint3d& position );
243 
244  double getScale() const;
245  void setScale( double scale );
246 
247  double getRotation() const;
248  void setRotation( double rotation );
249 
252 
255 
256  OdResult getHostDwgVisibility( bool &bVisibility )const;
257  OdResult setHostDwgVisibility( bool bVisibility );
258 
261 
264 
266  const OdGeMatrix3d& xfm );
267 
269  OdGiDrawableTraits* traits ) const;
270 
271  virtual bool subWorldDraw(
272  OdGiWorldDraw* pWd ) const;
273 
275  OdDbDwgFiler* pFiler );
276 
277  virtual void dwgOutFields(
278  OdDbDwgFiler* pFiler ) const;
279 
281  OdDbDxfFiler* pFiler );
282 
283  virtual void dxfOutFields(
284  OdDbDxfFiler* pFiler ) const;
285 };
286 
288 
289 #include "TD_PackPop.h"
290 
291 #endif // __OD_DB_UNDERLAY_REFERENCE__
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdDbDwfReference > OdDbDwfReferencePtr
OdSmartPtr< OdDbPdfReference > OdDbPdfReferencePtr
OdSmartPtr< OdDbDgnReference > OdDbDgnReferencePtr
OdSmartPtr< OdDbNavisworksReference > OdDbNavisworksReferencePtr
OdSmartPtr< OdDbUnderlayReference > OdDbUnderlayReferencePtr
scale
Definition: DimVarDefs.h:1684
ptrdiff_t OdGsMarker
unsigned int OdUInt32
int OdInt32
unsigned char OdUInt8
OdResult
Definition: OdResult.h:29
virtual bool subIsContentSnappable() const
virtual OdResult subGetClassID(void *pClsid) const
ODDB_DECLARE_MEMBERS(OdDbDgnReference)
virtual bool isFramePlottable() const
virtual bool isFrameVisible() const
void setXrefDepth(OdInt32 depth)
virtual bool isFramePlottable() const
virtual OdResult subGetClassID(void *pClsid) const
ODDB_DECLARE_MEMBERS(OdDbDwfReference)
virtual bool subIsContentSnappable() const
virtual bool isFrameVisible() const
void setInsertionUnit(OdDb::UnitsValue unitsVal)
void setInsertionPoint(const OdGePoint3d &position)
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbObjectId getDefinitionId() const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
ODDB_DECLARE_MEMBERS(OdDbNavisworksReference)
OdResult setHostDwgVisibility(bool bVisibility)
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
OdResult getHostDwgVisibility(bool &bVisibility) const
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *traits) const
double getScale() const
OdResult getName(OdString &name) const
double getInsertionUnitScaleFactor() const
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdGePoint3d getInsertionPoint() const
double getRotation() const
void setDefinitionId(OdDbObjectId id)
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdResult setTransformation(const OdGeMatrix3d &transform)
OdGeMatrix3d getTransformation() const
void setScale(double scale)
OdResult getSavedPath(OdString &path) const
void setRotation(double rotation)
virtual bool isFramePlottable() const
virtual OdResult subGetClassID(void *pClsid) const
virtual bool subIsContentSnappable() const
ODDB_DECLARE_MEMBERS(OdDbPdfReference)
virtual bool isFrameVisible() const
static OdUInt8 contrastDefault()
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *traits) const
static OdUInt8 fadeDefault()
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm)
OdGeScale3d scaleFactors() const
virtual OdResult subGetOsnapPoints(OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &viewXform, const OdGeMatrix3d &ucs, OdGePoint3dArray &snapPoints) const
OdResult getUnderlayLayer(int index, OdUnderlayLayer &layer) const
void setClipInverted(bool value)
void setDefinitionId(OdDbObjectId id)
static OdUInt8 contrastUpperLimit()
OdResult generateClipBoundaryFromPline(OdDbObjectId plId)
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
ODDB_DECLARE_MEMBERS(OdDbUnderlayReference)
static OdUInt8 contrastLowerLimit()
OdUInt8 contrast() const
void setPosition(const OdGePoint3d &position)
bool isAdjustedForBackground() const
bool isMonochrome() const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
static OdUInt8 fadeUpperLimit()
OdGeMatrix3d transform() const
OdGeVector3d normal() const
void setIsOn(bool value)
bool isClipped() const
void setScaleFactors(const OdGeScale3d &scale)
OdResult setTransform(const OdGeMatrix3d &transform)
OdUInt32 underlayLayerCount() const
void setIsClipped(bool value)
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
void setClipBoundary(const OdGePoint2d *clipBoundary, OdUInt32 nbPts)
bool isClipInverted() const
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *traits) const
virtual bool isFramePlottable() const =0
void setIsAdjustedForBackground(bool value)
static OdUInt8 fadeLowerLimit()
void setNormal(const OdGeVector3d &normal)
static OdUInt8 contrastDefault()
OdGeMatrix3d getEcs() const
virtual bool isFrameVisible() const =0
void setIsMonochrome(bool value)
void setFade(OdUInt8 value)
OdResult setUnderlayLayer(int index, const OdUnderlayLayer &layer)
OdDbObjectId definitionId() const
double rotation() const
const OdGePoint2dArray & clipBoundary() const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdUInt8 fade() const
OdGePoint3d position() const
void setContrast(OdUInt8 value)
virtual void subViewportDraw(OdGiViewportDraw *pVd) const
virtual OdResult subGetOsnapPoints(OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints) const
void setRotation(double rotation)
static OdUInt8 fadeDefault()
GLuint index
Definition: gles2_ext.h:265
GLuint const GLchar * name
Definition: gles2_ext.h:265
GLsizei const GLfloat * value
Definition: gles2_ext.h:302
OsnapMode
Definition: OdaDefs.h:478
UnitsValue
Definition: OdaDefs.h:444