#include <CFilter.h>
CFilter
CFilter();
virtual ~CRingItem();
virtual const CRingItem* clone();
virtual CRingItem* handleRingItem(CRingItem* item);
virtual CRingItem* handleStateChangeItem(CRingStateChangeItem* item);
virtual CRingItem* handleScalerItem(CRingScalerItem* item);
virtual CRingItem* handlePhysicsEventItem(CPhysicsEventItem* item);
virtual CRingItem* handleFragmentItem(CRingFragmentItem* item);
virtual CRingItem* handlePhysicsEventCountItem(CRingPhysicsEventCountItem* item);
virtual CRingItem* handleTextItem(CRingTextItem* item);
CFilter
is the base class of all primitive filters. It cannot be instantiated because it is an abstract class. The clone
method is a null method to enforce that this must be clonable.
A series of handler methods are declared virtual for derived classes to write their own handler implementations. Because all of these handlers provide a default implementation, derived classes need not write an implementation for all of the handlers. All of the handlers in the base class do nothing more than return the ring item passed as an argument.
CFilter();
The default constructor is a no-op.
virtual ~CRingItem();
The virtual destructor is a no-op.
virtual const CRingItem* clone();
This is declared null.
virtual CRingItem* handleRingItem(CRingItem* item);
Returns a copy of this.
virtual CRingItem* handleStateChangeItem(CRingStateChangeItem* item);
Downcasts the item pointer to a CRingItem and returns it.
virtual CRingItem* handleScalerItem(CRingScalerItem* item);
Downcasts the item pointer to a CRingItem and returns it.
virtual CRingItem* handlePhysicsEventItem(CPhysicsEventItem* item);
Downcasts the item pointer to a CRingItem and returns it.
virtual CRingItem* handleFragmentItem(CRingFragmentItem* item);
Downcasts the item pointer to a CRingItem and returns it.
virtual CRingItem* handlePhysicsEventCountItem(CRingPhysicsEventCountItem* item);
Downcasts the item pointer to a CRingItem and returns it.
virtual CRingItem* handleTextItem(CRingTextItem* item);
Downcasts the item pointer to a CRingItem and returns it.