OpenWalnut  1.5.0dev
Public Member Functions | Private Attributes | List of all members
WGEPropertyTransformationCallback< ParentType, TargetType > Class Template Reference

TODO(ebaum): write. More...

#include <WGEPropertyTransformationCallback.h>

+ Inheritance diagram for WGEPropertyTransformationCallback< ParentType, TargetType >:
+ Collaboration diagram for WGEPropertyTransformationCallback< ParentType, TargetType >:

Public Member Functions

 WGEPropertyTransformationCallback (WPropMatrix4X4 prop)
 Default constructor. More...
 
virtual ~WGEPropertyTransformationCallback ()
 Destructor. More...
 
virtual void operator() (typename WGECallbackTraits< ParentType >::HandledType *handled, osg::NodeVisitor *nv)
 This operator gets called by OSG every update cycle. More...
 

Private Attributes

WPropMatrix4X4 m_prop
 The property controlling the callback. More...
 

Detailed Description

template<typename ParentType = osg::Node, typename TargetType = osg::MatrixTransform>
class WGEPropertyTransformationCallback< ParentType, TargetType >

TODO(ebaum): write.

Definition at line 41 of file WGEPropertyTransformationCallback.h.

Constructor & Destructor Documentation

◆ WGEPropertyTransformationCallback()

template<typename ParentType , typename TargetType >
WGEPropertyTransformationCallback< ParentType, TargetType >::WGEPropertyTransformationCallback ( WPropMatrix4X4  prop)
explicit

Default constructor.

Parameters
propthe property holding the matrix to use.

Definition at line 73 of file WGEPropertyTransformationCallback.h.

◆ ~WGEPropertyTransformationCallback()

template<typename ParentType , typename TargetType >
WGEPropertyTransformationCallback< ParentType, TargetType >::~WGEPropertyTransformationCallback
virtual

Destructor.

Definition at line 81 of file WGEPropertyTransformationCallback.h.

Member Function Documentation

◆ operator()()

template<typename ParentType , typename TargetType >
void WGEPropertyTransformationCallback< ParentType, TargetType >::operator() ( typename WGECallbackTraits< ParentType >::HandledType *  handled,
osg::NodeVisitor *  nv 
)
virtual

This operator gets called by OSG every update cycle.

It calls the specified functor.

Parameters
handledthe osg node, stateset or whatever
nvthe node visitor

Definition at line 87 of file WGEPropertyTransformationCallback.h.

References WGECallbackTraits< Type >::traverse().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_prop

template<typename ParentType = osg::Node, typename TargetType = osg::MatrixTransform>
WPropMatrix4X4 WGEPropertyTransformationCallback< ParentType, TargetType >::m_prop
private

The property controlling the callback.

Definition at line 69 of file WGEPropertyTransformationCallback.h.


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