CODTransparencyCommand Class
class CODTransparencyCommand: public CODCommand
Changes the Transparency of components.Defined in: OdTransparencyCmd.h
Class Members
CODTransparencyCommand(CODModel* pModel)
Constructor.
virtual ~CODTransparencyCommand()
Destructor.
BOOL m_bTransparent
The transparent value to change the components to.
COLORREF m_clrTransparent
The transparent color to use for the components.
BOOL m_bSetTransparent
Non-zero indicates the transparency flag should be set.
BOOL m_bSetTransparentColor
Non-zero indicates the transparency color should be set.
CMap<CODComponent*,CODComponent*,BOOL,BOOL> m_mapOldTransparent
A map containing the old transparent values of the components. These are stored for undo purposes.
CMap<CODComponent*,CODComponent*,COLORREF,COLORREF> m_mapOldTransparentClr
A map containing the old transparent colors of the components. These are stored for undo purposes.
BOOL GetTransparent() const
Gets the transparent value that the components will be switched to.
void SetTransparent(BOOL bTransparent)
Sets the transparent value that the components will be switched to.
COLORREF GetTransparentColor() const
Gets the transparent color that the components will be switched to.
void SetTransparentColor(COLORREF clrTransparent)
Sets the transparent color that the components will be switched to.
BOOL CmdGetTransparent() const
Gets whether the command is set to alter the transparency flag.
void CmdSetTransparent(BOOL bSetTransparent)
Sets whether the command should alter the transparency flag.
BOOL CmdGetTransparentColor() const
Gets whether the command is set to alter the transparency color.
void CmdSetTransparentColor(BOOL bSetTransparentColor)
Sets whether the command should alter the transparency color.
void ClearOldTransparentValues()
Removes all entries from the map of old transparency values.
void ClearOldTransparentColorValues()
Removes all entries from the map of old transparency color values.
BOOL GetOldTransparent(CODComponent* pComp, BOOL& bTransparent) const
Gets the old transparency for a particular component.
void SetOldTransparent(CODComponent* pComp, BOOL bTransparent)
Sets the old transparency for a particular component.
COLORREF GetOldTransparentColor(CODComponent* pComp, COLORREF& clrTransparent) const
Gets the old transparency for a particular component.
void SetOldTransparentColor(CODComponent* pComp, COLORREF clrTransparent)
Gets the old transparency for a particular component.
void ClearOldTranspValues()
Clears all old transparency flag values.
void ClearOldTranspColorValues()
Clears all old transparency color values.
virtual BOOL Execute()
Change the transparency state of the components.
virtual BOOL Unexecute()
Restores the old transparency values of the components.
virtual sfl::MvcCommand* Dup() const
Make a copy of this transparency command.
virtual void Sprint(CString& strCmd)
Print information on this command for logging purposes.