CODIndexedCommand Class

class CODIndexedCommand: public CODCommand

A command object which must save an index value for components.

Defined in: OdIndexedCmd.h

Class Members

VIEWS_API CODIndexedCommand(CODModel* pModel)

Constructor.

VIEWS_API virtual ~CODIndexedCommand()

Destructor.

CODIndexMap m_mapIndices

A map of indices for components.

VIEWS_API void ClearIndices()

Removes all entries from the map of indices.

VIEWS_API BOOL GetIndex(CODComponent* pComp, int& nIndex) const

Gets the index associated with a component.

VIEWS_API void SetIndex(CODComponent* pComp, int nIndex)

Saves an index value for a component.

VIEWS_API void UpdateIndices(CODComponentSet* pCompSet)

Gets index from the model for each component in the set and updates the map appropriately.