CFx SDK Documentation 2024 SP0
|
#include <GiContextForDbDatabase.h>
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdGiContextForDbDatabase) | |
~OdGiContextForDbDatabase () | |
virtual OdDbBaseDatabase * | database () const |
virtual OdGiDrawablePtr | openDrawable (OdDbStub *drawableId) |
virtual OdUInt32 | numberOfIsolines () const |
virtual double | commonLinetypeScale () const |
virtual OdDb::LineWeight | defaultLineWeight () const |
virtual bool | quickTextMode () const |
virtual OdUInt32 | textQuality () const |
virtual bool | useTtfTriangleCache () const |
virtual ImageQuality | imageQuality () const |
virtual OdUInt32 | imageSelectionBehavior () const |
virtual OdUInt32 | fadingIntensityPercentage (FadingType fadingType) const |
virtual bool | ttfPolyDraw () const |
virtual OdUInt32 | displaySilhouettes () const |
void | setDatabase (OdDbDatabase *pDb, bool bTrackDbDestroy=true) |
OdDbDatabase * | getDatabase () const |
virtual void | fillGsClientViewInfo (const OdDbObjectId &vpId, OdGsClientViewInfo &viewInfo) |
virtual OdDbStub * | getStubByID (OdUInt64 objectId) const |
virtual OdDbStub * | getStubByMatName (OdDbBaseDatabase *pDb, const OdString &strMatName) const |
virtual OdDbStub * | getStubByMaterialId (OdDbBaseDatabase *pDb, const OdUInt64 &materialId) const |
virtual void | getDefaultTextStyle (OdGiTextStyle &textStyle) |
unsigned int | circleZoomPercent (OdDbStub *viewportId) const |
virtual OdIntPtr | drawableFilterFunctionId (OdDbStub *viewportId) const |
virtual OdUInt32 | drawableFilterFunction (OdIntPtr functionId, const OdGiDrawable *pDrawable, OdUInt32 nFlags) |
virtual OdUInt32 | selectionStyle (OdUInt32 nStyle, OdGiSelectionStyle &selStyle) const |
virtual CoordinatesSystem | customViewportGeometryCS (CoordinatesSystem csType) const |
void | setViewportGeomCSCompatibility (bool bEnable) |
bool | useGsModel () const |
void | enableGsModel (bool enable) |
bool | isPlotGeneration () const |
void | setPlotGeneration (bool plotGeneration) |
virtual bool | isZeroTextNormals () const |
void | setZeroTextNormals (bool bZeroTextNormals) |
bool | isLayoutHelperLinkReactorsDisabled () const |
void | disableLayoutHelperLinkReactors (bool bDisableLinkReactors) |
bool | isContextualColorsManagementEnabled () const |
void | enableContextualColorsManagement (bool bEnable) |
virtual void | updateContextualColors (OdGsView *pView) |
virtual void | fillContextualColors (OdGiContextualColorsImpl *pCtxColors) |
void | setTtfPolyDrawMode (bool bPolyDraw) |
void | setUseTtfTriangleCache (bool bUseCache) |
bool | isKeepPSLayoutHelperViewEnabled () const |
void | enableKeepPSLayoutHelperView (bool bEnable) |
bool | erasePSLayoutHelperView () const |
void | setErasePSLayoutHelperView (bool bOn) |
bool | isConstantModelSpaceLineweightsEnabled () const |
void | enableConstantModelSpaceLineweights (bool bEnable) |
bool | isForceDisplaySilhouettesEnabled () const |
void | setForceDisplaySilhouettes (bool bOn) |
bool | fillTtf () const |
bool | fillMode () const |
ODCOLORREF | paletteBackground () const |
void | setPaletteBackground (ODCOLORREF paletteBackground) |
void | loadPlotStyleTable (OdStreamBuf *pStreamBuf) |
virtual PStyleType | plotStyleType () const |
virtual void | plotStyle (int penNumber, OdPsPlotStyleData &plotStyleData) const |
virtual void | plotStyle (OdDbStub *psNameId, OdPsPlotStyleData &plotStyleData) const |
virtual OdGiSectionGeometryManagerPtr | getSectionGeometryManager () |
virtual OdUInt32 | antiAliasingMode () const |
virtual bool | xrefPropertiesOverride () const |
SolidHatchAsPolygonMode | hatchAsPolygon () const |
void | setHatchAsPolygon (SolidHatchAsPolygonMode mode) |
virtual bool | forceSortents () const |
Public Member Functions inherited from OdGiDefaultContext | |
ODRX_DECLARE_MEMBERS (OdGiDefaultContext) | |
OdGiDefaultContext () | |
~OdGiDefaultContext () | |
virtual void | getDefaultTextStyle (OdGiTextStyle &textStyle) |
virtual void | drawText (OdGiCommonDraw *pDraw, OdGePoint3d &position, const OdChar *msg, OdInt32 numBytes, const OdGiTextStyle *pTextStyle, OdUInt32 flags=0) |
virtual void | drawText (OdGiCommonDraw *pDraw, OdGePoint3d &position, double height, double width, double oblique, const OdString &msg) |
virtual void | drawText (OdGiConveyorGeometry *pDest, const OdGePoint3d &position, const OdGeVector3d &direction, const OdGeVector3d &upVector, const OdChar *msg, OdInt32 nLength, bool raw, const OdGiTextStyle *pTextStyle, const OdGeVector3d *pExtrusion) |
virtual void | drawShape (OdGiCommonDraw *pDraw, OdGePoint3d &position, int shapeNumber, const OdGiTextStyle *pTextStyle) |
void | drawShape (OdGiConveyorGeometry *pDest, const OdGePoint3d &position, const OdGeVector3d &direction, const OdGeVector3d &upVector, int shapeNumber, const OdGiTextStyle *pTextStyle, const OdGeVector3d *pExtrusion) |
virtual void | textExtentsBox (const OdGiTextStyle &textStyle, const OdChar *msg, int nLength, OdUInt32 flags, OdGePoint3d &min, OdGePoint3d &max, OdGePoint3d *pEndPos=0) |
virtual void | shapeExtentsBox (const OdGiTextStyle &textStyle, int shapeNumber, OdGePoint3d &min, OdGePoint3d &max) |
virtual void | setPlotGeneration (bool plotGeneration)=0 |
virtual ODCOLORREF | paletteBackground () const =0 |
virtual void | setPaletteBackground (ODCOLORREF paletteBackground)=0 |
virtual bool | isZeroTextNormals () const |
virtual bool | supportVerticalTTFText () const |
virtual bool | useGsModel () const |
virtual void | enableGsModel (bool enable) |
virtual SolidHatchAsPolygonMode | hatchAsPolygon () const |
virtual void | setHatchAsPolygon (SolidHatchAsPolygonMode mode) |
virtual OdDbStub * | getStubByID (OdUInt64 persistentId) const |
virtual OdUInt64 | getIDByStub (OdDbStub *objectId) const |
virtual OdDbBaseDatabase * | getDatabaseByStub (OdDbStub *objectId) const |
virtual OdDbStub * | getOwnerIDByStub (OdDbStub *objectId) const |
Public Member Functions inherited from OdGiContext | |
ODRX_DECLARE_MEMBERS (OdGiContext) | |
virtual OdDbBaseDatabase * | database () const =0 |
virtual OdGiDrawablePtr | openDrawable (OdDbStub *drawableId)=0 |
virtual OdDb::LineWeight | defaultLineWeight () const |
virtual double | commonLinetypeScale () const |
virtual void | getDefaultTextStyle (OdGiTextStyle &textStyle) |
virtual void | drawShape (OdGiCommonDraw *pDraw, OdGePoint3d &position, int shapeNumber, const OdGiTextStyle *pTextStyle) |
virtual void | drawShape (OdGiConveyorGeometry *pDest, const OdGePoint3d &position, const OdGeVector3d &direction, const OdGeVector3d &upVector, int shapeNumber, const OdGiTextStyle *pTextStyle, const OdGeVector3d *pExtrusion) |
virtual void | drawText (OdGiCommonDraw *pDraw, OdGePoint3d &position, const OdChar *msg, OdInt32 numBytes, const OdGiTextStyle *pTextStyle, OdUInt32 flags=0) |
virtual void | drawText (OdGiCommonDraw *pDraw, OdGePoint3d &position, double height, double width, double oblique, const OdString &msg) |
virtual void | drawText (OdGiConveyorGeometry *pDest, const OdGePoint3d &position, const OdGeVector3d &direction, const OdGeVector3d &upVector, const OdChar *msg, OdInt32 numBytes, bool raw, const OdGiTextStyle *pTextStyle, const OdGeVector3d *pExtrusion) |
virtual void | textExtentsBox (const OdGiTextStyle &textStyle, const OdChar *msg, int nLength, OdUInt32 flags, OdGePoint3d &min, OdGePoint3d &max, OdGePoint3d *pEndPos=0) |
virtual void | shapeExtentsBox (const OdGiTextStyle &textStyle, int shapeNumber, OdGePoint3d &min, OdGePoint3d &max) |
virtual unsigned int | circleZoomPercent (OdDbStub *viewportId) const |
virtual bool | isPlotGeneration () const |
virtual ODCOLORREF | paletteBackground () const |
virtual bool | fillTtf () const |
virtual OdUInt32 | numberOfIsolines () const |
virtual bool | fillMode () const |
virtual bool | quickTextMode () const |
virtual OdUInt32 | textQuality () const |
virtual bool | useTtfTriangleCache () const |
virtual ImageQuality | imageQuality () const |
virtual OdUInt32 | imageSelectionBehavior () const |
virtual OdUInt32 | fadingIntensityPercentage (FadingType fadingType) const |
virtual OdUInt32 | glyphSize (GlyphType glyphType) const |
virtual OdUInt32 | lineWeightConfiguration (LineWeightStyle styleEntry) const |
virtual OdUInt32 | selectionStyle (OdUInt32 nStyle, OdGiSelectionStyle &selStyle) const |
virtual CoordinatesSystem | customViewportGeometryCS (CoordinatesSystem csType) const |
virtual OdIntPtr | drawableFilterFunctionId (OdDbStub *viewportId) const |
virtual OdUInt32 | drawableFilterFunction (OdIntPtr functionId, const OdGiDrawable *pDrawable, OdUInt32 nFlags) |
virtual bool | ttfPolyDraw () const |
virtual bool | regenAbort () const |
virtual PStyleType | plotStyleType () const |
virtual void | plotStyle (int penNumber, OdPsPlotStyleData &plotStyleData) const |
virtual void | plotStyle (OdDbStub *objectId, OdPsPlotStyleData &plotStyleData) const |
virtual OdDbStub * | getStubByID (OdUInt64 persistentId) const |
virtual OdUInt64 | getIDByStub (OdDbStub *objectId) const |
virtual OdDbBaseDatabase * | getDatabaseByStub (OdDbStub *objectId) const |
virtual OdDbStub * | getOwnerIDByStub (OdDbStub *objectId) const |
virtual OdDbStub * | getStubByMatName (OdDbBaseDatabase *pBaseDb, const OdString &strMatName) const |
virtual OdDbStub * | getStubByMaterialId (OdDbBaseDatabase *pBaseDb, const OdUInt64 &materialId) const |
virtual OdUInt32 | displaySilhouettes () const |
bool | displayMeshSilhouettes () const |
bool | displayModelerSilhouettes () const |
virtual OdGiSectionGeometryManagerPtr | getSectionGeometryManager () |
virtual OdUInt32 | antiAliasingMode () const |
virtual bool | xrefPropertiesOverride () const |
virtual bool | multiplyByBlockLinetypeScales () const |
Public Member Functions inherited from OdRxObject | |
ODRX_HEAP_OPERATORS () | |
OdRxObject () | |
virtual | ~OdRxObject () |
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
virtual OdRxObject * | x (const OdRxClass *pClass) const |
virtual OdRxClass * | isA () const |
virtual void | addRef ()=0 |
virtual void | release ()=0 |
virtual long | numRefs () const |
bool | isKindOf (const OdRxClass *pClass) const |
virtual OdRxObjectPtr | clone () const |
virtual void | copyFrom (const OdRxObject *pSource) |
virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
virtual bool | isEqualTo (const OdRxObject *pOther) const |
Protected Member Functions | |
OdGiContextForDbDatabase () | |
Protected Attributes | |
ODCOLORREF | m_paletteBackground |
OdPsPlotStyleTablePtr | m_pPlotStyleTable |
This class defines the operations and properties that are used in the vectorization of an OdDbDatabase.
Corresponding C++ library: TD_Db
<group OdDb_Classes>
Definition at line 51 of file GiContextForDbDatabase.h.
|
protected |
OdGiContextForDbDatabase::~OdGiContextForDbDatabase | ( | ) |
|
virtual |
Controls rendering anti-aliasing.
Reimplemented from OdGiContext.
|
virtual |
Retrieves the circle zoom percent for this vectorization process.
viewportId | [in] Pointer to the Object ID of the Viewport object to be queried. |
Reimplemented from OdGiContext.
|
virtual |
Retrieves the common linetype scale for this Context object.
Reimplemented from OdGiContext.
|
virtual |
Specifies behavior of OdGiViewportGeometry::polylineEye/polygonEye/polylineDc/polygonDc methods.
csType | [in] Input geometry primitive coordinates system. |
Reimplemented from OdGiContext.
|
virtual |
Retrieves the database that is currently being vectorized.
Implements OdGiContext.
|
virtual |
Retrieves the default lineweight associated with this Context object.
Reimplemented from OdGiContext.
void OdGiContextForDbDatabase::disableLayoutHelperLinkReactors | ( | bool | bDisableLinkReactors | ) |
Controls the kDisableLayoutHelperLinkReactors flag of this Context Object.
bDisableLinkReactors | [in] Controls layout link reactors flag. |
|
virtual |
Retrieves a silhouette type.
Reimplemented from OdGiContext.
|
virtual |
Retrieves the set of flags for the drawable filtration function (will be called for each drawable vectorization).
functionId | [in] Internal drawable filtration function ID. |
pDrawable | [in] Currently vectorizing drawable pointer. |
nFlags | [in] Set of input flags. |
Reimplemented from OdGiContext.
|
virtual |
Retrieves internal drawable filtration function ID. Must be implemented in derived classes.
viewportId | [in] Pointer to the Object ID of the Viewport object to be queried. |
Reimplemented from OdGiContext.
void OdGiContextForDbDatabase::enableConstantModelSpaceLineweights | ( | bool | bEnable | ) |
Controls behavior of ModelSpace lineweights.
bEnable | [in] Enable contant ModelSpace lineweights. |
void OdGiContextForDbDatabase::enableContextualColorsManagement | ( | bool | bEnable | ) |
Controls the kManageContextualColors flag of this Context Object.
bEnable | [in] Controls contextual colors management flag. |
|
virtual |
Controls the GsModel flag of this Context Object.
enable | [in] Controls the Gs Model. |
Reimplemented from OdGiDefaultContext.
void OdGiContextForDbDatabase::enableKeepPSLayoutHelperView | ( | bool | bEnable | ) |
Controls the kKeepPSLayoutHelperView flag of this Context Object.
bEnable | [in] Controls PaperSpace layout helper view management flag. |
bool OdGiContextForDbDatabase::erasePSLayoutHelperView | ( | ) | const |
Returns true if and only if the kErasePSLayoutHelperView flag of this Context Object is set.
|
virtual |
Retrieves Fading intensity percentage.
fadingType | [in] Fading type. |
Reimplemented from OdGiContext.
|
virtual |
Initialize contextual colors container by contextual colors values.
pCtxColors | [in] Pointer to contextual colors container. |
|
virtual |
Returns the OdGsClientViewInfo for the specified viewport.
vpId | [in] Object ID of the viewport. |
viewInfo | [out] Receives the client view info. |
|
virtual |
Returns true if and only if shell/mesh geometry primitives should be filled during this vectorization.
Reimplemented from OdGiContext.
|
virtual |
Returns true if and only if filling of TrueType fonts is enabled.
Reimplemented from OdGiContext.
|
inlinevirtual |
Returns true if Sortents table should be always taken into account (even in explode operation).
Definition at line 396 of file GiContextForDbDatabase.h.
OdDbDatabase * OdGiContextForDbDatabase::getDatabase | ( | ) | const |
Returns the database that is currently being vectorized.
|
virtual |
Retrieves the default text style associated with this Context object.
textStyle | [out] Receives the TextStyle object. |
Reimplemented from OdGiDefaultContext.
|
virtual |
Returns an interface for access section geometry functionality.
Reimplemented from OdGiContext.
|
virtual |
Returns the OdDbStub for the specified handle id.
objectId | [in] Object ID of the object. Returns the pointer to OdDbStub. |
Reimplemented from OdGiDefaultContext.
|
virtual |
Converts a material id into an Object ID. This method may check that converted Object ID is really material.
pBaseDb | [in] Pointer to a database. |
materialId | [in] Material identifier. |
Reimplemented from OdGiContext.
|
virtual |
Converts a material name into an Object ID.
pBaseDb | [in] Pointer to a database where to search for material name. |
strMatName | [in] Material name. |
Reimplemented from OdGiContext.
|
virtual |
Returns SolidHatchAsPolygonMode set for this Context Object.
Reimplemented from OdGiDefaultContext.
|
virtual |
Retrieves the image quality for this vectorization process.
Reimplemented from OdGiContext.
|
virtual |
Retrieves a value that represents image selection behavior of a database.
Reimplemented from OdGiContext.
bool OdGiContextForDbDatabase::isConstantModelSpaceLineweightsEnabled | ( | ) | const |
Returns current behavior of ModelSpace lineweights.
bool OdGiContextForDbDatabase::isContextualColorsManagementEnabled | ( | ) | const |
Returns true if and only the kManageContextualColors flag of this Context Object is set.
bool OdGiContextForDbDatabase::isForceDisplaySilhouettesEnabled | ( | ) | const |
Returns current state of display silhouettes forcing mode.
bool OdGiContextForDbDatabase::isKeepPSLayoutHelperViewEnabled | ( | ) | const |
Returns true if and only if the kKeepPSLayoutHelperView flag of this Context Object is set.
bool OdGiContextForDbDatabase::isLayoutHelperLinkReactorsDisabled | ( | ) | const |
Returns true if and only the kDisableLayoutHelperLinkReactors flag of this Context Object is set.
|
virtual |
Returns true if and only the PlotGeneration flag of this Context Object is set.
Reimplemented from OdGiContext.
|
virtual |
Returns true if and only the kOdGiZeroTextNormals flag of this Context Object is set.
Reimplemented from OdGiDefaultContext.
void OdGiContextForDbDatabase::loadPlotStyleTable | ( | OdStreamBuf * | pStreamBuf | ) |
Loads the specified plot style table for this Context object.
pStreamBuf | [in] Pointer to the StreamBuf object from which the data are to be read. |
|
virtual |
Retrieves the number of isolines to be drawn on surfaces during this vectorization.
Reimplemented from OdGiContext.
OdGiContextForDbDatabase::ODRX_DECLARE_MEMBERS | ( | OdGiContextForDbDatabase | ) |
|
virtual |
Opens for reading the specified drawable object that belongs to the database associated with this Context object.
drawableId | [in] Object ID of the drawable to be opened. |
Implements OdGiContext.
|
inlinevirtual |
Returns the palette background color for this Context object.
Implements OdGiDefaultContext.
Definition at line 334 of file GiContextForDbDatabase.h.
|
virtual |
Returns the plot style data for the specified pen number.
penNumber | [in] Pen number. |
plotStyleData | [out] Receives the plot style data. |
Reimplemented from OdGiContext.
|
virtual |
Returns the plot style data for the specified object Id.
psNameId | [in] Object id of the plot style name. |
plotStyleData | [out] Receives the plot style data. |
Reimplemented from OdGiContext.
|
virtual |
Returns the plot style type for this Context object.
Reimplemented from OdGiContext.
|
virtual |
Retrieves true if and only if quick text mode is enabled for this vectorization process.
Reimplemented from OdGiContext.
|
virtual |
Returns the selection style for entities highlighting.
nStyle | [in] Selection style index. |
selStyle | [out] Receives the selection style data. |
Reimplemented from OdGiContext.
void OdGiContextForDbDatabase::setDatabase | ( | OdDbDatabase * | pDb, |
bool | bTrackDbDestroy = true |
||
) |
Sets the database to be vectorized.
pDb | [in] Pointer to the database. |
bTrackDbDestroy | [in] if to the database is not NULL then this parameter specifies if implementation should track database lifetime (by adding reactor to the database and processing OdDbDatabaseReactor::goodbye() event) and to clear pointer to the database if it will be destroyed. If you sure that lifetime of this object is shorter then lifetime of the database you may set this parameter to false to turn off unnecessary database lifetime tracking. |
void OdGiContextForDbDatabase::setErasePSLayoutHelperView | ( | bool | bOn | ) |
Controls the kErasePSLayoutHelperView flag of this Context Object.
bEnable | [in] Controls PaperSpace layout helper view management flag. |
void OdGiContextForDbDatabase::setForceDisplaySilhouettes | ( | bool | bOn | ) |
Sets current state of display silhouettes forcing mode.
bOn | [in] Enable or disable display silhouettes forcing. |
|
virtual |
Controls SolidHatchAsPolygonMode of this Context Object.
bOn | [in] Controls hatch as polygon generation. |
Reimplemented from OdGiDefaultContext.
|
inlinevirtual |
Sets the palette background color for this Context object.
paletteBackground | [in] Palette background. |
Implements OdGiDefaultContext.
Definition at line 339 of file GiContextForDbDatabase.h.
|
virtual |
Controls the PlotGeneration flag of this Context Object.
plotGeneration | [in] Controls plot generation. |
Implements OdGiDefaultContext.
void OdGiContextForDbDatabase::setTtfPolyDrawMode | ( | bool | bPolyDraw | ) |
Enables TrueType text contours info output.
bPolyDraw | [in] Controls kTTFPolyDraw flag of this Context Object. |
void OdGiContextForDbDatabase::setUseTtfTriangleCache | ( | bool | bUseCache | ) |
Enables TrueType use triangle cache
bPolyDraw | [in] Controls kUseTtfTriangleCache flag of this Context Object. |
void OdGiContextForDbDatabase::setViewportGeomCSCompatibility | ( | bool | bEnable | ) |
Controls coordinate systems for OdGiViewportGeometry::polylineEye/polygonEye/polylineDc/polygonDc geometry primitives.
bEnable | [in] Set to true to enable compatibility mode (polylineEye/polygonEye/polylineDc/polygonDc geometry primitives work in WCS). Set to false (default) to disable compatibility mode (polylineEye/polygonEye work in ECS and polylineDc/polygonDc work in normalized DCS) |
void OdGiContextForDbDatabase::setZeroTextNormals | ( | bool | bZeroTextNormals | ) |
Controls the ZeroTextNormals flag of this Context Object.
bZeroTextNormals | [in] Controls text normals generation. |
|
virtual |
Retrieves the text quality percent for this vectorization process.
Reimplemented from OdGiContext.
|
virtual |
Checks whether smooth contours information output is used for TrueType fonts.
Reimplemented from OdGiContext.
Update view contextual colors after view changes.
pView | [in] View pointer for update contextual colors. |
|
virtual |
Returns true if and only the GsModel flag of this Context Object is set..
Reimplemented from OdGiDefaultContext.
|
virtual |
Retrieves true if and only if triangle cache for ttf fonts is enabled for this vectorization process.
Reimplemented from OdGiContext.
|
virtual |
Controls Xref properties overriding.
Reimplemented from OdGiContext.
|
protected |
Definition at line 89 of file GiContextForDbDatabase.h.
|
protected |
Definition at line 90 of file GiContextForDbDatabase.h.