##

ViewState Class Reference

A class for managing view visualization states. Used by ModelRightMenu. More...

`#include <ModelRightMenu.hh>`

Inherits QObject.

## Public Slots

void | Callback ()
| QT callback for the QAction. More...

## Public Member Functions

| ViewState (ModelRightMenu *_parent, const std::string &_checkRequest, const std::string &_uncheckRequest)
| Constructor. More...

## Public Attributes

QAction * | action
| Action for this view. More...
std::string | checkRequest
| Name of the request to send when checked. More...
bool | globalEnable
| True if the view visualization is enabled globally. More...
std::map< std::string, bool > | modelStates
| State of all the models for this view. More...
ModelRightMenu * | parent
| Pointer to the ModelRightMenu. More...
std::string | uncheckRequest
| Name of the request to send when unchecked. More...

## Detailed Description

A class for managing view visualization states. Used by ModelRightMenu.

## Constructor & Destructor Documentation

## ViewState()

ViewState | ( | ModelRightMenu * | _parent,
|  | const std::string & | _checkRequest,
|  | const std::string & | _uncheckRequest
| ) |  |

Constructor.

Parameters

  [in] | _parent | Pointer to the MOdelRightMenu
  [in] | _checkRequest | Name of the request to send when checked.
  [in] | _uncheckRequest | Name of the request to send when unchecked.

## Member Function Documentation

## Callback

void Callback | ( |  | ) |

slot

QT callback for the QAction.

## Member Data Documentation

## action

QAction* action

Action for this view.

## checkRequest

std::string checkRequest

Name of the request to send when checked.

## globalEnable

bool globalEnable

True if the view visualization is enabled globally.

## modelStates

std::map<std::string, bool> modelStates

State of all the models for this view.

## parent

ModelRightMenu* parent

Pointer to the ModelRightMenu.

## uncheckRequest

std::string uncheckRequest

Name of the request to send when unchecked.

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

- ModelRightMenu.hh