X3DTK::X3DComponentVisitor Class Reference
[processor]

Abstract class declared in <X3DTK/kernel.h> defining the concept of component visitor. More...

Inheritance diagram for X3DTK::X3DComponentVisitor:

X3DTK::X3DComponent X3DTK::AbstractVisitor X3DTK::GL::CoreVisitor X3DTK::GL::Geometry3DVisitor X3DTK::GL::GroupingVisitor X3DTK::GL::RenderingVisitor X3DTK::GL::ShapeVisitor X3DTK::GL::TexturingVisitor X3DTK::MESH::CoreVisitor X3DTK::X3D::CoreVisitor X3DTK::X3D::Geometry3DVisitor X3DTK::X3D::GroupingVisitor X3DTK::X3D::InterpolationVisitor X3DTK::X3D::LightingVisitor X3DTK::X3D::NavigationVisitor X3DTK::X3D::NetworkingVisitor X3DTK::X3D::NURBSVisitor X3DTK::X3D::RenderingVisitor X3DTK::X3D::ShapeVisitor X3DTK::X3D::TexturingVisitor List of all members.

Public Member Functions

Protected Member Functions


Detailed Description

Abstract class declared in <X3DTK/kernel.h> defining the concept of component visitor.

A component visitor is a visitor for a component of the X3D nodes. It records callbacks of three different types. Enter, walkOn and leave functions can be recorded. For more details about defining and recording callbacks, see the processor page. Two syntaxes can be used depending on the compiler used.


Constructor & Destructor Documentation

X3DTK::X3DComponentVisitor::X3DComponentVisitor  ) 
 

Constructor.

virtual X3DTK::X3DComponentVisitor::~X3DComponentVisitor  )  [pure virtual]
 

Destructor.


Member Function Documentation

void X3DTK::X3DComponentVisitor::define const std::pair< StringType, LeaveFunction * > &  entry  )  [protected]
 

Define a new leave function.

The node of type T must belong to the component, otherwise the function is not recorded. Portable syntax.

void X3DTK::X3DComponentVisitor::define const std::pair< StringType, WalkOnFunction * > &  entry  )  [protected]
 

Define a new walk On function.

The node of type T must belong to the component, otherwise the function is not recorded. Portable syntax.

void X3DTK::X3DComponentVisitor::define const std::pair< StringType, EnterFunction * > &  entry  )  [protected]
 

Define a new enter function.

The node of type T must belong to the component, otherwise the function is not recorded. Portable syntax.

template<class T>
void X3DTK::X3DComponentVisitor::defineEnterFunction void(*  ptrF)(T *)  )  [protected]
 

Define a new enter function.

The node of type T must belong to the component, otherwise the function is not recorded. Preferred syntax.

template<class T>
void X3DTK::X3DComponentVisitor::defineLeaveFunction void(*  ptrF)(T *)  )  [protected]
 

Define a new leave function.

The node of type T must belong to the component, otherwise the function is not recorded. Preferred syntax.

template<class T>
void X3DTK::X3DComponentVisitor::defineWalkOnFunction bool(*  ptrF)(T *, SFNode)  )  [protected]
 

Define a new walk On function.

The node of type T must belong to the component, otherwise the function is not recorded. Preferred syntax.

EnterFunction* X3DTK::X3DComponentVisitor::getEnterFunctionOf const SFType type  )  const
 

Gets the enter function of SFType type.

LeaveFunction* X3DTK::X3DComponentVisitor::getLeaveFunctionOf const SFType type  )  const
 

Gets the leave function of SFType type.

WalkOnFunction* X3DTK::X3DComponentVisitor::getWalkOnFunctionOf const SFType type  )  const
 

Gets the WalkOn function of SFType type.


Generated on Fri Jul 30 12:02:35 2004 for X3DToolKit by doxygen 1.3.6