25 #ifndef MARKERORTHOVIEWRENDERER_HH 26 #define MARKERORTHOVIEWRENDERER_HH 34 #include <blitz/array.h> 136 virtual void render(QPainter *painter)
const = 0;
167 void setOrthogonalDimension(
int orthogonalDimension);
187 virtual void render(QPainter* painter = NULL)
const;
210 QXmlStreamWriter &svgStream,
211 blitz::TinyVector<double,3>
const &shapePx,
212 blitz::TinyVector<double,3>
const &lowerBoundUm,
213 blitz::TinyVector<double,3>
const &upperBoundUm,
214 std::string
const &font,
double fontSizePt,
228 for (
int i = 0; i < 3; ++i) _cache(i)->setFontSize(fontSize);
251 virtual void updateCache()
const;
271 virtual void updateCache(
int direction)
const;
285 bool _setPenColor(QPainter *painter,
bool hilighted =
false)
const;
298 std::string _getColorString(
bool &draw)
const;
302 mutable blitz::TinyVector<MarkerOrthoViewRendererCache*,3>
_cache;
void setFontSize(int fontSize)
Set the font size for text drawn by this cache.
bool showHelperLines() const
Get the showHelperLines flag of this cache.
bool active() const
Get the active flag of this cache.
The MarkerOrthoViewRendererCache class specifies the interface to store and replay marker geometry in...
virtual ~MarkerOrthoViewRendererCache()
The Marker class specifies the properties of an abstract Marker that can be contained in an Annotatio...
void setShowHelperLines(bool showHelperLines)
Set the showHelperLines flag of this cache.
void setActive(bool active)
Set the active flag of this cache.
void setFontSize(int fontSize)
Set the font size for text rendering of this Marker.
int fontSize() const
Get the font size for text drawn by this cache.
MarkerOrthoViewRendererCache()
virtual void render(QPainter *painter) const =0
Render the content of the cache into the given painter.
virtual MarkerOrthoViewRendererCache * clone() const =0
Get a new copy of this cache.
blitz::TinyVector< MarkerOrthoViewRendererCache *, 3 > _cache