OpenMS
BaseVisualizer< ObjectType > Class Template Reference

A base class for all visualizer classes. More...

#include <OpenMS/VISUAL/VISUALIZER/BaseVisualizer.h>

Inheritance diagram for BaseVisualizer< ObjectType >:
[legend]
Collaboration diagram for BaseVisualizer< ObjectType >:
[legend]

Public Member Functions

void load (ObjectType &o)
 Loads the object that is to be edited. More...
 
virtual ~BaseVisualizer ()
 

Protected Member Functions

virtual void update_ ()
 Updates the GUI from the temp_ variable. More...
 

Protected Attributes

ObjectType * ptr_
 Pointer to the object that is currently edited. More...
 
ObjectType temp_
 Copy of current object used to restore the original values. More...
 

Detailed Description

template<typename ObjectType>
class OpenMS::BaseVisualizer< ObjectType >

A base class for all visualizer classes.

This class provides members and functions that depend on the visualizer type.

The GUI components are provided by the BaseVisualizerGUI class. The two classes cannot be merged, as templates and the Qt meta object compiler cannot be combined.

Visualizers are mainly used by the MetaDataBrowser.

Constructor & Destructor Documentation

◆ ~BaseVisualizer()

virtual ~BaseVisualizer ( )
inlinevirtual

Member Function Documentation

◆ load()

void load ( ObjectType &  o)
inline

Loads the object that is to be edited.

◆ update_()

Member Data Documentation

◆ ptr_

ObjectType* ptr_
protected

Pointer to the object that is currently edited.

◆ temp_

ObjectType temp_
protected

Copy of current object used to restore the original values.