CFx SDK Documentation  2023 SP0
Public Member Functions | List of all members
OdDbGroup Class Reference

#include <DbGroup.h>

Inheritance diagram for OdDbGroup:
OdDbObject OdGiDrawable OdRxObject

Public Member Functions

 ODDB_DECLARE_MEMBERS (OdDbGroup)
 
 OdDbGroup ()
 
OdDbGroupIteratorPtr newIterator ()
 
OdString description () const
 
void setDescription (const OdString &description)
 
bool isSelectable () const
 
void setSelectable (bool selectable)
 
OdString name () const
 
void setName (const OdString &name)
 
bool isNotAccessible () const
 
bool isAnonymous () const
 
void setAnonymous ()
 
void append (OdDbObjectId objectId)
 
void append (const OdDbObjectIdArray &objectIds)
 
void prepend (OdDbObjectId objectId)
 
void prepend (const OdDbObjectIdArray &objectIds)
 
void insertAt (OdUInt32 insertionIndex, OdDbObjectId objectId)
 
void insertAt (OdUInt32 insertionIndex, const OdDbObjectIdArray &objectIds)
 
void remove (OdDbObjectId objectId)
 
void removeAt (OdUInt32 entityIndex)
 
void remove (const OdDbObjectIdArray &objectIds)
 
void removeAt (OdUInt32 index, const OdDbObjectIdArray &objectIds)
 
void replace (OdDbObjectId oldId, OdDbObjectId newId)
 
void transfer (OdUInt32 fromIndex, OdUInt32 toIndex, OdUInt32 numItems)
 
void clear ()
 
OdUInt32 numEntities () const
 
bool has (const OdDbEntity *pEntity) const
 
OdUInt32 allEntityIds (OdDbObjectIdArray &objectIds) const
 
void getIndex (OdDbObjectId objectId, OdUInt32 &index) const
 
void reverse ()
 
void setColorIndex (OdUInt16 colorIndex)
 
void setColor (const OdCmColor &color)
 
void setLayer (const OdString &layer)
 
void setLayer (OdDbObjectId layerId)
 
void setLinetype (const OdString &linetype)
 
void setLinetype (OdDbObjectId linetypeID)
 
void setLinetypeScale (double linetypeScale)
 
void setVisibility (OdDb::Visibility visibility)
 
void setPlotStyleName (const OdString &plotStyleName)
 
void setLineweight (OdDb::LineWeight lineWeight)
 
OdResult setHighlight (bool newVal)
 
OdResult setMaterial (const OdString &materialName)
 
OdResult setMaterial (OdDbObjectId materialID)
 
virtual OdResult dwgInFields (OdDbDwgFiler *pFiler)
 
virtual void dwgOutFields (OdDbDwgFiler *pFiler) const
 
virtual OdResult dxfInFields (OdDbDxfFiler *pFiler)
 
virtual void dxfOutFields (OdDbDxfFiler *pFiler) const
 
virtual void copied (const OdDbObject *pObject, const OdDbObject *pNewObject)
 
virtual void appendToOwner (OdDbIdPair &idPair, OdDbObject *pOwnerObject, OdDbIdMapping &ownerIdMap)
 
virtual OdResult subGetClassID (void *pClsid) const
 
virtual void subClose () ODRX_OVERRIDE
 
virtual OdDbObjectPtr subWblockClone (OdDbIdMapping &ownerIdMap, OdDbObject *, bool bPrimary) const ODRX_OVERRIDE
 
virtual OdDbObjectPtr subDeepClone (OdDbIdMapping &ownerIdMap, OdDbObject *, bool bPrimary) const ODRX_OVERRIDE
 
- Public Member Functions inherited from OdDbObject
 ODDB_DECLARE_MEMBERS (OdDbObject)
 
 ~OdDbObject ()
 
void addRef ()
 
void release ()
 
long numRefs () const
 
OdDbObjectId objectId () const
 
OdDbHandle getDbHandle () const
 
OdDbHandle handle () const
 
OdDbObjectId ownerId () const
 
virtual void setOwnerId (OdDbObjectId ownerId)
 
OdDbDatabasedatabase () const
 
void createExtensionDictionary ()
 
OdDbObjectId extensionDictionary () const
 
bool releaseExtensionDictionary ()
 
OdDbXrecordPtr createXrecord (const OdString &xrecordName, OdDb::DuplicateRecordCloning style=OdDb::kDrcIgnore)
 
void upgradeOpen ()
 
void downgradeOpen ()
 
void cancel ()
 
virtual OdResult subOpen (OdDb::OpenMode mode)
 
OdResult erase (bool eraseIt=true)
 
virtual OdResult subErase (bool erasing)
 
void handOverTo (OdDbObject *pNewObject, bool keepXData=true, bool keepExtDict=true)
 
virtual void subHandOverTo (OdDbObject *pNewObject)
 
void swapIdWith (OdDbObjectId otherId, bool swapXdata=false, bool swapExtDict=false)
 
virtual void subSwapIdWith (const OdDbObjectId &otherId, bool swapXdata=false, bool swapExtDict=false)
 
virtual void audit (OdDbAuditInfo *pAuditInfo)
 
void dwgIn (OdDbDwgFiler *pFiler)
 
void dwgOut (OdDbDwgFiler *pFiler) const
 
virtual OdResult dxfIn (OdDbDxfFiler *pFiler)
 
virtual void dxfOut (OdDbDxfFiler *pFiler) const
 
virtual OdResult dxfInFields_R12 (OdDbDxfFiler *pFiler)
 
virtual void dxfOutFields_R12 (OdDbDxfFiler *pFiler) const
 
virtual OdDb::DuplicateRecordCloning mergeStyle () const
 
virtual OdResBufPtr xData (const OdString &regappName=OdString::kEmpty) const
 
virtual void setXData (const OdResBuf *pRb)
 
bool isEraseStatusToggled () const
 
bool isErased () const
 
bool isReadEnabled () const
 
bool isWriteEnabled () const
 
bool isNotifyEnabled () const
 
bool isModified () const
 
bool isModifiedXData () const
 
bool isModifiedGraphics () const
 
bool isNewObject () const
 
bool isNotifying () const
 
bool isUndoing () const
 
bool isReallyClosing () const
 
bool isDBRO () const
 
void assertReadEnabled () const
 
void assertWriteEnabled (bool autoUndo=true, bool recordModified=true)
 
void assertNotifyEnabled () const
 
void disableUndoRecording (bool disable)
 
bool isUndoRecordingDisabled () const
 
OdDbDwgFilerundoFiler ()
 
virtual void applyPartialUndo (OdDbDwgFiler *pUndoFiler, OdRxClass *pClassObj)
 
void addReactor (OdDbObjectReactor *pReactor) const
 
void removeReactor (OdDbObjectReactor *pReactor) const
 
virtual void addPersistentReactor (const OdDbObjectId &objId)
 
virtual void removePersistentReactor (const OdDbObjectId &objId)
 
bool hasPersistentReactor (const OdDbObjectId &objId) const
 
OdDbObjectIdArray getPersistentReactors () const
 
OdDbObjectReactorArray getTransientReactors () const
 
virtual void recvPropagateModify (const OdDbObject *pSubObj)
 
virtual void xmitPropagateModify () const
 
ODRX_SEALED_VIRTUAL OdDbObjectPtr deepClone (OdDbIdMapping &ownerIdMap, OdDbObject *pOwner, bool bPrimary=true) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdDbObjectPtr wblockClone (OdDbIdMapping &ownerIdMap, OdDbObject *pOwner, bool bPrimary=true) const ODRX_SEALED
 
void setOdDbObjectIdsInFlux ()
 
bool isOdDbObjectIdsInFlux () const
 
virtual void erased (const OdDbObject *pObject, bool erasing=true)
 
virtual void goodbye (const OdDbObject *pObject)
 
virtual void openedForModify (const OdDbObject *pObject)
 
virtual void modified (const OdDbObject *pObject)
 
virtual void subObjModified (const OdDbObject *pObject, const OdDbObject *pSubObj)
 
virtual void modifyUndone (const OdDbObject *pObject)
 
virtual void modifiedXData (const OdDbObject *pObject)
 
virtual void unappended (const OdDbObject *pObject)
 
virtual void reappended (const OdDbObject *pObject)
 
bool isAProxy () const
 
virtual void objectClosed (const OdDbObjectId &objectId)
 
virtual void modifiedGraphics (const OdDbObject *pObject)
 
virtual void copyFrom (const OdRxObject *pSource)
 
bool hasSaveVersionOverride () const
 
void setHasSaveVersionOverride (bool hasSaveVersionOverride)
 
virtual OdDb::DwgVersion getObjectSaveVersion (const OdDbFiler *pFiler, OdDb::MaintReleaseVer *pMaintVer=0) const
 
virtual OdDbObjectPtr decomposeForSave (OdDb::DwgVersion ver, OdDbObjectId &replaceId, bool &exchangeXData)
 
virtual OdDbObjectPtr decomposeForSave (OdDb::SaveType format, OdDb::DwgVersion ver, OdDbObjectId &replaceId, bool &exchangeXData)
 
void convertForSave (OdDb::DwgVersion ver)
 
virtual void composeForLoad (OdDb::SaveType format, OdDb::DwgVersion version, OdDbAuditInfo *pAuditInfo)
 
virtual OdGiDrawabledrawable ()
 
virtual OdUInt32 subSetAttributes (OdGiDrawableTraits *pTraits) const
 
virtual bool subWorldDraw (OdGiWorldDraw *pWd) const
 
virtual void subViewportDraw (OdGiViewportDraw *pVd) const
 
virtual bool isPersistent () const
 
virtual OdDbStub * id () const
 
ODRX_SEALED_VIRTUAL OdResult getClassID (void *pClsid) const ODRX_SEALED
 
void setGsNode (OdGsCache *pNode)
 
OdGsCachegsNode () const
 
void xDataTransformBy (const OdGeMatrix3d &xfm)
 
bool hasFields () const
 
OdDbObjectId getField (const OdString &fieldName) const
 
OdDbObjectPtr getField (const OdString &fieldName, OdDb::OpenMode mode) const
 
virtual OdDbObjectId setField (const OdString &fieldName, OdDbField *pField)
 
virtual OdResult removeField (OdDbObjectId fieldId)
 
virtual OdDbObjectId removeField (const OdString &fieldName)
 
OdDbObjectId getFieldDictionary () const
 
OdDbObjectPtr getFieldDictionary (OdDb::OpenMode mode) const
 
virtual OdRxClasssaveAsClass (OdRxClass *pClass) const
 
- Public Member Functions inherited from OdGiDrawable
 ODRX_DECLARE_MEMBERS (OdGiDrawable)
 
virtual DrawableType drawableType () const
 
ODRX_SEALED_VIRTUAL OdUInt32 setAttributes (OdGiDrawableTraits *pTraits) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL bool worldDraw (OdGiWorldDraw *pWd) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL void viewportDraw (OdGiViewportDraw *pVd) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdUInt32 viewportDrawLogicalFlags (OdGiViewportDraw *pVd) const ODRX_SEALED
 
virtual OdResult getGeomExtents (OdGeExtents3d &extents) const
 
ODRX_SEALED_VIRTUAL OdUInt32 regenSupportFlags () const ODRX_SEALED
 
- 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
 
bool isKindOf (const OdRxClass *pClass) const
 
virtual OdRxObjectPtr clone () const
 
virtual OdRx::Ordering comparedTo (const OdRxObject *pOther) const
 
virtual bool isEqualTo (const OdRxObject *pOther) const
 

Additional Inherited Members

- Public Types inherited from OdGiDrawable
enum  SetAttributesFlags {
  kDrawableNone = 0 , kDrawableIsAnEntity = 1 , kDrawableUsesNesting = 2 , kDrawableIsCompoundObject = 4 ,
  kDrawableViewIndependentViewportDraw = 8 , kDrawableIsInvisible = 16 , kDrawableHasAttributes = 32 , kDrawableRegenTypeDependantGeometry = 64 ,
  kDrawableIsDimension = (kDrawableIsAnEntity + kDrawableIsCompoundObject + 128) , kDrawableRegenDraw = 256 , kDrawableStandardDisplaySingleLOD = 512 , kDrawableShadedDisplaySingleLOD = 1024 ,
  kDrawableViewDependentViewportDraw = 2048 , kDrawableBlockDependentViewportDraw = 4096 , kDrawableIsExternalReference = 8192 , kDrawableNotPlottable = 16384 ,
  kLastFlag = kDrawableNotPlottable
}
 
enum  DrawableType {
  kGeometry = 0 , kDistantLight = 1 , kPointLight = 2 , kSpotLight = 3 ,
  kAmbientLight , kSolidBackground , kGradientBackground , kImageBackground ,
  kGroundPlaneBackground , kViewport , kWebLight , kSkyBackground ,
  kImageBasedLightingBackground
}
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 
- Protected Member Functions inherited from OdDbObject
 OdDbObject ()
 
- Protected Member Functions inherited from OdGiDrawable
 OdGiDrawable ()
 
virtual OdUInt32 subViewportDrawLogicalFlags (OdGiViewportDraw *vd) const
 
virtual OdUInt32 subRegenSupportFlags () const
 
- Protected Attributes inherited from OdDbObject
OdDbObjectImplm_pImpl
 

Detailed Description

This class represents Group objects in an OdDbDatabase instance.

Remarks
Only top level entities in ModelSpace or PaperSpace can be placed in a Group.

<group OdDb_Classes>

Definition at line 101 of file DbGroup.h.

Constructor & Destructor Documentation

◆ OdDbGroup()

OdDbGroup::OdDbGroup ( )

Member Function Documentation

◆ allEntityIds()

OdUInt32 OdDbGroup::allEntityIds ( OdDbObjectIdArray objectIds) const

Returns the number of entities in this Group object, and their Object IDs.

Parameters
objectIds[out] Receives the Object IDs.

◆ append() [1/2]

void OdDbGroup::append ( const OdDbObjectIdArray objectIds)

Appends the specified entities to this Group object.

Parameters
objectIds[in] Object IDs of the entities to be appended.

◆ append() [2/2]

void OdDbGroup::append ( OdDbObjectId  objectId)

Appends the specified entity to this Group object.

Parameters
objectId[in] Object ID of the entity to be appended.

◆ appendToOwner()

virtual void OdDbGroup::appendToOwner ( OdDbIdPair idPair,
OdDbObject pOwnerObject,
OdDbIdMapping ownerIdMap 
)
virtual

This function appends this object to the specified owner object.

Parameters
idPair[in] ID pair to append.
pOwnerObject[in] Pointer to the owner object.
ownerIdMap[in/out] Owner's ID map.
Remarks
Adds a record to the specified ID map.

This function is used internally to subDeepClone() and subWblockClone().

Throws:

Cause eInvalidOwnerObject !pOwnerObject->get()

Reimplemented from OdDbObject.

◆ clear()

void OdDbGroup::clear ( )

Clears the contents of this Group object.

Remarks
After clearing, this Group object contains no entities.

◆ copied()

virtual void OdDbGroup::copied ( const OdDbObject pObject,
const OdDbObject pNewObject 
)
virtual

Notification function called whenever the notifying object has had its clone() member function called.

Parameters
pObject[in] Pointer to the notifying object.
pNewObject[in] Pointer to the object resulting from the copy.
Remarks
The default implementation of this function does nothing. This function can be overridden in custom classes.

Reimplemented from OdDbObject.

◆ description()

OdString OdDbGroup::description ( ) const

Returns the description of this Group object (DXF 300).

◆ dwgInFields()

virtual OdResult OdDbGroup::dwgInFields ( OdDbDwgFiler pFiler)
virtual

Reads the .dwg file data of this object.

Parameters
pFiler[in] Filer object from which data are read.
Returns
Returns the filer status.

This function is called by dwgIn() to allow the object to read its data.

When overriding this function:

1) Call assertWriteEnabled(). 2) Call the parent class's dwgInFields(pFiler). 3) If it returns eOK, continue; otherwise return whatever the parent's dwgInFields(pFiler) returned. 4) Call the OdDbDwgFiler(pFiler) methods to read each of the object's data items in the order they were written. 5) Return pFiler->filerStatus().

Reimplemented from OdDbObject.

◆ dwgOutFields()

virtual void OdDbGroup::dwgOutFields ( OdDbDwgFiler pFiler) const
virtual

Writes the .dwg file data of this object.

Parameters
pFiler[in] Pointer to the filer to which data are written.
Remarks

This function is called by dwgIn() to allow the object to write its data.

When overriding this function:

1) Call assertReadEnabled(). 2) Call the parent class's dwgOutFields(pFiler). 3) Call the OdDbDwgFiler(pFiler) methods to write each of the object's data items in the order they were written.

Reimplemented from OdDbObject.

◆ dxfInFields()

virtual OdResult OdDbGroup::dxfInFields ( OdDbDxfFiler pFiler)
virtual

Reads the DXF data of this object.

Parameters
pFiler[in] Pointer to the filer from which data are read.
Returns
Returns the filer status.

This function is called by dxfIn() to allow the object to read its data.

When overriding this function:

1) Call assertWriteEnabled(). 2) Call the parent class's dwgInFields(pFiler). 3) If it returns eOK, continue; otherwise return whatever the parent's dxfInFields(pFiler) returned. 4) Call the OdDbDxfFiler(pFiler) methods to read each of the object's data items in the order they were written. 5) Return pFiler->filerStatus().

Reimplemented from OdDbObject.

◆ dxfOutFields()

virtual void OdDbGroup::dxfOutFields ( OdDbDxfFiler pFiler) const
virtual

Writes the DXF data of this object.

Parameters
pFiler[in] Pointer to the filer to which data are to be written.
Remarks

This function is called by dxfOut() to allow the object to write its data.

When overriding this function:

1) Call assertReadEnabled(). 2) Call the parent class's dxfOutFields(pFiler). 4) Use pFiler to call the OdDbDxfFiler methods to write each of the object's data items in the order they were written.

Reimplemented from OdDbObject.

◆ getIndex()

void OdDbGroup::getIndex ( OdDbObjectId  objectId,
OdUInt32 index 
) const

Returns the index of the specified entity within this Group object.

Parameters
objectId[in] Object ID of the entity.
index[out] Index of objectId within this Group.

Throws:

Cause eInvalidInput objectId is not in this Group object.

◆ has()

bool OdDbGroup::has ( const OdDbEntity pEntity) const

Returns true if and only if this Group object contains the specified entity.

Parameters
pEntity[in] Pointer to the entity being tested.

◆ insertAt() [1/2]

void OdDbGroup::insertAt ( OdUInt32  insertionIndex,
const OdDbObjectIdArray objectIds 
)

Inserts the specified entities to this Group object at the specified index.

Parameters
objectIds[in] Object IDs of the entities to be inserted.

◆ insertAt() [2/2]

void OdDbGroup::insertAt ( OdUInt32  insertionIndex,
OdDbObjectId  objectId 
)

Inserts the specified entity to this Group object at the specified index.

Parameters
objectId[in] Object ID of the entity to be inserted.
insertionIndex[in] Insertion index.

◆ isAnonymous()

bool OdDbGroup::isAnonymous ( ) const

Returns true if and only if this Group object is anonymous (DXF 70).

◆ isNotAccessible()

bool OdDbGroup::isNotAccessible ( ) const

Returns true if and only if this Group object is inaccessible.

Remarks
Currently, only groups in Xrefs are flagged as inaccessable.

◆ isSelectable()

bool OdDbGroup::isSelectable ( ) const

Returns true if and only if this Group object is selectable (DXF 71).

◆ name()

OdString OdDbGroup::name ( ) const

Returns the name of this Group object.

◆ newIterator()

OdDbGroupIteratorPtr OdDbGroup::newIterator ( )

Creates an Iterator object that provides access to the entities in this Group object.

◆ numEntities()

OdUInt32 OdDbGroup::numEntities ( ) const

Returns the number of entities in this Group object.

◆ ODDB_DECLARE_MEMBERS()

OdDbGroup::ODDB_DECLARE_MEMBERS ( OdDbGroup  )

◆ prepend() [1/2]

void OdDbGroup::prepend ( const OdDbObjectIdArray objectIds)

Prepends the specified entities to this Group object.

Parameters
objectIds[in] Object IDs of the entities to be prepended.

◆ prepend() [2/2]

void OdDbGroup::prepend ( OdDbObjectId  objectId)

Prepends the specified entity to this Group object.

Parameters
objectId[in] Object ID of the entity to be prepended.

◆ remove() [1/2]

void OdDbGroup::remove ( const OdDbObjectIdArray objectIds)

Removes the specified entities from this Group object.

Parameters
objectIds[in] Object IDs of the entities to be removed.

◆ remove() [2/2]

void OdDbGroup::remove ( OdDbObjectId  objectId)

Removes the specified entity from this Group object.

Parameters
objectId[in] Object ID of the entity to be removed.

◆ removeAt() [1/2]

void OdDbGroup::removeAt ( OdUInt32  entityIndex)

Removes the entity at the specified index, or the specified entities at or above the specified index, from this Group object.

Parameters
entityIndex[in] Entity index.

◆ removeAt() [2/2]

void OdDbGroup::removeAt ( OdUInt32  index,
const OdDbObjectIdArray objectIds 
)

Removes the entity at the specified index, or the specified entities at or above the specified index, from this Group object.

Parameters
objectIds[in] Object IDs of the entities to be inserted.
Remarks
If any of the entities in objectIds are not in this Group object, or are at an index > index, none of the entities will be removed.

◆ replace()

void OdDbGroup::replace ( OdDbObjectId  oldId,
OdDbObjectId  newId 
)

Replaces the specified entity in this Group object with the specified entity currently not in this Group object.

Parameters
oldId[in] Object ID of the entity to be
newId[in] Object ID of the entity to replace oldId.

◆ reverse()

void OdDbGroup::reverse ( )

Reverses the order of the entities in this Group object.

◆ setAnonymous()

void OdDbGroup::setAnonymous ( )

Sets this Group object as anonymous (DXF 70).

Remarks
The name of this Group object will be set to an automatically generated anonymous group name.

◆ setColor()

void OdDbGroup::setColor ( const OdCmColor color)

Sets the color of all entities in this Group object to the specified value.

Parameters
color[in] Color.

◆ setColorIndex()

void OdDbGroup::setColorIndex ( OdUInt16  colorIndex)

Sets the color of all entities in this Group object to the specified color. void setColor(const OdCmColor &color);

Sets the color index of all entities in this Group object to the specified value.

Parameters
colorIndex[in] Color index.

◆ setDescription()

void OdDbGroup::setDescription ( const OdString description)

Sets the description of this Group object (DXF 300).

Parameters
description[in] Description.

◆ setHighlight()

OdResult OdDbGroup::setHighlight ( bool  newVal)

◆ setLayer() [1/2]

void OdDbGroup::setLayer ( const OdString layer)

Sets the layer of all entities in this Group object to the specified value.

Parameters
layer[in] Layer name.

◆ setLayer() [2/2]

void OdDbGroup::setLayer ( OdDbObjectId  layerId)

Sets the layer of all entities in this Group object to the specified value.

Parameters
layerId[in] Object ID of the LayerTableRecord.

◆ setLinetype() [1/2]

void OdDbGroup::setLinetype ( const OdString linetype)

Sets the linetype of all entities in this Group object to the specified value.

Parameters
linetype[in] Linetype name.

◆ setLinetype() [2/2]

void OdDbGroup::setLinetype ( OdDbObjectId  linetypeID)

Sets the linetype of all entities in this Group object to the specified value.

Parameters
linetypeId[in] Object ID of linetype.

◆ setLinetypeScale()

void OdDbGroup::setLinetypeScale ( double  linetypeScale)

Sets the linetype scale of all entities in this Group object to the specified value.

Parameters
linetypeScale[in] Linetype scale.

◆ setLineweight()

void OdDbGroup::setLineweight ( OdDb::LineWeight  lineWeight)

Sets the lineweight of all entities in this Group object to the specified value.

Parameters
lineWeight[in] Lineweight.

◆ setMaterial() [1/2]

OdResult OdDbGroup::setMaterial ( const OdString materialName)

◆ setMaterial() [2/2]

OdResult OdDbGroup::setMaterial ( OdDbObjectId  materialID)

◆ setName()

void OdDbGroup::setName ( const OdString name)

Sets the name for this Group object.

Parameters
name[in] Name.

◆ setPlotStyleName()

void OdDbGroup::setPlotStyleName ( const OdString plotStyleName)

Sets the PlotStyleName of all entities in this Group object to the specified value.

Parameters
plotStyleName[in] PlotStyleName.

◆ setSelectable()

void OdDbGroup::setSelectable ( bool  selectable)

Sets this Group object as selectable (DXF 71).

Parameters
selectable[in] Selectable flag.

◆ setVisibility()

void OdDbGroup::setVisibility ( OdDb::Visibility  visibility)

Sets the visibility of all entities in this Group object to the specified value.

Parameters
visibility[in] Visibility.

◆ subClose()

virtual void OdDbGroup::subClose ( )
virtual

Called as the first operation as this object is being closed, for database -resident objects only.

Remarks
This function is notified just before the current open operation is to be closed, giving this function the ability to perform necessary operatons.

When overriding this function:

1) If the OdDbObject's state is incorrect, throw exception.

2) Call parent class's subClose().

3) If other actions are required before close, do them.

The default implementation of this function does nothing. This function can be overridden in custom classes.

Reimplemented from OdDbObject.

◆ subDeepClone()

virtual OdDbObjectPtr OdDbGroup::subDeepClone ( OdDbIdMapping ownerIdMap,
OdDbObject ,
bool  bPrimary 
) const
virtual

Reimplemented from OdDbObject.

◆ subGetClassID()

virtual OdResult OdDbGroup::subGetClassID ( void pClsid) const
virtual

Reimplemented from OdDbObject.

◆ subWblockClone()

virtual OdDbObjectPtr OdDbGroup::subWblockClone ( OdDbIdMapping ownerIdMap,
OdDbObject ,
bool  bPrimary 
) const
virtual

Reimplemented from OdDbObject.

◆ transfer()

void OdDbGroup::transfer ( OdUInt32  fromIndex,
OdUInt32  toIndex,
OdUInt32  numItems 
)

Rearranges the entities within this Group object.

Parameters
fromIndex[in] Index of the first entity to be moved.
toIndex[in] Destination index of the first entity moved.
numItems[in] Number of objects to move.
Remarks
This function transfers numItems starting at the fromIndex to the toIndex.

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