Katana Plug-in APIs 0.1
Public Member Functions | Static Public Member Functions

LoggingComponent Class Reference

A ViewerDelegateComponent that logs its member function calls. More...

#include <LoggingComponent.h>

Inheritance diagram for LoggingComponent:
Foundry::Katana::ViewerAPI::ViewerDelegateComponent Foundry::Katana::ViewerAPI::ViewerDelegateComponentPluginBase

List of all members.

Public Member Functions

void setup ()
 Initializes the ViewportDelegateComponent's resources.
void cleanup ()
 Cleans up the ViewportDelegateComponent's resources.
bool locationEvent (const Foundry::Katana::ViewerAPI::ViewerLocationEvent &event, bool locationHandled) override
 Notification of scene graph location state changes.
void locationsSelected (const std::vector< std::string > &locations) override
 Called when the location selection changes in Katana.

Static Public Member Functions

static void flush ()
 Flush plugin Caches.

Detailed Description

A ViewerDelegateComponent that logs its member function calls.

This is a generic utility ViewerDelegateComponent that prints whenever any of its "location*" callback functions are called. This can be used when debugging the Viewer, for example.


Member Function Documentation

static void LoggingComponent::flush ( ) [static]

Flush plugin Caches.

Allows to discard any cache for this plugin when a Flush Caches event occurs.

Reimplemented from Foundry::Katana::ViewerAPI::ViewerDelegateComponent.

bool LoggingComponent::locationEvent ( const Foundry::Katana::ViewerAPI::ViewerLocationEvent event,
bool  locationHandled 
) [override, virtual]

Notification of scene graph location state changes.

Parameters:
eventStruct containing location event information (see "FnViewerLocationEvent.h" for details).
locationHandledTrue if an already processed (later added) ViewerDelegateComponent has stated that it is handling this location by returning true. In this case, the ViewerDelegateComponent should not draw its own representation.
Returns:
true if the other ViewerDelegateComponents added to the ViewerDelegate before this one should receive locationHandled=true, false otherwise.

Implements Foundry::Katana::ViewerAPI::ViewerDelegateComponent.

void LoggingComponent::locationsSelected ( const std::vector< std::string > &  locationPaths) [override, virtual]

Called when the location selection changes in Katana.

Parameters:
locationPathsThe selected location paths.

Implements Foundry::Katana::ViewerAPI::ViewerDelegateComponent.


The documentation for this class was generated from the following file:
 All Classes Functions Variables Typedefs Enumerations Enumerator