ViewState Class Reference

#include <ViewState.h>

List of all members.

Public Types

enum  ColorSemantic_t { color_is_charge, color_is_time, color_is_charge, color_is_time }
enum  SpatialMetric_t { metric_is_discreet, metric_is_continuous, metric_is_discreet, metric_is_continuous }
enum  ColorSemantic_t { color_is_charge, color_is_time, color_is_charge, color_is_time }
enum  SpatialMetric_t { metric_is_discreet, metric_is_continuous, metric_is_discreet, metric_is_continuous }

Public Member Functions

 ViewState ()
virtual ~ViewState ()
ColorSemantic_t GetColorSemantic () const
void SetColorSemantic (ColorSemantic_t cs)
void ToggleColorSemantic ()
bool ShowMultiplex () const
void SetShowMultiplex (bool show=true)
void ToggleMultiplex ()
bool ShowXYZ () const
void SetShowXYZ (bool show=true)
void ToggleXYZ ()
SpatialMetric_t GetSpatialMetric () const
void SetSpatialMetric (SpatialMetric_t sm)
void ToggleSpatialMetric ()
 ViewState ()
virtual ~ViewState ()
ColorSemantic_t GetColorSemantic () const
void SetColorSemantic (ColorSemantic_t cs)
void ToggleColorSemantic ()
bool ShowMultiplex () const
void SetShowMultiplex (bool show=true)
void ToggleMultiplex ()
SpatialMetric_t GetSpatialMetric () const
void SetSpatialMetric (SpatialMetric_t sm)
void ToggleSpatialMetric ()

Public Attributes

SigC::Signal0< void > color_semantic
SigC::Signal0< void > show_multiplex
SigC::Signal0< void > spatial_metric
SigC::Signal0< void > show_xyz

Private Attributes

ColorSemantic_t fColorSemantic
bool fShowMultiplex
bool fShowXYZ
SpatialMetric_t fSpatialMetric

Detailed Description

Id
ViewState.h,v 1.1 2003/05/21 20:59:54 musser Exp
Id
ViewState.h,v 1.3 2005/07/21 20:26:36 bv Exp

Definition at line 29 of file EventDisplay/HEAD/ViewState.h.


Member Enumeration Documentation

Enumerator:
color_is_charge 
color_is_time 
color_is_charge 
color_is_time 

Definition at line 39 of file Midad/HEAD/MultiPage/ViewState.h.

00039                  {
00040         color_is_charge,
00041         color_is_time
00042     } ColorSemantic_t;

Enumerator:
color_is_charge 
color_is_time 
color_is_charge 
color_is_time 

Definition at line 39 of file EventDisplay/HEAD/ViewState.h.

00039                  {
00040         color_is_charge,
00041         color_is_time
00042     } ColorSemantic_t;

Enumerator:
metric_is_discreet 
metric_is_continuous 
metric_is_discreet 
metric_is_continuous 

Definition at line 51 of file Midad/HEAD/MultiPage/ViewState.h.

00051                  {
00052         metric_is_discreet,     // strip/plane
00053         metric_is_continuous    // real coords
00054     } SpatialMetric_t;

Enumerator:
metric_is_discreet 
metric_is_continuous 
metric_is_discreet 
metric_is_continuous 

Definition at line 55 of file EventDisplay/HEAD/ViewState.h.

00055                  {
00056         metric_is_discreet,     // strip/plane
00057         metric_is_continuous    // real coords
00058     } SpatialMetric_t;


Constructor & Destructor Documentation

ViewState::ViewState (  ) 

Definition at line 3 of file EventDisplay/HEAD/ViewState.cxx.

00004     : fColorSemantic(color_is_charge)
00005     , fShowMultiplex(true)
00006     , fShowXYZ(false)
00007     , fSpatialMetric(metric_is_continuous)
00008 {
00009 }

ViewState::~ViewState (  )  [virtual]

Definition at line 10 of file EventDisplay/HEAD/ViewState.cxx.

00010 {}

ViewState::ViewState (  ) 
virtual ViewState::~ViewState (  )  [virtual]

Member Function Documentation

ColorSemantic_t ViewState::GetColorSemantic (  )  const
ViewState::ColorSemantic_t ViewState::GetColorSemantic (  )  const

Definition at line 12 of file EventDisplay/HEAD/ViewState.cxx.

References fColorSemantic.

00013 {
00014     return fColorSemantic;
00015 }

SpatialMetric_t ViewState::GetSpatialMetric (  )  const
ViewState::SpatialMetric_t ViewState::GetSpatialMetric (  )  const
void ViewState::SetColorSemantic ( ColorSemantic_t  cs  ) 
void ViewState::SetColorSemantic ( ColorSemantic_t  cs  ) 

Definition at line 16 of file EventDisplay/HEAD/ViewState.cxx.

References color_semantic, and fColorSemantic.

00017 {
00018     if (fColorSemantic == cs) return;
00019     fColorSemantic = cs;
00020     color_semantic.emit();
00021 }

void ViewState::SetShowMultiplex ( bool  show = true  ) 
void ViewState::SetShowMultiplex ( bool  show = true  ) 

Definition at line 35 of file EventDisplay/HEAD/ViewState.cxx.

References fShowMultiplex, and show_multiplex.

00036 {
00037     if (fShowMultiplex == show) return;
00038 
00039     fShowMultiplex = show;
00040     show_multiplex.emit();
00041 }

void ViewState::SetShowXYZ ( bool  show = true  ) 

Definition at line 53 of file EventDisplay/HEAD/ViewState.cxx.

References fShowXYZ, and show_xyz.

00054 {
00055     if (fShowXYZ == show) return;
00056 
00057     fShowXYZ = show;
00058     show_xyz.emit();
00059 }

void ViewState::SetSpatialMetric ( SpatialMetric_t  sm  ) 
void ViewState::SetSpatialMetric ( SpatialMetric_t  sm  ) 

Definition at line 71 of file EventDisplay/HEAD/ViewState.cxx.

References fSpatialMetric, and spatial_metric.

00072 {
00073     if (fSpatialMetric == sm) return;
00074     fSpatialMetric = sm;
00075     spatial_metric.emit();
00076 }

bool ViewState::ShowMultiplex (  )  const
bool ViewState::ShowMultiplex (  )  const

Definition at line 30 of file EventDisplay/HEAD/ViewState.cxx.

References fShowMultiplex.

Referenced by MultiPage::BuildMenus(), EVD::BuildMenus(), GfxDigitList::Configure(), and toggle_mux().

00031 {
00032     return fShowMultiplex;
00033 }

bool ViewState::ShowXYZ (  )  const

Definition at line 48 of file EventDisplay/HEAD/ViewState.cxx.

References fShowXYZ.

00049 {
00050     return fShowXYZ;
00051 }

void ViewState::ToggleColorSemantic (  ) 
void ViewState::ToggleColorSemantic (  ) 

Definition at line 22 of file EventDisplay/HEAD/ViewState.cxx.

References color_is_charge, color_is_time, color_semantic, and fColorSemantic.

Referenced by EVD::Init(), and MultiPage::Init().

00023 {
00024     if (fColorSemantic == color_is_time) fColorSemantic = color_is_charge;
00025     else                                 fColorSemantic = color_is_time;
00026     color_semantic.emit();
00027 }

void ViewState::ToggleMultiplex (  ) 
void ViewState::ToggleMultiplex (  ) 

Definition at line 43 of file EventDisplay/HEAD/ViewState.cxx.

References fShowMultiplex, and show_multiplex.

Referenced by MultiPage::BuildMenus(), and EVD::BuildMenus().

00044 {
00045     fShowMultiplex = !fShowMultiplex;
00046     show_multiplex.emit();
00047 }

void ViewState::ToggleSpatialMetric (  ) 
void ViewState::ToggleSpatialMetric (  ) 
void ViewState::ToggleXYZ (  ) 

Definition at line 61 of file EventDisplay/HEAD/ViewState.cxx.

References fShowXYZ, and show_xyz.

00062 {
00063     fShowXYZ = !fShowXYZ;
00064     show_xyz.emit();
00065 }


Member Data Documentation

SigC::Signal0< void > ViewState::color_semantic
bool ViewState::fShowMultiplex [private]

Definition at line 66 of file EventDisplay/HEAD/ViewState.h.

Referenced by SetShowMultiplex(), ShowMultiplex(), and ToggleMultiplex().

bool ViewState::fShowXYZ [private]

Definition at line 67 of file EventDisplay/HEAD/ViewState.h.

Referenced by SetShowXYZ(), ShowXYZ(), and ToggleXYZ().

SigC::Signal0< void > ViewState::show_multiplex
SigC::Signal0<void> ViewState::show_xyz

Definition at line 37 of file EventDisplay/HEAD/ViewState.h.

Referenced by SetShowXYZ(), and ToggleXYZ().

SigC::Signal0< void > ViewState::spatial_metric

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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1