Loading include/painter.h +30 −0 Original line number Original line Diff line number Diff line Loading @@ -80,6 +80,16 @@ public: m_activeLayers.erase( aLayerId ); m_activeLayers.erase( aLayerId ); } } /** * Function GetActiveLayers() * Returns the set of currently active layers. * @return The set of currently active layers. */ const std::set<unsigned int> GetActiveLayers() { return m_activeLayers; } /** /** * Function ClearActiveLayers * Function ClearActiveLayers * Clears the list of active layers. * Clears the list of active layers. Loading @@ -89,6 +99,16 @@ public: m_activeLayers.clear(); m_activeLayers.clear(); } } /** * Function IsActiveLayer * Returns information whether the queried layer is marked as active. * @return True if the queried layer is marked as active. */ inline bool IsActiveLayer( int aLayerId ) const { return ( m_activeLayers.count( aLayerId ) > 0 ); } /** /** * Function SetHighlight * Function SetHighlight * Turns on/off highlighting - it may be done for the active layer or the specified net. * Turns on/off highlighting - it may be done for the active layer or the specified net. Loading @@ -114,6 +134,16 @@ public: m_hiContrastEnabled = aEnabled; m_hiContrastEnabled = aEnabled; } } /** * Function GetHighContrast * Returns information about high contrast display mode. * @return True if the high contrast mode is on, false otherwise. */ inline bool GetHighContrast() const { return m_hiContrastEnabled; } /** /** * Function GetColor * Function GetColor * Returns the color that should be used to draw the specific VIEW_ITEM on the specific layer * Returns the color that should be used to draw the specific VIEW_ITEM on the specific layer Loading Loading
include/painter.h +30 −0 Original line number Original line Diff line number Diff line Loading @@ -80,6 +80,16 @@ public: m_activeLayers.erase( aLayerId ); m_activeLayers.erase( aLayerId ); } } /** * Function GetActiveLayers() * Returns the set of currently active layers. * @return The set of currently active layers. */ const std::set<unsigned int> GetActiveLayers() { return m_activeLayers; } /** /** * Function ClearActiveLayers * Function ClearActiveLayers * Clears the list of active layers. * Clears the list of active layers. Loading @@ -89,6 +99,16 @@ public: m_activeLayers.clear(); m_activeLayers.clear(); } } /** * Function IsActiveLayer * Returns information whether the queried layer is marked as active. * @return True if the queried layer is marked as active. */ inline bool IsActiveLayer( int aLayerId ) const { return ( m_activeLayers.count( aLayerId ) > 0 ); } /** /** * Function SetHighlight * Function SetHighlight * Turns on/off highlighting - it may be done for the active layer or the specified net. * Turns on/off highlighting - it may be done for the active layer or the specified net. Loading @@ -114,6 +134,16 @@ public: m_hiContrastEnabled = aEnabled; m_hiContrastEnabled = aEnabled; } } /** * Function GetHighContrast * Returns information about high contrast display mode. * @return True if the high contrast mode is on, false otherwise. */ inline bool GetHighContrast() const { return m_hiContrastEnabled; } /** /** * Function GetColor * Function GetColor * Returns the color that should be used to draw the specific VIEW_ITEM on the specific layer * Returns the color that should be used to draw the specific VIEW_ITEM on the specific layer Loading