|
GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
A filter chain which processes character images from terminal displays. More...
#include "Filter.h"


Public Member Functions | |
| TerminalImageFilterChain () | |
| virtual | ~TerminalImageFilterChain () |
| void | addFilter (Filter *filter) |
| Adds a new filter to the chain. More... | |
| void | clear () |
| Removes all filters from the chain. More... | |
| bool | containsFilter (Filter *filter) |
Returns true if the chain contains filter. More... | |
| Filter::HotSpot * | hotSpotAt (int line, int column) const |
Returns the first hotspot which occurs at line, column or 0 if no hotspot was found. More... | |
| QList< Filter::HotSpot * > | hotSpots () const |
| Returns a list of all the hotspots in all the chain's filters. More... | |
| QList< Filter::HotSpot > | hotSpotsAtLine (int line) const |
| Returns a list of all hotspots at the given line in all the chain's filters. More... | |
| void | process () |
| Processes each filter in the chain. More... | |
| void | removeFilter (Filter *filter) |
| Removes a filter from the chain. More... | |
| void | reset () |
| Resets each filter in the chain. More... | |
| void | setBuffer (const QString *buffer, const QList< int > *linePositions) |
| Sets the buffer for each filter in the chain to process. More... | |
| void | setImage (const Character *const image, int lines, int columns, const QVector< LineProperty > &lineProperties) |
Set the current terminal image to image. More... | |
Private Attributes | |
| QString * | _buffer |
| QList< int > * | _linePositions |
A filter chain which processes character images from terminal displays.
| TerminalImageFilterChain::TerminalImageFilterChain | ( | ) |
Definition at line 114 of file Filter.cpp.
|
virtual |
Definition at line 120 of file Filter.cpp.
References _buffer, and _linePositions.
|
inherited |
Adds a new filter to the chain.
The chain will delete this filter when it is destroyed
Definition at line 52 of file Filter.cpp.
|
inherited |
Returns true if the chain contains filter.
Definition at line 60 of file Filter.cpp.
|
inherited |
Returns the first hotspot which occurs at line, column or 0 if no hotspot was found.
Definition at line 86 of file Filter.cpp.
References filter(), and Filter::hotSpotAt().
Referenced by TerminalView::filterActions(), and TerminalView::mouseMoveEvent().
|
inherited |
Returns a list of all the hotspots in all the chain's filters.
Definition at line 102 of file Filter.cpp.
References filter(), and Filter::hotSpots().
Referenced by TerminalView::hotSpotRegion(), and TerminalView::paintFilters().
|
inherited |
Returns a list of all hotspots at the given line in all the chain's filters.
|
inherited |
Processes each filter in the chain.
Definition at line 76 of file Filter.cpp.
Referenced by TerminalView::processFilters().
|
inherited |
Removes a filter from the chain.
The chain will no longer delete the filter when destroyed
Definition at line 56 of file Filter.cpp.
|
inherited |
Resets each filter in the chain.
Definition at line 64 of file Filter.cpp.
Referenced by setImage().
|
inherited |
Sets the buffer for each filter in the chain to process.
Definition at line 70 of file Filter.cpp.
Referenced by setImage().
| void TerminalImageFilterChain::setImage | ( | const Character *const | image, |
| int | lines, | ||
| int | columns, | ||
| const QVector< LineProperty > & | lineProperties | ||
| ) |
Set the current terminal image to image.
| image | The terminal image |
| lines | The number of lines in the terminal image |
| columns | The number of columns in the terminal image |
Definition at line 126 of file Filter.cpp.
References _buffer, _linePositions, PlainTextDecoder::begin(), PlainTextDecoder::decodeLine(), PlainTextDecoder::end(), LINE_DEFAULT, LINE_WRAPPED, FilterChain::reset(), FilterChain::setBuffer(), and PlainTextDecoder::setTrailingWhitespace().
Referenced by TerminalView::processFilters().
|
private |
Definition at line 375 of file Filter.h.
Referenced by setImage(), and ~TerminalImageFilterChain().
Definition at line 376 of file Filter.h.
Referenced by setImage(), and ~TerminalImageFilterChain().
1.8.8