Public Types

deSkinSourceVisitorIdentify Class Reference

Animator Rule Visitor Identify. More...

#include <deSkinSourceVisitorIdentify.h>

Inheritance diagram for deSkinSourceVisitorIdentify:
deSkinSourceVisitor

List of all members.

Public Types

enum  eSourceTypes {
  estUnknown, estColor, estImage, estChain,
  estRenderable
}

Public Member Functions

Constructors and Destructors
 deSkinSourceVisitorIdentify ()
 Creates a new animator source visitor identify object.
virtual ~deSkinSourceVisitorIdentify ()
 Cleans up the animator source visitor identify.
Management
int GetType () const
 Retrieves the source type.
bool IsUnknown () const
 Determines if this is an unknown source.
bool IsColor () const
 Determines if this is a color source.
bool IsImage () const
 Determines if this is an image source.
bool IsChain () const
 Determines if this is a chain source.
bool IsRenderable () const
 Determines if this is a renderable source.
deSkinSourceColorCastToColor () const
 Cast to a color source.
deSkinSourceImageCastToImage () const
 Cast to an image source.
deSkinSourceChainCastToChain () const
 Cast to a chain source.
deSkinSourceRenderableCastToRenderable () const
 Cast to a renderable source.
void Reset ()
 Resets the visitor.
Visiting
virtual void VisitSource (deSkinSource *source)
 Visits a source.
virtual void VisitColor (deSkinSourceColor *source)
 Visits a color source.
virtual void VisitImage (deSkinSourceImage *source)
 Visits an image source.
virtual void VisitChain (deSkinSourceChain *source)
 Visits a chain source.
virtual void VisitRenderable (deSkinSourceRenderable *source)
 Visits a renderable source.

Detailed Description

Animator Rule Visitor Identify.

Animation source visitor providing source identification. After visiting a source the visitor can be asked what kind of source has been visited. Useful to identify sources and to carry out actions only for certain source types. Furthermore save casting is provided. If the cast is not valid an exception is raised.

Author:
Plüss Roland
Version:
1.0
Date:
2008

Member Enumeration Documentation

Enumerator:
estUnknown 
estColor 
estImage 
estChain 
estRenderable 

Constructor & Destructor Documentation

deSkinSourceVisitorIdentify::deSkinSourceVisitorIdentify (  )

Creates a new animator source visitor identify object.

virtual deSkinSourceVisitorIdentify::~deSkinSourceVisitorIdentify (  ) [virtual]

Cleans up the animator source visitor identify.


Member Function Documentation

deSkinSourceChain* deSkinSourceVisitorIdentify::CastToChain (  ) const

Cast to a chain source.

deSkinSourceColor* deSkinSourceVisitorIdentify::CastToColor (  ) const

Cast to a color source.

deSkinSourceImage* deSkinSourceVisitorIdentify::CastToImage (  ) const

Cast to an image source.

deSkinSourceRenderable* deSkinSourceVisitorIdentify::CastToRenderable (  ) const

Cast to a renderable source.

int deSkinSourceVisitorIdentify::GetType (  ) const [inline]

Retrieves the source type.

bool deSkinSourceVisitorIdentify::IsChain (  ) const [inline]

Determines if this is a chain source.

References estChain.

bool deSkinSourceVisitorIdentify::IsColor (  ) const [inline]

Determines if this is a color source.

References estColor.

bool deSkinSourceVisitorIdentify::IsImage (  ) const [inline]

Determines if this is an image source.

References estImage.

bool deSkinSourceVisitorIdentify::IsRenderable (  ) const [inline]

Determines if this is a renderable source.

References estRenderable.

bool deSkinSourceVisitorIdentify::IsUnknown (  ) const [inline]

Determines if this is an unknown source.

References estUnknown.

void deSkinSourceVisitorIdentify::Reset (  )

Resets the visitor.

virtual void deSkinSourceVisitorIdentify::VisitChain ( deSkinSourceChain source ) [virtual]

Visits a chain source.

Reimplemented from deSkinSourceVisitor.

virtual void deSkinSourceVisitorIdentify::VisitColor ( deSkinSourceColor source ) [virtual]

Visits a color source.

Reimplemented from deSkinSourceVisitor.

virtual void deSkinSourceVisitorIdentify::VisitImage ( deSkinSourceImage source ) [virtual]

Visits an image source.

Reimplemented from deSkinSourceVisitor.

virtual void deSkinSourceVisitorIdentify::VisitRenderable ( deSkinSourceRenderable source ) [virtual]

Visits a renderable source.

Reimplemented from deSkinSourceVisitor.

virtual void deSkinSourceVisitorIdentify::VisitSource ( deSkinSource source ) [virtual]

Visits a source.

Reimplemented from deSkinSourceVisitor.


The documentation for this class was generated from the following file: