#include <gcu/spectrumdoc.h>
Public Member Functions | |
SpectrumDocument () | |
SpectrumDocument (Application *app, SpectrumView *view=NULL) | |
~SpectrumDocument () | |
void | Load (char const *uri, char const *mime_type=NULL) |
void | OnXUnitChanged (int i) |
void | OnYUnitChanged (int i) |
void | OnXAxisInvert (bool inverted) |
void | OnShowIntegral () |
void | OnTransformFID (GtkButton *btn) |
SpectrumView * | GetView (void) |
bool | GetEmpty (void) const |
SpectrumType | GetSpectrumType (void) const |
SpectrumUnitType | GetXUnit (void) const |
SpectrumUnitType | GetYUnit (void) const |
bool | GetIntegralVisible (void) const |
Protected Attributes | |
SpectrumView * | m_View |
Definition at line 268 of file spectrumdoc.h.
gcu::SpectrumDocument::SpectrumDocument | ( | ) |
Default constructor
gcu::SpectrumDocument::SpectrumDocument | ( | Application * | app, | |
SpectrumView * | view = NULL | |||
) |
app | the application. | |
view | an optional already existing SpectrumView instance. |
gcu::SpectrumDocument::~SpectrumDocument | ( | ) |
Default destructor
gcu::SpectrumDocument::GetEmpty | ( | void | ) | const [inline] |
Definition at line 365 of file spectrumdoc.h.
gcu::SpectrumDocument::GetIntegralVisible | ( | void | ) | const [inline] |
Definition at line 384 of file spectrumdoc.h.
gcu::SpectrumDocument::GetSpectrumType | ( | void | ) | const [inline] |
Definition at line 369 of file spectrumdoc.h.
gcu::SpectrumDocument::GetView | ( | void | ) | [inline] |
Definition at line 361 of file spectrumdoc.h.
gcu::SpectrumDocument::GetXUnit | ( | void | ) | const [inline] |
Definition at line 374 of file spectrumdoc.h.
gcu::SpectrumDocument::GetYUnit | ( | void | ) | const [inline] |
Definition at line 379 of file spectrumdoc.h.
void gcu::SpectrumDocument::Load | ( | char const * | uri, | |
char const * | mime_type = NULL | |||
) |
uri | the uri of the spectrum file. | |
mime_type | the mime type of the spectrum file. |
void gcu::SpectrumDocument::OnShowIntegral | ( | ) |
Used to show or hide the integral curve for an NMR spectrum.
void gcu::SpectrumDocument::OnTransformFID | ( | GtkButton * | btn | ) |
btn | the clicked GtkButton. |
void gcu::SpectrumDocument::OnXAxisInvert | ( | bool | inverted | ) |
inverted | whether to invert the X axis scale. |
void gcu::SpectrumDocument::OnXUnitChanged | ( | int | i | ) |
i | the rank of the unit to set. |
void gcu::SpectrumDocument::OnYUnitChanged | ( | int | i | ) |
i | the rank of the unit to set. |
gcu::SpectrumDocument::m_View [protected] |
The SpectrumView instance associated with the document.
Definition at line 361 of file spectrumdoc.h.