CFx SDK Documentation  2020SP3
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__
OdDbUnderlayReference::setIsClipped
void setIsClipped(bool value)
OdDbPdfReference::contrastDefault
static OdUInt8 contrastDefault()
OdResult
OdResult
Definition: OdResult.h:29
OdDbDwfReference::isFrameVisible
virtual bool isFrameVisible() const
OdDb::UnitsValue
UnitsValue
Definition: OdaDefs.h:444
OdDbUnderlayReference::setIsAdjustedForBackground
void setIsAdjustedForBackground(bool value)
OdGeVector3d
Definition: GeVector3d.h:54
OdString
Definition: OdString.h:95
OdDbUnderlayReference::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDbNavisworksReference::setRotation
void setRotation(double rotation)
OdDbNavisworksReference::getHostDwgVisibility
OdResult getHostDwgVisibility(bool &bVisibility) const
OdUInt8
unsigned char OdUInt8
Definition: OdPlatformSettings.h:759
OdDbDwfReference
Definition: DbUnderlayReference.h:160
OdDbUnderlayReference::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbUnderlayReference)
OdDbNavisworksReference::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbUnderlayReference::setNormal
void setNormal(const OdGeVector3d &normal)
scale
scale
Definition: DimVarDefs.h:1684
name
GLuint const GLchar * name
Definition: gles2_ext.h:265
OdDbPdfReference::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbNavisworksReference::getRotation
double getRotation() const
OdDbDwfReference::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbDwfReference)
OdDbDgnReference::isFramePlottable
virtual bool isFramePlottable() const
OdDbUnderlayReference::fadeLowerLimit
static OdUInt8 fadeLowerLimit()
OdDbPdfReference::isFramePlottable
virtual bool isFramePlottable() const
OdDbUnderlayReference::getUnderlayLayer
OdResult getUnderlayLayer(int index, OdUnderlayLayer &layer) const
OdDbUnderlayReference::isClipInverted
bool isClipInverted() const
OdDbUnderlayReference::setPosition
void setPosition(const OdGePoint3d &position)
OdDbUnderlayReference::setDefinitionId
void setDefinitionId(OdDbObjectId id)
OdDbObjectId
Definition: DbObjectId.h:99
OdDbNavisworksReference::setInsertionPoint
void setInsertionPoint(const OdGePoint3d &position)
OdDbPdfReference::fadeDefault
static OdUInt8 fadeDefault()
OdUnderlayLayer
Definition: DbUnderlayItem.h:48
OdGeScale3d
Definition: GeScale3d.h:47
OdDbUnderlayReference::setUnderlayLayer
OdResult setUnderlayLayer(int index, const OdUnderlayLayer &layer)
OdDbUnderlayReference::rotation
double rotation() const
OdDbUnderlayReference::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbUnderlayReference::transform
OdGeMatrix3d transform() const
OdDbUnderlayReference::setIsOn
void setIsOn(bool value)
OdDbUnderlayReference::setFade
void setFade(OdUInt8 value)
OdDbUnderlayReference::definitionId
OdDbObjectId definitionId() const
OdDbDwfReference::OdDbDwfReference
OdDbDwfReference()
OdDbUnderlayReference::isFrameVisible
virtual bool isFrameVisible() const =0
OdArray< OdGePoint3d, OdMemoryAllocator< OdGePoint3d > >
OdDbPdfReference::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbPdfReference)
OdDbNavisworksReference::setDefinitionId
void setDefinitionId(OdDbObjectId id)
OdDbNavisworksReference::subWorldDraw
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
TD_PackPop.h
OdDbNavisworksReference::setTransformation
OdResult setTransformation(const OdGeMatrix3d &transform)
OdGsMarker
ptrdiff_t OdGsMarker
Definition: OdPlatformSettings.h:889
OdDbPdfReference::subSetAttributes
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *traits) const
OdDbUnderlayReference::contrastDefault
static OdUInt8 contrastDefault()
OdDbNavisworksReference::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
OdGeMatrix3d
Definition: GeMatrix3d.h:73
OdDbUnderlayReference::fadeDefault
static OdUInt8 fadeDefault()
OdDbUnderlayReference::fade
OdUInt8 fade() const
index
GLuint index
Definition: gles2_ext.h:265
OdDbUnderlayReference::subWorldDraw
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
OdDbNavisworksReference::getDefinitionId
OdDbObjectId getDefinitionId() const
OdDbUnderlayReference::setClipInverted
void setClipInverted(bool value)
OdDbUnderlayReference::setScaleFactors
void setScaleFactors(const OdGeScale3d &scale)
OdDbPdfReference::subGetClassID
virtual OdResult subGetClassID(void *pClsid) const
OdDbUnderlayReference::position
OdGePoint3d position() const
OdDbNavisworksReference::getInsertionUnitScaleFactor
double getInsertionUnitScaleFactor() const
OdDbUnderlayReference::setContrast
void setContrast(OdUInt8 value)
OdDbNavisworksReference::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbNavisworksReference)
OdDbDgnReferencePtr
OdSmartPtr< OdDbDgnReference > OdDbDgnReferencePtr
Definition: DbUnderlayReference.h:196
OdDbDgnReference::subIsContentSnappable
virtual bool subIsContentSnappable() const
OdSmartPtr
Definition: SmartPtr.h:58
OdGePoint3d
Definition: GePoint3d.h:55
DbEntity.h
OdDbNavisworksReference
Definition: DbUnderlayReference.h:235
OdDbNavisworksReference::getSavedPath
OdResult getSavedPath(OdString &path) const
OdDbUnderlayReference::fadeUpperLimit
static OdUInt8 fadeUpperLimit()
OdInt32
int OdInt32
Definition: OdPlatformSettings.h:782
OdDbUnderlayReference::setClipBoundary
void setClipBoundary(const OdGePoint2d *clipBoundary, OdUInt32 nbPts)
OdDbUnderlayReference::normal
OdGeVector3d normal() const
OdDbPdfReference::OdDbPdfReference
OdDbPdfReference()
OdDbNavisworksReference::getName
OdResult getName(OdString &name) const
OdDbDgnReference::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbDgnReference)
OdDb::OsnapMode
OsnapMode
Definition: OdaDefs.h:478
OdDbUnderlayReference::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbUnderlayReference::scaleFactors
OdGeScale3d scaleFactors() const
OdDbDwfReference::isFramePlottable
virtual bool isFramePlottable() const
OdDbDxfFiler
Definition: DbFiler.h:194
OdDbUnderlayReferencePtr
OdSmartPtr< OdDbUnderlayReference > OdDbUnderlayReferencePtr
Definition: DbUnderlayReference.h:152
TD_PackPush.h
OdDbNavisworksReference::setScale
void setScale(double scale)
OdDbNavisworksReference::OdDbNavisworksReference
OdDbNavisworksReference()
GePoint2dArray.h
OdDbUnderlayReference::setTransform
OdResult setTransform(const OdGeMatrix3d &transform)
OdDbPdfReference::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbPdfReference::subIsContentSnappable
virtual bool subIsContentSnappable() const
OdDbNavisworksReference::getInsertionPoint
OdGePoint3d getInsertionPoint() const
OdGiWorldDraw
Definition: GiWorldDraw.h:44
OdDbUnderlayReference::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbUnderlayReference::contrastUpperLimit
static OdUInt8 contrastUpperLimit()
OdDbEntity
Definition: DbEntity.h:90
OdDbNavisworksReferencePtr
OdSmartPtr< OdDbNavisworksReference > OdDbNavisworksReferencePtr
Definition: DbUnderlayReference.h:287
OdDbUnderlayReference::isAdjustedForBackground
bool isAdjustedForBackground() const
OdDbDwfReference::subGetClassID
virtual OdResult subGetClassID(void *pClsid) const
OdGiDrawableTraits
Definition: Gi.h:71
OdDbPdfReference
Definition: DbUnderlayReference.h:203
OdDbPdfReferencePtr
OdSmartPtr< OdDbPdfReference > OdDbPdfReferencePtr
Definition: DbUnderlayReference.h:228
OdDbUnderlayReference::isClipped
bool isClipped() const
OdDbNavisworksReference::setInsertionUnit
void setInsertionUnit(OdDb::UnitsValue unitsVal)
OdDbDgnReference
Definition: DbUnderlayReference.h:181
value
GLsizei const GLfloat * value
Definition: gles2_ext.h:302
OdDbUnderlayReference::setIsMonochrome
void setIsMonochrome(bool value)
OdDbNavisworksReference::getTransformation
OdGeMatrix3d getTransformation() const
OdDbUnderlayReference::subGetOsnapPoints
virtual OdResult subGetOsnapPoints(OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &viewXform, const OdGeMatrix3d &ucs, OdGePoint3dArray &snapPoints) const
Definition: DbUnderlayReference.h:70
OdDbNavisworksReference::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDbUnderlayReference
Definition: DbUnderlayReference.h:44
OdDbDgnReference::subGetClassID
virtual OdResult subGetClassID(void *pClsid) const
OdDbUnderlayReference::generateClipBoundaryFromPline
OdResult generateClipBoundaryFromPline(OdDbObjectId plId)
OdDbNavisworksReference::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbUnderlayReference::isMonochrome
bool isMonochrome() const
OdDbUnderlayReference::contrastLowerLimit
static OdUInt8 contrastLowerLimit()
OdDbUnderlayReference::clipBoundary
const OdGePoint2dArray & clipBoundary() const
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdDbUnderlayReference::subViewportDraw
virtual void subViewportDraw(OdGiViewportDraw *pVd) const
OdDbDwfReference::subIsContentSnappable
virtual bool subIsContentSnappable() const
OdDbDgnReference::isFrameVisible
virtual bool isFrameVisible() const
OdDbNavisworksReference::setHostDwgVisibility
OdResult setHostDwgVisibility(bool bVisibility)
OdDbUnderlayReference::setRotation
void setRotation(double rotation)
OdDbDwfReferencePtr
OdSmartPtr< OdDbDwfReference > OdDbDwfReferencePtr
Definition: DbUnderlayReference.h:173
OdDbUnderlayReference::subTransformBy
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm)
OdDbUnderlayReference::subSetAttributes
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *traits) const
OdDbNavisworksReference::subTransformBy
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm)
OdDbUnderlayReference::getEcs
OdGeMatrix3d getEcs() const
OdDbPdfReference::isFrameVisible
virtual bool isFrameVisible() const
OdDbNavisworksReference::getScale
double getScale() const
OdDbUnderlayReference::subGetOsnapPoints
virtual OdResult subGetOsnapPoints(OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints) const
OdDbUnderlayReference::contrast
OdUInt8 contrast() const
OdDbDwgFiler
Definition: DbFiler.h:1031
OdDbNavisworksReference::subSetAttributes
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *traits) const
OdGiViewportDraw
Definition: GiViewportDraw.h:50
OdDbUnderlayReference::underlayLayerCount
OdUInt32 underlayLayerCount() const
OdDbUnderlayReference::isFramePlottable
virtual bool isFramePlottable() const =0
OdDbDgnReference::setXrefDepth
void setXrefDepth(OdInt32 depth)
OdDbDgnReference::OdDbDgnReference
OdDbDgnReference()
OdGePoint2d
Definition: GePoint2d.h:60
OdDbUnderlayReference::isOn
bool isOn() const