CFx SDK Documentation  2022 SP0
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
OdGsBaseMaterialVectorizer Class Reference

#include <GsBaseMaterialView.h>

Inheritance diagram for OdGsBaseMaterialVectorizer:
OdGsBaseVectorizer OdGsMaterialTextureDataFiler OdGiBaseVectorizerImpl OdGiViewport OdGiBaseVectorizer OdRxObject OdGiWorldDrawImpl OdGiViewportDraw_ OdGiConveyorContext OdGiDeviation OdGiSubEntityTraitsChangedFlags OdGiDummyCommonDraw< OdGiWorldDraw_ > OdGiSubEntityTraits OdGiViewportDraw OdGiViewportGeometry OdGiWorldDraw_ OdGiDrawableTraits OdGiCommonDraw OdGiGeometry OdGiWorldDraw OdGiWorldGeometry OdRxObject OdRxObject OdRxObject OdGiCommonDraw OdGiGeometry OdRxObject OdRxObject OdGsBaseMaterialViewPC OdGsBaseVectorizeViewJoin< OdGsBaseMaterialViewPC > OdGsBaseVectorizeViewJoinMT< OdGsBaseMaterialViewPC > OdGsBaseMaterialView OdGsBaseMaterialViewMT

Classes

struct  DelayCacheEntry
 

Public Types

enum  MaterialViewFlags {
  kProcessMappers = 1 , kProcessMaterials = (1 << 1) , kProcessMappersAndMaterials = 3 , kMappersForRender = (1 << 2) ,
  kMaterialsForRender = (1 << 3) , kMappersAndMaterialsForRender = 12 , kProcessForRender = 15 , kEnableDelayCache = (1 << 4)
}
 
enum  DelayCacheEntryType { kInternal = 0 , kUser }
 
- Public Types inherited from OdGsBaseVectorizer
enum  MetafileTransformFlags { kSharedRefTransform = (1 << 0) , kSharedRefUpdate = (1 << 1) , kSharedRefSelect = (1 << 2) }
 
- Public Types inherited from OdGiSubEntityTraits
enum  DrawFlags {
  kNoDrawFlags = 0x0000 , kDrawBackfaces = 0x0001 , kDrawHatchGroup = 0x0002 , kDrawFrontfacesOnly = 0x0004 ,
  kDrawGradientFill = 0x0008 , kDrawSolidFill = 0x0010 , kDrawNoLineWeight = 0x0020 , kDrawNoPlotstyle = 0x0080 ,
  kDrawContourFill = 0x08000 , kDisableLayoutCache = 0x10000 , kDrawBoundaryForClipping = 0x20000 , kDrawBoundaryForClippingDrw = 0x40000 ,
  kClipSetIsEmpty = 0x80000 , kInternalDrawFlags = kDisableLayoutCache | kClipSetIsEmpty , kDrawPolygonFill = 0x100000 , kExcludeFromViewExt = 0x200000 ,
  kDrawDgLsPolyWithoutBreaks = 0x400000 , kPolygonProcessing = 0x800000 , kDisableAutoGenerateNormals = 0x1000000 , kDisableFillModeCheck = 0x2000000 ,
  kDrawUnderlayReference = 0x4000000 , kFxNoFillOnSelect = 0x08000000 , kInheritableDrawFlags
}
 
enum  ShadowFlags { kShadowsCastAndReceive = 0 , kShadowsDoesNotCast = 1 , kShadowsDoesNotReceive = 2 , kShadowsIgnore = kShadowsDoesNotCast | kShadowsDoesNotReceive }
 
enum  SelectionFlags { kNoSelectionFlags = 0 , kSelectionIgnore = 1 , kHighlightingGeometry = 2 , kFxSubentitySelection = 0x80 }
 
enum  SubEntityHints {
  kHint2DAttributes = 1 , kHint3DAttributes = 2 , kHintAllAttributes = kHint2DAttributes | kHint3DAttributes , kHintSnapModeOn = 4 ,
  kHintDefaultState = kHintAllAttributes
}
 
- Public Types inherited from OdGiConveyorContext
enum  ConveyorContextFlags {
  kSpatialFilterSimplPline = 1 , kSpatialFilterSimplNurbs = 2 , kSpatialFilterSimplText = 4 , kSpatialFilterSimplShape = 8 ,
  kSpatialFilterSimplAll , kEmbranchmentSimplText = 16 , kEmbranchmentSimplNurbs = 32 , kEmbranchmentSimplAll = (kEmbranchmentSimplText | kEmbranchmentSimplNurbs) ,
  kConveyorSimplAll = (kSpatialFilterSimplAll | kEmbranchmentSimplAll) , kPlineMarkers = 64 , kForceMarkersOnModified = 128 , kPolylineMarkers = 256 ,
  kPlineAllowArcProc = 512 , kTestMode = 1024 , kLineTyperAfterMetafile = 2048
}
 
- Public Types inherited from OdGiSubEntityTraitsChangedFlags
enum  ChangedTraits {
  kFirstChangedFlag = 1 , kColorChanged = kFirstChangedFlag << 0 , kLayerChanged = kFirstChangedFlag << 1 , kLineTypeChanged = kFirstChangedFlag << 2 ,
  kFillTypeChanged = kFirstChangedFlag << 3 , kLineWeightChanged = kFirstChangedFlag << 4 , kLineTypeScaleChanged = kFirstChangedFlag << 5 , kThicknessChanged = kFirstChangedFlag << 6 ,
  kPlotStyleChanged = kFirstChangedFlag << 7 , kMaterialChanged = kFirstChangedFlag << 8 , kMapperChanged = kFirstChangedFlag << 9 , kVisualStyleChanged = kFirstChangedFlag << 10 ,
  kTransparencyChanged = kFirstChangedFlag << 11 , kDrawFlagsChanged = kFirstChangedFlag << 12 , kSelectionGeomChanged = kFirstChangedFlag << 13 , kShadowFlagsChanged = kFirstChangedFlag << 14 ,
  kSectionableChanged = kFirstChangedFlag << 15 , kSelectionFlagsChanged = kFirstChangedFlag << 16 , kSecColorChanged = kFirstChangedFlag << 17 , kLSModifiersChanged = kFirstChangedFlag << 18 ,
  kFillChanged = kFirstChangedFlag << 19 , kAwareFlagChanged = kFirstChangedFlag << 20 , kAllChanged = 0x1FFFFF , kSomeChanged = kAllChanged
}
 

Public Member Functions

 OdGsBaseMaterialVectorizer (OdUInt32 uMaterialViewFlags=kProcessMappersAndMaterials)
 
 ~OdGsBaseMaterialVectorizer ()
 
virtual void onTraitsModified ()
 
virtual void beginMetafile (OdRxObject *pMetafile)
 
virtual void endMetafile (OdRxObject *pMetafile)
 
virtual void beginViewVectorization ()
 
virtual void endViewVectorization ()
 
virtual void processMaterialNode (OdDbStub *materialId, OdGsMaterialNode *node)
 
virtual bool saveMaterialCache (const OdGsMaterialNode *pNode, OdGsFiler *pFiler)
 
virtual bool loadMaterialCache (OdGsMaterialNode *pNode, OdGsFiler *pFiler)
 
virtual bool doDraw (OdUInt32 drawableFlags, const OdGiDrawable *pDrawable)
 
OdGiMaterialItemPtr currentMaterial () const
 
void resetCurrentMaterial (OdGiMaterialItemPtr pMaterial)
 
bool isMaterialEnabled () const
 
bool isMaterialAvailable () const
 
void resetCurrentMaterial ()
 
OdGiMapperItemPtr currentMapper (bool bForCoords=true) const
 
void resetCurrentMapper (OdGiMapperItemPtr pMapper)
 
bool isMapperEnabled () const
 
bool isMapperAvailable () const
 
bool isMappingDelayed () const
 
virtual bool getDeviceMapperMatrix (OdGeMatrix3d &dm) const
 
virtual bool skipMaterialProcess (OdDbStub *materialId) const
 
virtual void nullMaterialStub ()
 
virtual OdGiMaterialItemPtr fillMaterialCache (OdGiMaterialItemPtr prevCache, OdDbStub *materialId, const OdGiMaterialTraitsData &materialData)
 
virtual void renderMaterialCache (OdGiMaterialItemPtr pCache, OdDbStub *materialId)
 
virtual void playDelayCacheEntry (const DelayCacheEntry *pEntry)
 
void appendDelayCacheEntry (DelayCacheEntry *pEntry)
 
virtual void mapperChangedForDelayCache ()
 
virtual void delayCacheProcessed (const OdGiDrawable *pDrawable)
 
bool saveMaterialItem (const OdGiMaterialItem *pMatItem, OdGsFiler *pFiler)
 
OdGiMaterialItemPtr loadMaterialItem (OdGsFiler *pFiler)
 
virtual bool saveClientMaterialCache (const OdRxObject *pMtl, OdGsFiler *pFiler)
 
virtual OdRxObjectPtr loadClientMaterialCache (OdGsFiler *pFiler, OdGiMaterialItem *pMatItem)
 
- Public Member Functions inherited from OdGsBaseVectorizer
 OdGsBaseVectorizer ()
 
OdGsWritergsWriter ()
 
const OdGsWritergsWriter () const
 
OdGsExtAccumgsExtentsAccum ()
 
virtual OdRxObjectPtr newGsMetafile ()
 
virtual void playMetafile (const OdRxObject *pMetafile)
 
virtual bool saveMetafile (const OdRxObject *pMetafile, OdGsFiler *pFiler)
 
virtual OdRxObjectPtr loadMetafile (OdGsFiler *pFiler)
 
bool isMetafileEmpty () const
 
OdUInt64 lastMetafileSize () const
 
virtual void loadViewport ()
 
virtual bool forceMetafilesDependence () const
 
virtual bool isViewRegenerated () const
 
virtual void drawViewportFrame ()
 
virtual void updateViewport ()
 
virtual void addPointLight (const OdGiPointLightTraitsData &)
 
virtual void addSpotLight (const OdGiSpotLightTraitsData &)
 
virtual void addDistantLight (const OdGiDistantLightTraitsData &)
 
virtual void addWebLight (const OdGiWebLightTraitsData &)
 
 ~OdGsBaseVectorizer ()
 
void pushModelTransform (const OdGeMatrix3d &xfm)
 
void pushModelTransform (const OdGeVector3d &normal)
 
void popModelTransform ()
 
void pushClipBoundary (OdGiClipBoundary *pBoundary)
 
void pushClipBoundary (OdGiClipBoundary *pBoundary, OdGiAbstractClipBoundary *pClipInfo)
 
void popClipBoundary ()
 
virtual void setEntityTraitsDataChanged ()
 
virtual void setEntityTraitsDataChanged (int bit, bool value=true)
 
virtual OdGeMatrix3d objectToDeviceMatrix () const
 
bool disableInfiniteGeomExtents () const
 
bool sectionableGeomExtentsOnly () const
 
void setSectionableGeomExtentsOnly (bool bOn)
 
void playMetafileMode (const OdRxObject *pMetafile, EMetafilePlayMode eMode)
 
EMetafilePlayMode metafilePlayMode () const
 
virtual void pushMetafileTransform (const OdGeMatrix3d &, OdUInt32=0)
 
virtual void popMetafileTransform (OdUInt32=0)
 
virtual bool useSharedBlockReferences () const
 
virtual bool useMetafileAsGeometry () const
 
virtual OdGiConveyorOutputoutputForMetafileGeometry ()
 
virtual void setTransformForMetafileGeometry (const OdGeMatrix3d &)
 
virtual OdGeMatrix3d getTransformForMetafileGeometry () const
 
virtual void reportUpdateError (OdDbStub *, const OdError &error)
 
OdGsLayerNodegsLayerNode (OdDbStub *layerId, OdGsBaseModel *pModel)
 
bool isFaded () const
 
OdUInt32 fadingIntensity () const
 
bool isHighlighted () const
 
bool isSelecting () const
 
bool isDragging () const
 
virtual OdGiConveyorOutputgsExtentsOutput ()
 
virtual void setAnalyticLinetypingCircles (bool analytic)
 
virtual bool isAnalyticLinetypingCircles () const
 
virtual void setAnalyticLinetypingComplexCurves (bool analytic)
 
virtual bool isAnalyticLinetypingComplexCurves () const
 
void checkSelection ()
 
virtual bool displayViewportProperties (OdGsPropertiesDirectRenderOutput *pdro=NULL, OdUInt32 incFlags=OdGsProperties::kAll)
 
OdGiConveyorOutputsecondaryOutput ()
 
virtual void setUp (OdGsViewImpl &view)
 
virtual bool regenAbort () const
 
virtual void setSelectionMarker (OdGsMarker selectionMarker)
 
virtual OdGiConveyorOutputoutput ()
 
virtual void setVisualStyle (const OdGiVisualStyle &visualStyle)
 
const OdGsMarkerArrayhighlightedSubentities () const
 
OdGsHlBranchfindHighlightedSubnodeBranch ()
 
OdUInt32 threadIndex () const
 
void highlight (bool bHighlight)
 
const OdGsHlBranchcurrentHighlightBranch () const
 
OdGsLayerNodeactiveLayerNode (bool bSync=false) const
 
OdGsModel::RenderType activeRenderType () const
 
OdGsOverlayId activeOverlay () const
 
void updateExtentsInThreadInit (OdGsMtContext &mtContext)
 
void setRenderAbort (bool bSet)
 
virtual bool renderAbort ()
 
- Public Member Functions inherited from OdGiBaseVectorizerImpl
 OdGiBaseVectorizerImpl ()
 
OdGsViewImplview () const
 
OdUInt32 awareFlags () const
 
OdUInt32awareFlags ()
 
void resetAwareFlags ()
 
const OdPsPlotStyleDataeffectivePlotStyle () const
 
OdGsView::RenderMode getRenderMode () const
 
void clearLinetypeCache ()
 
void setLinetypesEnabled (bool bEnable)
 
bool isLinetypesEnabled () const
 
void setModelSection (OdGiDrawable *pSection, bool bUseSectionGeometryMap)
 
const OdGiDrawableliveSection () const
 
OdGeMatrix3d modelToWorldTransform () const
 
OdGeMatrix3d worldToModelTransform () const
 
int lineweightToPixels (OdDb::LineWeight lineweight) const
 
double lineweightToPixels (double lineweight) const
 
bool hasLineweightOverride () const
 
bool hasLinestyleOverride () const
 
const OdGiLineweightOverridecurrentLineweightOverride () const
 
virtual OdGeMatrix3d getModelToEyeTransform () const
 
virtual OdGeMatrix3d getEyeToModelTransform () const
 
virtual OdGeMatrix3d getWorldToEyeTransform () const
 
virtual OdGeMatrix3d getEyeToWorldTransform () const
 
virtual OdGeMatrix3d getWorldToModelTransform () const
 
virtual OdGeMatrix3d getModelToWorldTransform () const
 
virtual bool isPerspective () const
 
virtual bool doPerspective (OdGePoint3d &point) const
 
virtual bool doInversePerspective (OdGePoint3d &point) const
 
virtual void getNumPixelsInUnitSquare (const OdGePoint3d &point, OdGePoint2d &pixelDensity, bool includePerspective=true) const
 
virtual OdGePoint3d getCameraLocation () const
 
virtual OdGePoint3d getCameraTarget () const
 
virtual OdGeVector3d getCameraUpVector () const
 
virtual OdGeVector3d viewDir () const
 
virtual OdUInt32 viewportId () const
 
virtual OdInt16 acadWindowId () const
 
virtual void getViewportDcCorners (OdGePoint2d &lowerLeft, OdGePoint2d &upperRight) const
 
virtual bool getFrontAndBackClipValues (bool &clipFront, bool &clipBack, double &front, double &back) const
 
virtual double linetypeScaleMultiplier () const
 
virtual double linetypeGenerationCriteria () const
 
virtual bool layerVisible (OdDbStub *layerId) const
 
const OdGiContextualColorscontextualColors () const
 
virtual void xline (const OdGePoint3d &firstPoint, const OdGePoint3d &secondPoint)
 
virtual void ray (const OdGePoint3d &basePoint, const OdGePoint3d &throughPoint)
 
virtual void shell (OdInt32 numVertices, const OdGePoint3d *vertexList, OdInt32 faceListSize, const OdInt32 *faceList, const OdGiEdgeData *pEdgeData=0, const OdGiFaceData *pFaceData=0, const OdGiVertexData *pVertexData=0)
 
virtual void mesh (OdInt32 numRows, OdInt32 numColumns, const OdGePoint3d *vertexList, const OdGiEdgeData *pEdgeData=0, const OdGiFaceData *pFaceData=0, const OdGiVertexData *pVertexData=0)
 
virtual void setExtents (const OdGePoint3d *newExtents)
 
virtual double deviation (const OdGiDeviationType deviationType, const OdGePoint3d &pointOnCurve) const
 
virtual OdGiRegenType regenType () const
 
virtual OdUInt32 sequenceNumber () const
 
virtual bool isValidId (const OdUInt32 viewportId) const
 
virtual OdDbStub * viewportObjectId () const
 
virtual OdGiViewportviewport () const
 
virtual void setFillPlane (const OdGeVector3d *pNormal=0)
 
virtual void setFillType (OdGiFillType fillType)
 
virtual OdUInt32 setupForEntity () const
 
virtual bool pushLineweightOverride (const OdGiLineweightOverride *pOverride)
 
virtual void popLineweightOverride ()
 
virtual const OdGiViewportgiViewport () const
 
virtual const OdGsViewgsView () const
 
virtual double annotationScale () const
 
- Public Member Functions inherited from OdGiViewport
 ODRX_DECLARE_MEMBERS (OdGiViewport)
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectx (const OdRxClass *pClass) 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
 
- Public Member Functions inherited from OdGiBaseVectorizer
bool isEntityTraitsDataChanged (int bit=kSomeChanged) const
 
void clearEntityTraitsDataChanged () const
 
bool effectivelyVisible () const
 
OdGiContextgiContext () const
 
const OdGiDrawableDesccurrentDrawableDesc () const
 
const OdGiDrawablecurrentDrawable () const
 
const OdGiDrawableDescdrawableDesc () const
 
virtual const OdGiSubEntityTraitsDataeffectiveTraits () const
 
virtual void setEffectiveTraits (const OdGiSubEntityTraitsData &traits, const OdGeVector3d *fillNormal=NULL)
 
 OdGiBaseVectorizer ()
 
virtual ~OdGiBaseVectorizer ()
 
OdRxClassisA () const
 
OdRxObjectqueryX (const OdRxClass *pProtocolClass) const
 
void setEyeToOutputTransform (const OdGeMatrix3d &xfm)
 
const OdGeMatrix3deyeToOutputTransform () const
 
void eyeToOutputTransform (OdGeMatrix3d &xfm) const
 
OdGiConveyorContextdrawContext ()
 
const OdGiConveyorContextdrawContext () const
 
void setTrueColor (const OdCmEntityColor &trueColor)
 
void setPlotStyleNameType (OdDb::PlotStyleNameType plotStyleNameType)
 
void setPlotStyleNameId (OdDbStub *plotStyleNameId)
 
void setColor (OdUInt16 color)
 
void setLayer (OdDbStub *layerId)
 
void setLineType (OdDbStub *lineTypeId)
 
void setLineWeight (OdDb::LineWeight lineWeight)
 
void setLineTypeScale (double lineTypeScale)
 
void setThickness (double thickness)
 
void setPlotStyleName (OdDb::PlotStyleNameType plotStyleNameType, OdDbStub *pPlotStyleNameId=0)
 
void setMaterial (OdDbStub *pMaterialId)
 
void setMapper (const OdGiMapper *pMapper)
 
void setVisualStyle (const OdDbStub *pVisualStyleId)
 
void setTransparency (const OdCmTransparency &transparency)
 
void setDrawFlags (OdUInt32 drawFlags)
 
void setSelectionGeom (bool bSelectionFlag)
 
void setShadowFlags (ShadowFlags shadowFlags)
 
void setSectionable (bool bSectionableFlag)
 
void setSelectionFlags (SelectionFlags selectionFlags)
 
void setSecondaryTrueColor (const OdCmEntityColor &color)
 
void setLineStyleModifiers (const OdGiDgLinetypeModifiers *pLSMod)
 
void setFill (const OdGiFill *pFill)
 
OdGiContextcontext () const
 
OdGiSubEntityTraitssubEntityTraits () const
 
OdUInt32 numberOfIsolines () const
 
OdGiGeometryrawGeometry () const
 
OdUInt32 drawContextFlags () const
 
void setDrawContextFlags (OdUInt32 flags, bool bFlag)
 
void circle (const OdGePoint3d &center, double radius, const OdGeVector3d &normal)
 
void circle (const OdGePoint3d &firstPoint, const OdGePoint3d &secondPoint, const OdGePoint3d &thirdPoint)
 
void circularArc (const OdGePoint3d &center, double radius, const OdGeVector3d &normal, const OdGeVector3d &startVector, double sweepAngle, OdGiArcType arcType=kOdGiArcSimple)
 
void circularArc (const OdGePoint3d &firstPoint, const OdGePoint3d &secondPoint, const OdGePoint3d &thirdPoint, OdGiArcType arcType=kOdGiArcSimple)
 
void polyline (OdInt32 numVertices, const OdGePoint3d *vertexList, const OdGeVector3d *pNormal=0, OdGsMarker baseSubEntMarker=-1)
 
void polygon (OdInt32 numVertices, const OdGePoint3d *vertexList)
 
void polygon (OdInt32 numVertices, const OdGePoint3d *vertexList, const OdGeVector3d *pNormal)
 
void pline (const OdGiPolyline &polyline, OdUInt32 fromIndex=0, OdUInt32 numSegs=0)
 
void shape (const OdGePoint3d &position, const OdGeVector3d &normal, const OdGeVector3d &direction, int shapeNumber, const OdGiTextStyle *pTextStyle)
 
void text (const OdGePoint3d &position, const OdGeVector3d &normal, const OdGeVector3d &direction, double height, double width, double oblique, const OdString &msg)
 
void text (const OdGePoint3d &position, const OdGeVector3d &normal, const OdGeVector3d &direction, const OdChar *msg, OdInt32 length, bool raw, const OdGiTextStyle *pTextStyle)
 
void nurbs (const OdGeNurbCurve3d &nurbsCurve)
 
void ellipArc (const OdGeEllipArc3d &ellipArc, const OdGePoint3d *endPointsOverrides=0, OdGiArcType arcType=kOdGiArcSimple)
 
void worldLine (const OdGePoint3d points[2])
 
void image (const OdGiImageBGRA32 &img, const OdGePoint3d &origin, const OdGeVector3d &uVec, const OdGeVector3d &vVec, OdGiRasterImage::TransparencyMode trpMode=OdGiRasterImage::kTransparency8Bit)
 
void edge (const OdGiEdge2dArray &edges)
 
void polypoint (OdInt32 numPoints, const OdGePoint3d *vertexList, const OdCmEntityColor *pColors, const OdCmTransparency *pTransparency, const OdGeVector3d *pNormals, const OdGsMarker *pSubEntMarkers, OdInt32 nPointSize)
 
void rowOfDots (OdInt32 numPoints, const OdGePoint3d &startPoint, const OdGeVector3d &dirToNextPoint)
 
void drawClipBoundary (OdGiClipBoundary *pBoundary, OdGiAbstractClipBoundary *pClipInfo)
 
bool isClipping () const
 
bool isXrefOverride () const
 
void setXrefOverride (bool bSet)
 
void draw (const OdGiDrawable *pDrawable)
 
const OdGiPathNodecurrentGiPath () const
 
virtual OdUInt32 setAttributes (const OdGiDrawable *pDrawable)
 
OdUInt32 drawableAttributes () const
 
bool needDraw (OdUInt32 drawableFlags)
 
void startAttributesSegment ()
 
bool isAttributesSegmentEnabled ()
 
void rasterImageDc (const OdGePoint3d &origin, const OdGeVector3d &u, const OdGeVector3d &v, const OdGiRasterImage *pImage, const OdGePoint2d *uvBoundary, OdUInt32 numBoundPts, bool transparency=false, double brightness=50.0, double contrast=50.0, double fade=0.0)
 
void metafileDc (const OdGePoint3d &origin, const OdGeVector3d &u, const OdGeVector3d &v, const OdGiMetafile *pMetafile, bool bDcAligned=true, bool bAllowClipping=false)
 
void polylineEye (OdUInt32 numVertices, const OdGePoint3d *vertexList)
 
void polygonEye (OdUInt32 numVertices, const OdGePoint3d *vertexList)
 
void polylineDc (OdUInt32 numVertices, const OdGePoint3d *vertexList)
 
void polygonDc (OdUInt32 numVertices, const OdGePoint3d *vertexList)
 
const OdGiDeviationmodelDeviation () const
 
const OdGiDeviationworldDeviation () const
 
const OdGiDeviationeyeDeviation () const
 
const OdGiMaterialTraitsDataeffectiveMaterialTraitsData () const
 
void effectiveMaterialTraitsData (OdGiMaterialTraitsData &data) const
 
void setEffectiveMaterialTraitsData (OdDbStub *materialId, const OdGiMaterialTraitsData &data, bool bForce=false)
 
OdGsMarker selectionMarker () const
 
const OdGiSubEntityTraitsDatabyBlockTraits () const
 
void setByBlockTraits (const OdGiSubEntityTraitsData *pByBlock)
 
OdRxObjectPtr saveByBlockTraits ()
 
- Public Member Functions inherited from OdGiWorldDrawImpl
virtual void setContext (OdGiContext *pUserContext)
 
OdUInt16 color () const
 
OdCmEntityColor trueColor () const
 
OdDbStub * layer () const
 
OdDbStub * lineType () const
 
OdGiFillType fillType () const
 
OdDb::LineWeight lineWeight () const
 
double lineTypeScale () const
 
double thickness () const
 
OdDb::PlotStyleNameType plotStyleNameType () const
 
OdDbStub * plotStyleNameId () const
 
OdDbStub * material () const
 
const OdGiMappermapper () const
 
OdDbStub * visualStyle () const
 
OdCmTransparency transparency () const
 
OdUInt32 drawFlags () const
 
bool selectionGeom () const
 
ShadowFlags shadowFlags () const
 
bool sectionable () const
 
SelectionFlags selectionFlags () const
 
OdCmEntityColor secondaryTrueColor () const
 
const OdGiDgLinetypeModifierslineStyleModifiers () const
 
const OdGiFillfill () const
 
- Public Member Functions inherited from OdGiWorldDraw_
OdGiWorldGeometrygeometry () const
 
const OdGiPathNodecurrentGiPath () const
 
- Public Member Functions inherited from OdGiWorldDraw
 ODRX_DECLARE_MEMBERS (OdGiWorldDraw)
 
- Public Member Functions inherited from OdGiCommonDraw
 ODRX_DECLARE_MEMBERS (OdGiCommonDraw)
 
virtual bool displayModelerSilhouettes () const
 
- Public Member Functions inherited from OdGiWorldGeometry
 ODRX_DECLARE_MEMBERS (OdGiWorldGeometry)
 
- Public Member Functions inherited from OdGiGeometry
 ODRX_DECLARE_MEMBERS (OdGiGeometry)
 
ODRX_SEALED_VIRTUAL void polypoint (OdInt32 numPoints, const OdGePoint3d *vertexList, const OdCmEntityColor *pColors, const OdGeVector3d *pNormals=NULL, const OdGsMarker *pSubEntMarkers=NULL) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL void polypoint (OdInt32 numPoints, const OdGePoint3d *vertexList, const OdGeVector3d *pNormals=NULL, const OdGsMarker *pSubEntMarkers=NULL) ODRX_SEALED
 
- Public Member Functions inherited from OdGiSubEntityTraits
 ODRX_DECLARE_MEMBERS (OdGiSubEntityTraits)
 
virtual bool fillPlane (OdGeVector3d &normal)
 
virtual void addLight (const OdDbStub *lightId)
 
- Public Member Functions inherited from OdGiDrawableTraits
 ODRX_DECLARE_MEMBERS (OdGiDrawableTraits)
 
- Public Member Functions inherited from OdGiViewportDraw_
OdGiViewportGeometrygeometry () const
 
const OdGiPathNodecurrentGiPath () const
 
- Public Member Functions inherited from OdGiViewportDraw
 ODRX_DECLARE_MEMBERS (OdGiViewportDraw)
 
- Public Member Functions inherited from OdGiViewportGeometry
 ODRX_DECLARE_MEMBERS (OdGiViewportGeometry)
 
virtual void ownerDrawDc (const OdGePoint3d &origin, const OdGeVector3d &u, const OdGeVector3d &v, const OdGiSelfGdiDrawable *pDrawable, bool dcAligned=true, bool allowClipping=false)
 
- Public Member Functions inherited from OdGiConveyorContext
virtual ~OdGiConveyorContext ()
 
virtual void onTextProcessing (const OdGePoint3d &, const OdGeVector3d &, const OdGeVector3d &)
 
- Public Member Functions inherited from OdGsMaterialTextureDataFiler
virtual bool saveClientMaterialTextureData (const OdGiMaterialTextureData *, OdGsFiler *)
 
virtual OdGiMaterialTextureDataPtr loadClientMaterialTextureData (OdGsFiler *)
 

Static Public Member Functions

static bool saveMaterialTexture (const OdGiMaterialTexture *pTexture, OdGsFiler *pFiler)
 
static OdGiMaterialTexturePtr loadMaterialTexture (OdGsFiler *pFiler)
 
static bool saveMaterialTextureManager (const OdGiMaterialTextureManager *pManager, OdGsFiler *pFiler, OdGsMaterialTextureDataFiler *pSaver)
 
static bool loadMaterialTextureManager (OdGiMaterialTextureManager *pManager, OdGsFiler *pFiler, OdGsMaterialTextureDataFiler *pSaver)
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 
- Static Public Member Functions inherited from OdGiWorldDrawImpl
static OdGiContextdummyGiContext ()
 

Protected Member Functions

virtual bool computeDrawableExtents (const OdGiDrawable *pDrawable, OdGeExtents3d &extents)
 
virtual bool computeDelayedExtents (const OdGiDrawable *pDrawable, OdGeExtents3d &extents)
 
OdGiMapperItemPtr _itlCreateMapperItem () const
 
OdGiMaterialItemPtr _itlCreateMaterialItem () const
 
- Protected Member Functions inherited from OdGsBaseVectorizer
 ODRX_USING_HEAP_OPERATORS (OdGiBaseVectorizer)
 
void doSelect (const OdGePoint2d *aPtDc, int numPoints, OdGsSelectionReactor *pReactor, OdGsView::SelectionMode mode)
 
bool doViewExtents (OdGeBoundBlock3d &extents)
 
virtual void display (bool bUpdate)
 
virtual void updateExtents (bool bBuildCache)
 
virtual const OdGiLayerTraitsDataeffectiveLayerTraits () const
 
virtual OdDbStub * switchLayer (OdDbStub *layerId) const
 
void selectionMarkerOnChange (OdGsMarker nSelectionMarker)
 
void checkRenderType (const OdGsModel *pModel)
 
virtual void renderTypeOnChange (OdGsModel::RenderType renderType)
 
virtual void switchOverlay (OdGsOverlayId overlayId)
 
void displayWithoutNesting (OdGsEntityNode *pNode)
 
- Protected Member Functions inherited from OdGiBaseVectorizerImpl
 ODRX_USING_HEAP_OPERATORS (OdGiBaseVectorizer)
 
bool useFillPlane () const
 
bool isOutputSuppressed () const
 
bool isEffectiveLinetypeContinuous () const
 
bool isSupportPlotStyles () const
 
virtual void affectTraits (const OdGiSubEntityTraitsData *pSource, OdGiSubEntityTraitsData &destination) const
 
double lineweightToPixelsOverride (OdDb::LineWeight lineweight, bool bAbsolute=false) const
 
int lineweightToPixelsOverrideInt (OdDb::LineWeight lineweight) const
 
double lineweightToPixelsOverride (double lineweight, bool bAbsolute=false) const
 
virtual void updateLineweightOverride (const OdGiLineweightOverride &lwdOverride)
 
- Protected Member Functions inherited from OdGiBaseVectorizer
 ODRX_HEAP_OPERATORS ()
 
void actualizeMaterialAttributes (OdDbStub *materialId) const
 
void updateLayerTraits (OdGiSubEntityTraitsData &subEntityTraits) const
 
const OdGeVector3dextrusion (const OdGePoint3d &firstPoint, const OdGePoint3d &secondPoint, const OdGePoint3d &thirdPoint)
 
const OdGeVector3dextrusion (const OdGeVector3d &normal)
 
const OdGeVector3dextrusion (const OdGeVector3d *pNormal)
 
const OdGeVector3dextrusion (const OdGePoint3d &origin, const OdGeVector3d &u, const OdGeVector3d &v)
 
void resetEntityTraitsData ()
 
- Protected Member Functions inherited from OdGiWorldDrawImpl
 ODRX_USING_HEAP_OPERATORS (OdGiDummyCommonDraw< OdGiWorldDraw_ >)
 
 OdGiWorldDrawImpl ()
 
- Protected Member Functions inherited from OdGiWorldDraw_
 ODRX_USING_HEAP_OPERATORS (OdGiWorldDraw)
 
- Protected Member Functions inherited from OdGiViewportDraw_
 ODRX_USING_HEAP_OPERATORS (OdGiViewportDraw)
 

Protected Attributes

OdUInt32 m_uMaterialViewFlags
 
OdGiMaterialItemPtr m_pCurrentMaterialItem
 
OdGiMapperItemPtr m_pCurrentMapperItem
 
OdGiMaterialTraitsData m_nullMaterialTraitsData
 
OdGiMaterialItemPtr m_pNullMaterialItem
 
- Protected Attributes inherited from OdGsBaseVectorizer
OdUInt64 m_nMetafileSize
 
OdGsWriter m_gsWriter
 
OdGiSelectProcm_pSelectProc
 
OdGiConveyorGeometrym_pDetachedOutput
 
OdGiConveyorGeometrym_pDetachedSecondaryOutput
 
EMetafilePlayMode m_eMfPlayMode
 
OdGsUpdateState * m_curState
 
OdGsModel::RenderType m_curRenderType
 
OdGsOverlayId m_curOverlay
 
OdIntPtr m_drawableFilterFunction
 
OdUInt32 m_fadingFlags
 
double m_dRenderAbortCondition
 
OdPerfTimerBasem_viewTimingProcessor
 
- Protected Attributes inherited from OdGiBaseVectorizerImpl
OdUInt32 m_nAwareFlags
 
OdUInt32 m_implFlags
 
OdGeVector3d m_fillPlane
 
OdGiContext::PStyleType m_pstype
 
OdPsPlotStyleData m_plotStyle
 
OdUInt32 m_setAttributesHints
 
OdGiOrthoClipperPtr m_pXlineNRayClipper
 
OdGiConveyorEntryPoint m_xlineNRayEntryPoint
 
OdGiLinetypeRedirPtr m_pLinetyper
 
OdGiConveyorEmbranchmentPtr m_pOutputBranch
 
OdRxObjectPtr m_pGsReserved
 
OdGiDrawablePtr m_liveSection
 
OdRxObjectPtr m_sectionGeometryMap
 
OdCmTransparency m_sectForegroundFace
 
OdCmTransparency m_sectForegroundEdge
 
OdGiXformPtr m_pXToLtp
 
OdGeMatrix3d m_objectToDeviceMatrix
 
- Protected Attributes inherited from OdGiBaseVectorizer
OdGiSubEntityTraitsData m_effectiveEntityTraitsData
 
OdDbStub * m_layerId
 
OdGiLayerTraitsTaker m_effectiveLayerTraits
 
OdDbStub * m_materialId
 
OdDbStub * m_byLayerMaterialId
 
OdDbStub * m_byBlockMaterialId
 
OdUInt32 m_materialAttributes
 
OdGiMaterialTraitsCache m_effectiveMaterialTraitsData
 
OdDbStub * m_effectiveMaterialId
 
OdDbStub * m_effectiveLayerId
 
OdGsMarker m_nSelectionMarker
 
OdGsMarker m_nPrevSelectionMarker
 
OdGiMapper m_materialMapper
 
OdGiMapperm_pCurMaterialMapper
 
OdGiDgLinetypeModifiers m_lsModifiers
 
OdGiDgLinetypeModifiersm_pCurLSModifiers
 
OdGiFillPtr m_pFill
 
OdRxObjectPtr m_pGiReserved
 
OdUInt32 m_entityTraitsDataChanged
 
OdGiConveyorConnector m_eyeEntryPoint
 
OdGiConveyorConnector m_modelEntryPoint
 
OdGiConveyorConnectorm_pActiveEntryPoint
 
OdGiModelToViewProcPtr m_pModelToEyeProc
 
OdGiConveyorConnector m_output
 
OdUInt32 m_flags
 
OdUInt32 m_drawContextFlags
 
const OdGiSubEntityTraitsDatam_pByBlock
 
- Protected Attributes inherited from OdGiWorldDrawImpl
OdGiSubEntityTraitsData m_entityTraitsData
 
OdGiContextm_pContext
 

Friends

class OdDefDelayCacheEntryMap
 
class OdManageMViewPerDrawableData
 

Additional Inherited Members

- Public Attributes inherited from OdGsBaseVectorizer
OdGsHlBranchPtr m_pCurHltBr
 
- Public Attributes inherited from OdGiBaseVectorizer
OdGiDrawableDescm_pDrawableDesc
 
OdUInt32 m_nDrawableAttributes
 
- Protected Types inherited from OdGsBaseVectorizer
enum  FadingFlags {
  kFfLockedLayer = (1 << 0) , kFfXref = (1 << 1) , kFfRefEdit = (1 << 2) , kFfFlagsMask = kFfLockedLayer | kFfXref | kFfRefEdit ,
  kEFfLockedLayer = (1 << 4) , kEFfXref = (1 << 5) , kEFfRefEdit = (1 << 6) , kEFfFlagsMask = kEFfLockedLayer | kEFfXref | kEFfRefEdit ,
  kEFfFlagsOffset = 4 , kFvLockedLayerOffset = 8 , kFvLockedLayerMask = (0xFF << kFvLockedLayerOffset) , kFvXrefOffset = 16 ,
  kFvXrefMask = (0xFF << kFvXrefOffset) , kFvRefEditOffset = 24 , kFvRefEditMask = (0xFF << kFvRefEditOffset)
}
 
enum  BaseVectorizerFlags { kRenderAbort = OdGiBaseVectorizerImpl::kLastImplFlag << 1 , kViewInteractive = OdGiBaseVectorizerImpl::kLastImplFlag << 2 , kLastBaseVectorizerFlag = kViewInteractive }
 
- Protected Types inherited from OdGiBaseVectorizerImpl
enum  Flags {
  kFillPlaneSet = OdGiBaseVectorizer::kLastFlag << 1 , kLinetypeContinuous = OdGiBaseVectorizer::kLastFlag << 2 , kModelCache = OdGiBaseVectorizer::kLastFlag << 3 , kHighlighted = OdGiBaseVectorizer::kLastFlag << 4 ,
  kDontAbortRegen = OdGiBaseVectorizer::kLastFlag << 5 , kCheckLinePattern = OdGiBaseVectorizer::kLastFlag << 6 , kBreakSelection = OdGiBaseVectorizer::kLastFlag << 7 , kSuppressOutput = OdGiBaseVectorizer::kLastFlag << 8 ,
  kSelectionGeometry = OdGiBaseVectorizer::kLastFlag << 9 , kSelectionDisabled = OdGiBaseVectorizer::kLastFlag << 10 , kObjectToDeviceValid = OdGiBaseVectorizer::kLastFlag << 11 , kDisableInfiniteGeomExtents = OdGiBaseVectorizer::kLastFlag << 12 ,
  kSectionableGeomExtentsOnly = OdGiBaseVectorizer::kLastFlag << 13 , kDisableSection = OdGiBaseVectorizer::kLastFlag << 14 , kSectionForegroundGeometry = OdGiBaseVectorizer::kLastFlag << 15 , kInitGsState = OdGiBaseVectorizer::kLastFlag << 16 ,
  kSetVpLtypeScaleMult = OdGiBaseVectorizer::kLastFlag << 17 , kSetVpFilterFunction = OdGiBaseVectorizer::kLastFlag << 18 , kLineweightOverride = OdGiBaseVectorizer::kLastFlag << 19 , kLinestyleOverride = OdGiBaseVectorizer::kLastFlag << 20 ,
  kLastOptionFlag = kLinestyleOverride
}
 
enum  ImplFlags { kFirstImplFlag = 1 , kSectionableGeomEnabled = kFirstImplFlag << 0 , kLastImplFlag = kSectionableGeomEnabled }
 
- Protected Types inherited from OdGiBaseVectorizer
enum  Flags {
  kFirstFlag = 1 , kSuppressViewportDraw = kFirstFlag << 0 , kDrawInvisibleEnts = kFirstFlag << 1 , kDrawLayerOff = kFirstFlag << 2 ,
  kDrawLayerFrozen = kFirstFlag << 3 , kIgnoreFillPlane = kFirstFlag << 4 , kSelectionMode = kFirstFlag << 5 , kAttributesSegment = kFirstFlag << 6 ,
  kXrefOverride = kFirstFlag << 7 , kLastFlag = kXrefOverride
}
 
typedef OdGiTraitsCache< OdGiMaterialTraitsData, OdGiMaterialTraitsTaker, OdGiMaterialTraits::kByBlock|OdGiMaterialTraits::kByLayerOdGiMaterialTraitsCache
 
- Static Protected Member Functions inherited from OdGiBaseVectorizer
static OdRxClassdesc ()
 
- Static Protected Attributes inherited from OdGiBaseVectorizer
static ODGI_EXPORT_STATIC const OdGiSubEntityTraitsData g_entityTraitsDataReset
 

Detailed Description

This class provides material support for OdGsBaseVectorizeView.

Remarks
OdGsBaseMaterialView works only with diffuse material/mapping channel and not applicable for complete rendering devices.

Corresponding C++ library: TD_Gs

<group OdGs_Classes>

Definition at line 60 of file GsBaseMaterialView.h.

Member Enumeration Documentation

◆ DelayCacheEntryType

Enumerator
kInternal 
kUser 

Definition at line 82 of file GsBaseMaterialView.h.

◆ MaterialViewFlags

Enumerator
kProcessMappers 
kProcessMaterials 
kProcessMappersAndMaterials 
kMappersForRender 
kMaterialsForRender 
kMappersAndMaterialsForRender 
kProcessForRender 
kEnableDelayCache 

Definition at line 63 of file GsBaseMaterialView.h.

Constructor & Destructor Documentation

◆ OdGsBaseMaterialVectorizer()

OdGsBaseMaterialVectorizer::OdGsBaseMaterialVectorizer ( OdUInt32  uMaterialViewFlags = kProcessMappersAndMaterials)
explicit

◆ ~OdGsBaseMaterialVectorizer()

OdGsBaseMaterialVectorizer::~OdGsBaseMaterialVectorizer ( )

Member Function Documentation

◆ _itlCreateMapperItem()

OdGiMapperItemPtr OdGsBaseMaterialVectorizer::_itlCreateMapperItem ( ) const
protected

◆ _itlCreateMaterialItem()

OdGiMaterialItemPtr OdGsBaseMaterialVectorizer::_itlCreateMaterialItem ( ) const
protected

◆ appendDelayCacheEntry()

void OdGsBaseMaterialVectorizer::appendDelayCacheEntry ( DelayCacheEntry pEntry)

Sets user entry to delay cache.

Parameters
pEntry[in] Pointer to newly created cache entry.

◆ beginMetafile()

virtual void OdGsBaseMaterialVectorizer::beginMetafile ( OdRxObject pMetafile)
virtual

Begins vectorization to the specified GsMetafile (cache) object.

Parameters
pMetafile[in] Pointer to the GsMetafile.
Remarks
GsMetafiles are used to record vectorizations, and rapidly 'redraw' them to a display device.
See also
endMetafile newGsMetafile playMetafile

Reimplemented from OdGsBaseVectorizer.

◆ beginViewVectorization()

virtual void OdGsBaseMaterialVectorizer::beginViewVectorization ( )
virtual

OdGiBaseVectorizer methods *

Reimplemented from OdGsBaseVectorizer.

◆ computeDelayedExtents()

virtual bool OdGsBaseMaterialVectorizer::computeDelayedExtents ( const OdGiDrawable pDrawable,
OdGeExtents3d extents 
)
protectedvirtual

Called internally if extents needed for current drawable (if delay cache enabled).

Parameters
pDrawable[in] Pointer to current drawable.
extents[out] Computed extents.
Remarks
Returns true if and only if computed extents valid. Can be overrided by device if it needs more fast implementation.

◆ computeDrawableExtents()

virtual bool OdGsBaseMaterialVectorizer::computeDrawableExtents ( const OdGiDrawable pDrawable,
OdGeExtents3d extents 
)
protectedvirtual

Called internally if extents needed for current drawable (delay cache disabled).

Parameters
pDrawable[in] Pointer to current drawable.
extents[out] Computed extents.
Remarks
Returns true if and only if computed extents valid. Can be overrided by device if it needs more fast implementation.

◆ currentMapper()

OdGiMapperItemPtr OdGsBaseMaterialVectorizer::currentMapper ( bool  bForCoords = true) const

Returns current material mapper item.

Parameters
bForCoords[in] Set to true if mapper item pointer will be used for texture coordinates calculations.

◆ currentMaterial()

OdGiMaterialItemPtr OdGsBaseMaterialVectorizer::currentMaterial ( ) const

Returns current material item.

◆ delayCacheProcessed()

virtual void OdGsBaseMaterialVectorizer::delayCacheProcessed ( const OdGiDrawable pDrawable)
virtual

Called by delay cache writer after execution of all cache entries.

Remarks
Can be overrided for clear device's internal caches. If you want clear caches before execution, you could override computeDelayedExtents method instead of delayCacheProcessed.

◆ doDraw()

virtual bool OdGsBaseMaterialVectorizer::doDraw ( OdUInt32  drawableFlags,
const OdGiDrawable pDrawable 
)
virtual

Vectorizes the specified OdGiDrawable object.

Parameters
drawableFlags[in] Drawable flags.
pDrawable[in] Pointer to the Drawable object.
Remarks
Called by draw() after subSetAttributes().

Returns pDrawable->subWorldDraw(this). If pDrawable->subWorldDraw returns false, and kSuppressViewportDraw is not set, this function evokes pDrawable->subViewportDraw(this).

Reimplemented from OdGsBaseVectorizer.

◆ endMetafile()

virtual void OdGsBaseMaterialVectorizer::endMetafile ( OdRxObject pMetafile)
virtual

Ends vectorization to the specified GsMetafile (cache) object.

Parameters
pMetafile[in] Pointer to the GsMetafile.
Remarks
GsMetafiles are used to record vectorizations, and rapidly 'redraw' them to a display device.
See also
beginMetafile
newGsMetafile playMetafile

Reimplemented from OdGsBaseVectorizer.

◆ endViewVectorization()

virtual void OdGsBaseMaterialVectorizer::endViewVectorization ( )
virtual

Ends the ViewVectorization process for this Vectorizer object.

Reimplemented from OdGsBaseVectorizer.

◆ fillMaterialCache()

virtual OdGiMaterialItemPtr OdGsBaseMaterialVectorizer::fillMaterialCache ( OdGiMaterialItemPtr  prevCache,
OdDbStub *  materialId,
const OdGiMaterialTraitsData materialData 
)
virtual

Called by OdGsBaseMaterialView for initialize/reinitialize material cache.

Parameters
prevCache[in] Previous cache, if available.
materialId[in] Material id.
materialData[in] Current material traits.
Remarks
As default returns null pointer.

◆ getDeviceMapperMatrix()

virtual bool OdGsBaseMaterialVectorizer::getDeviceMapperMatrix ( OdGeMatrix3d dm) const
virtual

Can be overrided by device for setup additional transform matrix to material mapper.

Parameters
dm[out] Transform matrix.
Remarks
Return true if transform matrix initialized.

◆ isMapperAvailable()

bool OdGsBaseMaterialVectorizer::isMapperAvailable ( ) const

Returns true if and only if current mapper item available.

◆ isMapperEnabled()

bool OdGsBaseMaterialVectorizer::isMapperEnabled ( ) const

Returns true if and only if mappers support enabled.

◆ isMappingDelayed()

bool OdGsBaseMaterialVectorizer::isMappingDelayed ( ) const

Returns true if and only if delay cache is enabled and drawable extents is not available.

◆ isMaterialAvailable()

bool OdGsBaseMaterialVectorizer::isMaterialAvailable ( ) const

Returns true if and only if current material available.

◆ isMaterialEnabled()

bool OdGsBaseMaterialVectorizer::isMaterialEnabled ( ) const

Returns true if and only if materials support enabled.

◆ loadClientMaterialCache()

virtual OdRxObjectPtr OdGsBaseMaterialVectorizer::loadClientMaterialCache ( OdGsFiler pFiler,
OdGiMaterialItem pMatItem 
)
virtual

◆ loadMaterialCache()

virtual bool OdGsBaseMaterialVectorizer::loadMaterialCache ( OdGsMaterialNode pNode,
OdGsFiler pFiler 
)
virtual

Reimplemented from OdGsBaseVectorizer.

◆ loadMaterialItem()

OdGiMaterialItemPtr OdGsBaseMaterialVectorizer::loadMaterialItem ( OdGsFiler pFiler)

◆ loadMaterialTexture()

static OdGiMaterialTexturePtr OdGsBaseMaterialVectorizer::loadMaterialTexture ( OdGsFiler pFiler)
static

◆ loadMaterialTextureManager()

static bool OdGsBaseMaterialVectorizer::loadMaterialTextureManager ( OdGiMaterialTextureManager pManager,
OdGsFiler pFiler,
OdGsMaterialTextureDataFiler pSaver 
)
static

◆ mapperChangedForDelayCache()

virtual void OdGsBaseMaterialVectorizer::mapperChangedForDelayCache ( )
virtual

Called by delay cache writer if mapping entry was changed.

Remarks
Can be used for link cache markers with texture coordinates which must be recalculated after extents will be calculated.

◆ nullMaterialStub()

virtual void OdGsBaseMaterialVectorizer::nullMaterialStub ( )
virtual

Can be overrided by device for process null materials.

◆ onTraitsModified()

virtual void OdGsBaseMaterialVectorizer::onTraitsModified ( )
virtual

Notification function called by the vectorization framework whenever the rendering attributes have changed.

Remarks
This function is called before sending any geometry through the geometry conveyor.

This function provides a hook for setting rendering attributes for the final geometry handler (e.g. Win GDI device).

Reimplemented from OdGsBaseVectorizer.

◆ playDelayCacheEntry()

virtual void OdGsBaseMaterialVectorizer::playDelayCacheEntry ( const DelayCacheEntry pEntry)
virtual

Called by delay cache entry as default handler.

Parameters
pEntry[in] Pointer to caller entry.

◆ processMaterialNode()

virtual void OdGsBaseMaterialVectorizer::processMaterialNode ( OdDbStub *  materialId,
OdGsMaterialNode node 
)
virtual

Reimplemented from OdGsBaseVectorizer.

◆ renderMaterialCache()

virtual void OdGsBaseMaterialVectorizer::renderMaterialCache ( OdGiMaterialItemPtr  pCache,
OdDbStub *  materialId 
)
virtual

Called by OdGsBaseMaterialView for render material cache.

Parameters
pCache[in] Material cache.
materialId[in] Material id.
Remarks
As default does nothing.

◆ resetCurrentMapper()

void OdGsBaseMaterialVectorizer::resetCurrentMapper ( OdGiMapperItemPtr  pMapper)

Sets current material mapper item.

Parameters
pMapper[in] New material mapper item.

◆ resetCurrentMaterial() [1/2]

void OdGsBaseMaterialVectorizer::resetCurrentMaterial ( )

Removes current material item.

◆ resetCurrentMaterial() [2/2]

void OdGsBaseMaterialVectorizer::resetCurrentMaterial ( OdGiMaterialItemPtr  pMaterial)

Sets current material item.

Parameters
pMaterial[in] New material item.

◆ saveClientMaterialCache()

virtual bool OdGsBaseMaterialVectorizer::saveClientMaterialCache ( const OdRxObject pMtl,
OdGsFiler pFiler 
)
virtual

◆ saveMaterialCache()

virtual bool OdGsBaseMaterialVectorizer::saveMaterialCache ( const OdGsMaterialNode pNode,
OdGsFiler pFiler 
)
virtual

Reimplemented from OdGsBaseVectorizer.

◆ saveMaterialItem()

bool OdGsBaseMaterialVectorizer::saveMaterialItem ( const OdGiMaterialItem pMatItem,
OdGsFiler pFiler 
)

◆ saveMaterialTexture()

static bool OdGsBaseMaterialVectorizer::saveMaterialTexture ( const OdGiMaterialTexture pTexture,
OdGsFiler pFiler 
)
static

◆ saveMaterialTextureManager()

static bool OdGsBaseMaterialVectorizer::saveMaterialTextureManager ( const OdGiMaterialTextureManager pManager,
OdGsFiler pFiler,
OdGsMaterialTextureDataFiler pSaver 
)
static

◆ skipMaterialProcess()

virtual bool OdGsBaseMaterialVectorizer::skipMaterialProcess ( OdDbStub *  materialId) const
virtual

Test does current material need to be processed.

Parameters
materialId[in] Material id.
Remarks
Return true material need to be skipped. As default returns true for 2d optimized, wireframe and hidden render modes and if materialId null.

Friends And Related Function Documentation

◆ OdDefDelayCacheEntryMap

friend class OdDefDelayCacheEntryMap
friend

Definition at line 105 of file GsBaseMaterialView.h.

◆ OdManageMViewPerDrawableData

friend class OdManageMViewPerDrawableData
friend

Definition at line 106 of file GsBaseMaterialView.h.

Member Data Documentation

◆ m_nullMaterialTraitsData

OdGiMaterialTraitsData OdGsBaseMaterialVectorizer::m_nullMaterialTraitsData
protected

Definition at line 158 of file GsBaseMaterialView.h.

◆ m_pCurrentMapperItem

OdGiMapperItemPtr OdGsBaseMaterialVectorizer::m_pCurrentMapperItem
protected

Definition at line 157 of file GsBaseMaterialView.h.

◆ m_pCurrentMaterialItem

OdGiMaterialItemPtr OdGsBaseMaterialVectorizer::m_pCurrentMaterialItem
protected

Definition at line 156 of file GsBaseMaterialView.h.

◆ m_pNullMaterialItem

OdGiMaterialItemPtr OdGsBaseMaterialVectorizer::m_pNullMaterialItem
protected

Definition at line 159 of file GsBaseMaterialView.h.

◆ m_uMaterialViewFlags

OdUInt32 OdGsBaseMaterialVectorizer::m_uMaterialViewFlags
protected

Definition at line 155 of file GsBaseMaterialView.h.


The documentation for this class was generated from the following file: