SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
An object to hold view configuration settings. More...
#include <qtDiagramViewConfiguration.h>
Public Member Functions | |
qtDiagramViewConfiguration (const smtk::view::Configuration &viewConfig) | |
QColor | backgroundFillColor () const |
QColor | backgroundGridColor () const |
QColor | activeTaskColor () const |
QColor | colorForState (smtk::task::State state) const |
QColor | colorFromPalette (int entry) const |
QColor | colorForArcType (smtk::string::Token arcType) const |
QColor | colorForArcStatus (qtPreviewArc::ArcStatus status) const |
qreal | nodeWidth () const |
qreal | nodeRadius () const |
qreal | nodeHeadlineHeight () const |
qreal | nodeHeadlinePadding () const |
qreal | nodeBorderThickness () const |
int | nodeFontSize () const |
int | nodeLayer () const |
qreal | arcWidth () const |
qreal | arcOutline () const |
int | arcLayer () const |
qreal | arrowStemLength () const |
qreal | arrowHeadLength () const |
qreal | arrowTipAspectRatio () const |
int | constructionLayer () const |
Protected Attributes | |
QColor | m_backgroundFillColor |
QColor | m_backgroundGridColor |
QColor | m_activeTaskColor |
std::array< QColor, static_cast< int >smtk::task::State::Completed)+1 > | m_colorForState |
std::array< QColor, static_cast< int >qtPreviewArc::ArcStatus::Valid)+1 > | m_colorForArcStatus |
std::unordered_map< smtk::string::Token, QColor > | m_colorForArcType |
qreal | m_nodeWidth { 300. } |
qreal | m_nodeRadius { 4. } |
qreal | m_nodeHeadlineHeight { 13 } |
qreal | m_nodeHeadlinePadding { 4. } |
qreal | m_nodeBorderThickness { 4. } |
int | m_nodeFontSize { 13 } |
int | m_nodeLayer { 10 } |
qreal | m_arcWidth { 4. } |
qreal | m_arcOutline { 1. } |
int | m_arcLayer { 5 } |
qreal | m_arrowStemLength { 16. } |
qreal | m_arrowHeadLength { 12. } |
qreal | m_arrowTipAspectRatio { 2. } |
int | m_constructionLayer { 15 } |
An object to hold view configuration settings.
This class extracts settings used to render the task view from a view::Configuration
instance and makes them quickly accessible to the Qt classes that render tasks.