CODAlignCommand Class
class CODAlignCommand: public CODMacroCommand
Aligns components relative to an anchor component (the last component in the set.Defined in: OdAlignCmd.h
Class Members
CODAlignCommand(CODModel* pModel)
Constructor.
virtual ~CODAlignCommand()
Destructor.
OD_ALIGNMENT m_nAlignment
The alignment type used to reposition components.
void GetAlignment(OD_ALIGNMENT& nAlignment) const
Gets the alignment type.
void SetAlignment(OD_ALIGNMENT nAlignment)
Sets the alignment type.
virtual void AddComponent(CODComponent* pComp)
Adds a component to the list of affected components.
virtual void AddComponents(CODComponentSet* pCompSet)
Adds multiple components to the list of affected components.
virtual void RemoveComponent(CODComponent* pComp)
Removes a component to the list of affected components.
virtual void RemoveAllComponents()
Removes all of the components of affected components.
virtual BOOL Execute()
Align the components, updating the position of the any affected links.
virtual void Sprint(CString& strCmd)
Print information on the command for logging purposes.