CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
OdDbBlockRepresentationContext Class Reference

#include <DbBlockRepresentation.h>

Inheritance diagram for OdDbBlockRepresentationContext:
OdRxObject

Public Member Functions

 OdDbBlockRepresentationContext ()
 
 ~OdDbBlockRepresentationContext ()
 
void init (const OdDbDynBlockReference *ref, OdDbBlockReference *dbref, OdDbEvalGraph *gr, bool bRequireEvaluate=false, bool loadIndstanceData=true)
 
void loadInstanceData (bool bRequireEvaluate=false, bool noHistoryData=true)
 
void compactRepresentation ()
 
bool originalPathToRepresentationPath (const OdDbObjectIdArray &, OdDbEntityPtrArray &res) const
 
bool representationPathToOriginalPath (OdDbObjectIdArray &) const
 
void createRepresentation (bool copied=true)
 
void addHistoryRecord (const OdString &name, const OdResBuf *value, OdDbEvalNodeId node)
 
OdDbXrecordPtr getHistoryRecord () const
 
bool applyHistory (OdResBufPtr pRb)
 
void updateRepresentation ()
 
OdDbObjectId getRepresentation () const
 
OdDbObjectId getOriginal () const
 
OdDbEvalExprPtr getRepresentationNode (OdDbEvalNodeId id) const
 
OdDbBlockReferencePtr getReference () const
 
OdDbEvalGraphPtr getGraph () const
 
OdDbBlockTableRecordPtr getBlock () const
 
void writeUndo (OdDbEvalGraph *gr)
 
void readUndo (OdDbObjectId refId, OdDbDwgFiler *pFiler)
 
OdDbAttributePtr getAttribute (OdDbAttributeDefinition *)
 
OdGeMatrix3d getRelativeMatrix (const OdGeMatrix3d &m) const
 
OdGeVector3d getRelativeOffset (const OdGeVector3d &v) const
 
OdDbObjectId getBlockData () const
 
void setBlockUpdateMode (bool b)
 
bool blockUpdateMode () const
 
bool registerTransformedEntity (OdDbObjectId id)
 
bool registerStretchedEntity (OdDbObjectId id, const OdIntArray &indices)
 
OdDbObjectId getBlockHData () const
 
void SetAbortFunc (std::function< bool() > abortFunc)
 
std::function< bool() > GetAbortFunc () const
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () 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
 

Static Public Member Functions

static void tagBlockRecord (OdDbBlockTableRecord *repBTR, const OdDbHandle &originalBlockHandle)
 
static void clearRepBlock (OdDbBlockTableRecord *repRTR)
 
static OdDbBlockRepresentationContextgetRepresentationContext (OdDbBlockReference *br, bool validate=true)
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 
static void rxInit ()
 
static void rxUninit ()
 

Public Attributes

std::function< bool() > m_abortFunc = nullptr
 

Friends

class OdDbDynBlockReference
 

Detailed Description

<group OdDb_Classes>

Definition at line 47 of file DbBlockRepresentation.h.

Constructor & Destructor Documentation

◆ OdDbBlockRepresentationContext()

OdDbBlockRepresentationContext::OdDbBlockRepresentationContext ( )

◆ ~OdDbBlockRepresentationContext()

OdDbBlockRepresentationContext::~OdDbBlockRepresentationContext ( )

Member Function Documentation

◆ addHistoryRecord()

void OdDbBlockRepresentationContext::addHistoryRecord ( const OdString & name,
const OdResBuf * value,
OdDbEvalNodeId node )

◆ applyHistory()

bool OdDbBlockRepresentationContext::applyHistory ( OdResBufPtr pRb)

◆ blockUpdateMode()

bool OdDbBlockRepresentationContext::blockUpdateMode ( ) const
inline

Definition at line 100 of file DbBlockRepresentation.h.

◆ clearRepBlock()

static void OdDbBlockRepresentationContext::clearRepBlock ( OdDbBlockTableRecord * repRTR)
static

◆ compactRepresentation()

void OdDbBlockRepresentationContext::compactRepresentation ( )

◆ createRepresentation()

void OdDbBlockRepresentationContext::createRepresentation ( bool copied = true)

◆ GetAbortFunc()

std::function< bool() > OdDbBlockRepresentationContext::GetAbortFunc ( ) const

◆ getAttribute()

OdDbAttributePtr OdDbBlockRepresentationContext::getAttribute ( OdDbAttributeDefinition * )

◆ getBlock()

OdDbBlockTableRecordPtr OdDbBlockRepresentationContext::getBlock ( ) const

◆ getBlockData()

OdDbObjectId OdDbBlockRepresentationContext::getBlockData ( ) const
inline

Definition at line 98 of file DbBlockRepresentation.h.

◆ getBlockHData()

OdDbObjectId OdDbBlockRepresentationContext::getBlockHData ( ) const

◆ getGraph()

OdDbEvalGraphPtr OdDbBlockRepresentationContext::getGraph ( ) const

◆ getHistoryRecord()

OdDbXrecordPtr OdDbBlockRepresentationContext::getHistoryRecord ( ) const

◆ getOriginal()

OdDbObjectId OdDbBlockRepresentationContext::getOriginal ( ) const
inline

Definition at line 87 of file DbBlockRepresentation.h.

◆ getReference()

OdDbBlockReferencePtr OdDbBlockRepresentationContext::getReference ( ) const

◆ getRelativeMatrix()

OdGeMatrix3d OdDbBlockRepresentationContext::getRelativeMatrix ( const OdGeMatrix3d & m) const

◆ getRelativeOffset()

OdGeVector3d OdDbBlockRepresentationContext::getRelativeOffset ( const OdGeVector3d & v) const

◆ getRepresentation()

OdDbObjectId OdDbBlockRepresentationContext::getRepresentation ( ) const
inline

Definition at line 86 of file DbBlockRepresentation.h.

◆ getRepresentationContext()

static OdDbBlockRepresentationContext * OdDbBlockRepresentationContext::getRepresentationContext ( OdDbBlockReference * br,
bool validate = true )
static

◆ getRepresentationNode()

OdDbEvalExprPtr OdDbBlockRepresentationContext::getRepresentationNode ( OdDbEvalNodeId id) const

◆ init()

void OdDbBlockRepresentationContext::init ( const OdDbDynBlockReference * ref,
OdDbBlockReference * dbref,
OdDbEvalGraph * gr,
bool bRequireEvaluate = false,
bool loadIndstanceData = true )

◆ loadInstanceData()

void OdDbBlockRepresentationContext::loadInstanceData ( bool bRequireEvaluate = false,
bool noHistoryData = true )

◆ originalPathToRepresentationPath()

bool OdDbBlockRepresentationContext::originalPathToRepresentationPath ( const OdDbObjectIdArray & ,
OdDbEntityPtrArray & res ) const

◆ readUndo()

void OdDbBlockRepresentationContext::readUndo ( OdDbObjectId refId,
OdDbDwgFiler * pFiler )

◆ registerStretchedEntity()

bool OdDbBlockRepresentationContext::registerStretchedEntity ( OdDbObjectId id,
const OdIntArray & indices )

◆ registerTransformedEntity()

bool OdDbBlockRepresentationContext::registerTransformedEntity ( OdDbObjectId id)
inline

Definition at line 101 of file DbBlockRepresentation.h.

◆ representationPathToOriginalPath()

bool OdDbBlockRepresentationContext::representationPathToOriginalPath ( OdDbObjectIdArray & ) const

◆ SetAbortFunc()

void OdDbBlockRepresentationContext::SetAbortFunc ( std::function< bool() > abortFunc)

◆ setBlockUpdateMode()

void OdDbBlockRepresentationContext::setBlockUpdateMode ( bool b)
inline

Definition at line 99 of file DbBlockRepresentation.h.

◆ tagBlockRecord()

static void OdDbBlockRepresentationContext::tagBlockRecord ( OdDbBlockTableRecord * repBTR,
const OdDbHandle & originalBlockHandle )
static

◆ updateRepresentation()

void OdDbBlockRepresentationContext::updateRepresentation ( )

◆ writeUndo()

void OdDbBlockRepresentationContext::writeUndo ( OdDbEvalGraph * gr)

Friends And Related Symbol Documentation

◆ OdDbDynBlockReference

friend class OdDbDynBlockReference
friend

Definition at line 104 of file DbBlockRepresentation.h.

Member Data Documentation

◆ m_abortFunc

std::function< bool() > OdDbBlockRepresentationContext::m_abortFunc = nullptr

Definition at line 107 of file DbBlockRepresentation.h.


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