24#ifndef __OD_DB_UNDERLAY_ITEM__
25#define __OD_DB_UNDERLAY_ITEM__
68 class OdUnderlayLayerImpl* m_pImpl;
187 typedef bool( *FnAbort )(
void* pData );
OdSmartPtr< OdDbUnderlayItem > OdDbUnderlayItemPtr
OdSmartPtr< OdDbUnderlayItemPE2 > OdDbUnderlayItemPE2Ptr
OdSmartPtr< OdDbUnderlayItemPE > OdDbUnderlayItemPEPtr
virtual OdString getName() const =0
virtual OdGiRasterImagePtr getThumbnail(int width, int height) const
ODRX_DECLARE_MEMBERS(OdDbUnderlayItem)
virtual OdResult getMediaBox(OdGePoint2d &min, OdGePoint2d &max) const
virtual void viewportDraw(OdGiViewportDraw *pVd, const OdDbUnderlayDrawContext &context) const =0
virtual OdDb::UnitsValue getUnits() const =0
virtual OdGiRasterImagePtr getThumbnail() const =0
virtual OdRxObjectPtr getSubEntityAtGsMarker(const OdGeMatrix3d &modelToWorld, OdGsMarker gsSelectionMark) const
virtual OdResult intersectWith(const OdGeMatrix3d &modelToWorld, const OdRxObject *pEnt, OdDb::Intersect intType, const OdGePlane *projPlane, OdGePoint3dArray &points, OdGsMarker thisGsMarker, OdGsMarker otherGsMarker) const
virtual OdUInt32 underlayLayerCount() const
virtual bool worldDraw(OdGiWorldDraw *pWd, const OdDbUnderlayDrawContext &context) const =0
virtual bool usingPartialContent() const
virtual OdResult getUnderlayLayer(int idx, OdUnderlayLayer &layer) const
virtual OdResult getOsnapPoints(const OdGeMatrix3d &modelToWorld, OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &viewXform, const OdGeMatrix3d &ucs, OdGePoint3dArray &snapPoints, OdIntArray &geomIds) const
virtual void getExtents(OdGePoint2d &min, OdGePoint2d &max) const =0
virtual OdGeMatrix3d modelTransform() const
virtual void getParameters(OdDbUnderlayItemPtr item, const DwgParams &dwgParams, std::vector< PdfParams > &pdfParams) const =0
virtual void getPageSize(OdDbUnderlayItemPtr item, OdGePoint2d &pageSize) const =0
virtual void getMeasureDictInfo(OdDbUnderlayItemPtr item, double &measure) const =0
ODRX_DECLARE_MEMBERS(OdDbUnderlayItemPE2)
virtual void getImage(OdDbUnderlayItemPtr item, const PdfParams &pdfParams, Abort abort, ODCOLORREF backgroundColor, const OdDbUnderlayDrawContext &context, OdGiRasterImagePtr &pImage) const =0
virtual void getImage(OdDbUnderlayItemPtr item, bool isPreview, const OdGePoint2d &pixelDensity, double ds, const OdGeMatrix3d &x, const OdGePoint2d vps[], ODCOLORREF backgroundColor, const OdDbUnderlayDrawContext &context, OdUInt32 viewportId, OdDbUnderlayReference *obj, bool isPlotGeneration, OnImageReady *pCallback) const =0
ODRX_DECLARE_MEMBERS(OdDbUnderlayItemPE)
virtual bool viewportDraw(OdDbUnderlayItemPtr item, OdGiViewportDraw *pVd, const OdDbUnderlayDrawContext &context, const OdDbUnderlayReference *obj) const =0
virtual OdGiRasterImagePtr getThumbnail(OdDbUnderlayItem *pItem, int width, int height) const =0
OdUnderlayLayer(const OdUnderlayLayer &source)
void setName(const OdString &name)
void setState(State state)
GLint GLenum GLsizei width
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)
GLuint const GLchar * name
GLsizei GLsizei GLchar * source
GLint GLenum GLsizei GLsizei height
bool adjustColorForBackground
OdArray< OdUnderlayLayer > layers
OdGePoint2d _pixelDensity
PdfParams(const OdGeExtents2d &clipRect, double measureScale, double dpi_ratio)
static void GetUV(const OdGeExtents2d &clipRect, double measureScale, double dpi_ratio, OdGePoint3d &origin, OdGeVector3d &u, OdGeVector3d &v)