CODOrderCommand Class

class CODOrderCommand: public CODIndexedCommand

Changes the z-order of components in a model. The z-order determines the order in which the diagram components are drawn. The components drawn first will appear like they are behind the components drawn later.

Defined in: OdOrderCmd.h

Class Members

VIEWS_API CODOrderCommand(CODModel* pModel)

Constructor.

VIEWS_API virtual ~CODOrderCommand()

Destructor.

OD_ORDER m_nOrder

The type of ordering this command is performing.

VIEWS_API OD_ORDER GetOrder() const

Gets the order type.

VIEWS_API void SetOrder(const OD_ORDER nOrder)

Sets the order type.

VIEWS_API virtual BOOL Execute()

Change the order of the components.

VIEWS_API virtual BOOL Unexecute()

Restore the components to their previous places in the z-order.

VIEWS_API virtual sfl::MvcCommand* Dup() const

Make a copy of this command.

VIEWS_API virtual void Sprint(CString& strCmd)

Print information on this command for logging purposes.