CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbUnderlayReference.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_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
37class OdUnderlayLayer;
38
44{
45public:
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
104
107
109 void setClipBoundary(const OdGePoint2d* clipBoundary, OdUInt32 nbPts);
110
111 bool isClipped() const;
112 void setIsClipped(bool value);
113
116
117 OdUInt8 fade() const;
119
120 bool isOn() const;
121 void setIsOn(bool value);
122
123 bool isMonochrome() const;
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;
148
150};
151
153
154
160{
161public:
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{
182public:
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
194};
195
197
203{
204public:
205 //DOM-IGNORE-BEGIN
207 //DOM-IGNORE-END
208
213
218 virtual bool isFrameVisible() const;
219
224 virtual bool isFramePlottable() const;
225
230 virtual bool subIsContentSnappable() const;
231
237 virtual OdResult subGetClassID(void* pClsid) const;
238
245
251
257// FELIX_CHANGE_BEGIN
259 OdDbDwgFiler* pFiler);
260
262 OdDbDxfFiler* pFiler);
263// FELIX_CHANGE_END
264};
265
270
276{
277public:
279
281
283 void setInsertionPoint( const OdGePoint3d& position );
284
285 double getScale() const;
286 void setScale( double scale );
287
288 double getRotation() const;
289 void setRotation( double rotation );
290
293
296
297 OdResult getHostDwgVisibility( bool &bVisibility )const;
298 OdResult setHostDwgVisibility( bool bVisibility );
299
302
305
307 const OdGeMatrix3d& xfm );
308
310 OdGiDrawableTraits* traits ) const;
311
312 virtual bool subWorldDraw(
313 OdGiWorldDraw* pWd ) const;
314
316 OdDbDwgFiler* pFiler );
317
318 virtual void dwgOutFields(
319 OdDbDwgFiler* pFiler ) const;
320
322 OdDbDxfFiler* pFiler );
323
324 virtual void dxfOutFields(
325 OdDbDxfFiler* pFiler ) const;
326};
327
329
330#include "TD_PackPop.h"
331
332#endif // __OD_DB_UNDERLAY_REFERENCE__
#define DBENT_EXPORT
Definition: DbExport.h:67
#define UNDERLAY_EXPORT
Definition: DbExport.h:86
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)
const OdGePoint2dArray & clipBoundary() const
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
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:489
UnitsValue
Definition: OdaDefs.h:451