forked from SEATStandards/ncvis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
895 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/////////////////////////////////////////////////////////////////////////////// | ||
/// | ||
/// \file NcVisPlotOptions.h | ||
/// \author Paul Ullrich | ||
/// \version August 25, 2022 | ||
/// | ||
|
||
#ifndef _NCVISPLOTOPTIONS_H_ | ||
#define _NCVISPLOTOPTIONS_H_ | ||
|
||
/////////////////////////////////////////////////////////////////////////////// | ||
|
||
class NcVisPlotOptions { | ||
|
||
public: | ||
/// <summary> | ||
/// Constructor. | ||
/// </summary> | ||
NcVisPlotOptions() : | ||
m_fShowTitle(true), | ||
m_fShowTickmarkLabels(false), | ||
m_fShowGrid(false) | ||
{ } | ||
|
||
public: | ||
/// <summary> | ||
/// Equality operator. | ||
/// </summary> | ||
bool operator==(const NcVisPlotOptions & plotopts) const { | ||
return ( | ||
(m_fShowTitle == plotopts.m_fShowTitle) && | ||
(m_fShowTickmarkLabels == plotopts.m_fShowTickmarkLabels) && | ||
(m_fShowGrid == plotopts.m_fShowGrid)); | ||
} | ||
|
||
/// <summary> | ||
/// Inequality operator. | ||
/// </summary> | ||
bool operator!=(const NcVisPlotOptions & plotopts) const { | ||
return !((*this) == plotopts); | ||
} | ||
|
||
public: | ||
/// <summary> | ||
/// Show the title in the image. | ||
/// </summary> | ||
bool m_fShowTitle; | ||
|
||
/// <summary> | ||
/// Show tickmark labels in the image. | ||
/// </summary> | ||
bool m_fShowTickmarkLabels; | ||
|
||
/// <summary> | ||
/// Show grid in the image. | ||
/// </summary> | ||
bool m_fShowGrid; | ||
|
||
}; | ||
|
||
/////////////////////////////////////////////////////////////////////////////// | ||
|
||
#endif // _NCVISPLOTOPTIONS_H_ | ||
|
Oops, something went wrong.