CFx SDK Documentation
2023 SP0
|
#include <GiCommonDraw.h>
Public Types | |
enum | ImageQuality { kImageQualityDraft = 0 , kImageQualityHigh = 1 } |
enum | FadingType { kLockedLayerFade = 0 , kXrefFade = 1 , kRefEditFade = 2 } |
enum | GlyphType { kLightGlyph = 0 , kCameraGlyph = 1 } |
enum | LineWeightStyle { kPointLineWeight = 0 , kLineCapStyle = 1 , kLineJoinStyle = 2 } |
enum | DrawableFilterInputFlags { kNestedDrawable = 0x1000000 } |
enum | DrawableFilterOutputFlags { kSkipVectorization = 1 } |
enum | DrawableFilterRanges { kDrawableFilterAppRangeStart = 0x1000000 , kDrawableFilterAppRangeMask = (OdInt32)0xFF000000 } |
enum | PStyleType { kPsNone = 0 , kPsByColor = 1 , kPsByName = 2 } |
enum | SilhouetteType { kNoSilhouettes = 0 , kMeshSilhouettes = (1 << 0) , kModelerSilhouettes = (1 << 1) , kAllSilhouettes = kMeshSilhouettes | kModelerSilhouettes } |
Public Member Functions | |
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 ImageQuality | imageQuality () const |
virtual OdUInt32 | fadingIntensityPercentage (FadingType fadingType) const |
virtual OdUInt32 | glyphSize (GlyphType glyphType) const |
virtual OdUInt32 | lineWeightConfiguration (LineWeightStyle styleEntry) 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 (const OdString &strMatName) const |
virtual OdUInt32 | displaySilhouettes () const |
bool | displayMeshSilhouettes () const |
bool | displayModelerSilhouettes () const |
virtual OdGiSectionGeometryManagerPtr | getSectionGeometryManager () |
virtual OdUInt32 | antiAliasingMode () const |
virtual bool | xrefPropertiesOverride () 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 |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
This class defines common operations and properties that are used in the Teigha vectorization process.
Most of the virtual functions in this class (the ones that are not pure virtual) are no-ops, serving only to define an interface.
Corresponding C++ library: TD_Gi
<group OdGi_Classes>
Definition at line 107 of file GiCommonDraw.h.
Input flags of drawable filter.
Enumerator | |
---|---|
kNestedDrawable |
Definition at line 394 of file GiCommonDraw.h.
Output flags of drawable filter.
Enumerator | |
---|---|
kSkipVectorization |
Definition at line 402 of file GiCommonDraw.h.
Ranges of drawable filter.
Enumerator | |
---|---|
kDrawableFilterAppRangeStart | |
kDrawableFilterAppRangeMask |
Definition at line 410 of file GiCommonDraw.h.
Fading types.
Enumerator | |
---|---|
kLockedLayerFade | |
kXrefFade | |
kRefEditFade |
Definition at line 331 of file GiCommonDraw.h.
Image quality types.
Enumerator | |
---|---|
kImageQualityDraft | |
kImageQualityHigh |
Definition at line 317 of file GiCommonDraw.h.
Lineweight styles.
Enumerator | |
---|---|
kPointLineWeight | |
kLineCapStyle | |
kLineJoinStyle |
Definition at line 372 of file GiCommonDraw.h.
Plot style types.
Enumerator | |
---|---|
kPsNone | |
kPsByColor | |
kPsByName |
Definition at line 451 of file GiCommonDraw.h.
Silhouette types.
Enumerator | |
---|---|
kNoSilhouettes | |
kMeshSilhouettes | |
kModelerSilhouettes | |
kAllSilhouettes |
Definition at line 526 of file GiCommonDraw.h.
|
virtual |
Controls rendering anti-aliasing.
Reimplemented in OdGiContextForDbDatabase.
|
virtual |
Returns the circle zoom percent for this vectorization process.
viewportId | [in] Pointer to the Object ID of the Viewport object to be queried. |
Reimplemented in OdGiContextForDbDatabase.
|
virtual |
Returns the common linetype scale for this Context object.
Reimplemented in OdGiContextForDbDatabase.
|
pure virtual |
Returns the database that is currently being vectorized.
Implemented in OdGiContextForDbDatabase, OdGiWorldDraw_Dummy, OdGiViewportDraw_Dummy, OdGiDummyContext< OdGiContext >, and OdGiContextForIfcDatabase.
|
virtual |
Returns the default lineweight associated with this Context object.
Reimplemented in OdGiContextForDbDatabase.
|
inline |
Returns true if generation of silhouettes is enabled for shell primitives on Gi side.
Definition at line 541 of file GiCommonDraw.h.
|
inline |
Returns true if generation of silhouettes is enabled for modeler geometry.
Definition at line 545 of file GiCommonDraw.h.
|
virtual |
Controls the display of silhouettes.
Reimplemented in OdGiContextForDbDatabase.
|
virtual |
Returns 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 in OdGiContextForDbDatabase, and OdGiContextForIfcDatabase.
|
virtual |
Returns internal drawable filtration function ID.
viewportId | [in] Pointer to the Object ID of the Viewport object to be queried. |
Reimplemented in OdGiContextForDbDatabase, and OdGiContextForIfcDatabase.
|
virtual |
Vectorizes the specified shape to the specified interface object.
pDraw | [in] Pointer to the CommonDraw object. |
position | [in] Position of the shape. |
shapeNumber | [in] Shape number. |
pTextStyle | [in] Pointer to the TextStyle for the shape. |
Reimplemented in OdGiDefaultContext.
|
virtual |
pDest | [in] Pointer to the Conveyor object. |
direction | [in] Baseline direction for the text. |
upVector | [in] Up vector for the text. |
pExtrusion | [in] Pointer to the Extrusion vector for the text. |
Reimplemented in OdGiDefaultContext.
|
virtual |
Vectorizes the specified text string to the supplied CommonDraw object.
pDraw | [in] Pointer to the CommonDraw object. |
position | [in] Position of the text. |
msg | [in] Text string. |
numBytes | [in] Number of bytes in msg (not including the optional null byte). |
pTextStyle | [in] Pointer to the TextStyle for msg. |
flags | [in] Vectorization flags. |
Reimplemented in OdGiDefaultContext.
|
virtual |
height | [in] Height of the text. |
width | [in] Width of the text. |
oblique | [in] Oblique angle of the text. |
As currently implemented, this function ignores width and oblique. They will be fully implemented in a future release.
Reimplemented in OdGiDefaultContext.
|
virtual |
pDest | [in] Pointer to the Conveyor object. |
direction | [in] Baseline direction for the text. |
upVector | [in] Up vector for the text. |
pExtrusion | [in] Pointer to the extrusion vector for the text. |
raw | [in] If and only if true, escape sequences, such as %P, will not be converted to special characters. |
Reimplemented in OdGiDefaultContext.
|
virtual |
Fading intensity percentage.
Reimplemented in OdGiContextForDbDatabase.
|
virtual |
Returns true if and only if shell/mesh geometry primitives should be filled during this vectorization.
Reimplemented in OdGiContextForDbDatabase.
|
virtual |
Returns true if and only if TrueType text should be filled during this vectorization.
Reimplemented in OdGiContextForDbDatabase.
|
virtual |
Returns the database of an Object ID.
objectId | [in] Object ID. |
Reimplemented in OdGiDefaultContext.
|
virtual |
Returns the default text style associated with this Context object.
textStyle | [out] Receives the TextStyle object. |
Reimplemented in OdGiDefaultContext, and OdGiContextForDbDatabase.
|
virtual |
Converts an Object ID to an object handle (database persistent ID).
objectId | [in] Object ID. |
Reimplemented in OdGiDefaultContext.
|
virtual |
Returns the Owner Object ID of the specified Object ID.
objectId | [in] Object ID. |
Reimplemented in OdGiDefaultContext.
|
virtual |
Returns the interface for accessing section geometry functionality.
Reimplemented in OdGiContextForDbDatabase.
|
virtual |
Converts an object handle into an Object ID.
objectId | [in] Object handle. |
Reimplemented in OdGiDefaultContext, and OdGiContextForDbDatabase.
|
virtual |
Converts a material name into an Object ID.
strMatName | [in] Material name. |
Reimplemented in OdGiContextForDbDatabase.
Returns the glyph size for the specified glyph type.
glyphType | [in] Type of glyph to return glyph size for. |
The default return values are the following:
Value kLightGlyph 0 kCameraGlyph 50
|
virtual |
Returns the image quality for this vectorization process.
Reimplemented in OdGiContextForDbDatabase.
|
virtual |
Returns true if and only if this vectorization is intended for hard copy output.
Reimplemented in OdGiContextForDbDatabase, and OdGiContextForIfcDatabase.
|
virtual |
Returns the lineweight display style configuration.
styleEntry | [in] Lineweight style entry for which the current setting will be returned. |
|
virtual |
Returns the number of isolines to be drawn on surfaces during this vectorization.
Reimplemented in OdGiContextForDbDatabase.
OdGiContext::ODRX_DECLARE_MEMBERS | ( | OdGiContext | ) |
|
pure 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. |
Implemented in OdGiContextForDbDatabase, OdGiContextForIfcDatabase, and OdGiDummyContext< OdGiContext >.
|
virtual |
Returns the palette background color.
Reimplemented in OdGiDefaultContext, OdGiContextForDbDatabase, and OdGiContextForIfcDatabase.
|
virtual |
Returns the PaperSpace PlotStyle data for this vectorization.
penNumber | [in] Pen number. |
plotStyleData | [out] Receives the PlotStyle data. |
objectId | [in] Object ID of plot style. |
Reimplemented in OdGiContextForDbDatabase.
|
virtual |
Reimplemented in OdGiContextForDbDatabase.
|
virtual |
Returns the plot style type of this Context object.
Value kPsNone 0 kPsByColor 1 kPsByName 2
Reimplemented in OdGiContextForDbDatabase.
|
virtual |
Returns true if and only if quick text mode is enabled for this vectorization process.
Reimplemented in OdGiContextForDbDatabase.
|
virtual |
Returns true if and only if this vectorization process should be aborted.
|
virtual |
Returns the extents box for the specified shape.
textStyle | [in] TextStyle for the shape. |
shapeNumber | [in] Shape number. |
min | [out] Receives the lower-left corner of the extents box. |
max | [out] Receives the upper-right corner of the extents box. |
Reimplemented in OdGiDefaultContext.
|
virtual |
Returns the extents box for the specified text.
msg | [in] Text string. |
numBytes | [in] Number of bytes in msg (not including the optional null byte). |
textStyle | [in] TextStyle for msg. |
flags | [in] Vectorization flags. |
min | [out] Receives the lower-left corner of the extents box. |
max | [out] Receives the upper-right corner of the extents box. |
pEndPos | [out] If non-NULL, receives the end position of the text string. |
Reimplemented in OdGiDefaultContext.
|
virtual |
Returns the text quality percent for this vectorization process.
Reimplemented in OdGiContextForDbDatabase.
|
virtual |
Enables smooth contours information output for TrueType fonts.
Reimplemented in OdGiContextForDbDatabase.
|
virtual |
Controls overriding of Xref properties.
Reimplemented in OdGiContextForDbDatabase.