iRoCS Toolbox  1.1.0
Public Member Functions | Protected Attributes
MarkerOrthoViewRendererCache Class Referenceabstract

The MarkerOrthoViewRendererCache class specifies the interface to store and replay marker geometry information using a QPainter. More...

#include "MarkerOrthoViewRenderer.hh"

Inheritance diagram for MarkerOrthoViewRendererCache:
Collaboration diagram for MarkerOrthoViewRendererCache:

Public Member Functions

 MarkerOrthoViewRendererCache ()
 
 MarkerOrthoViewRendererCache (MarkerOrthoViewRendererCache const &cache)
 
virtual ~MarkerOrthoViewRendererCache ()
 
bool active () const
 Get the active flag of this cache. More...
 
virtual MarkerOrthoViewRendererCacheclone () const =0
 Get a new copy of this cache. More...
 
int fontSize () const
 Get the font size for text drawn by this cache. More...
 
virtual void render (QPainter *painter) const =0
 Render the content of the cache into the given painter. More...
 
void setActive (bool active)
 Set the active flag of this cache. More...
 
void setFontSize (int fontSize)
 Set the font size for text drawn by this cache. More...
 
void setShowHelperLines (bool showHelperLines)
 Set the showHelperLines flag of this cache. More...
 
bool showHelperLines () const
 Get the showHelperLines flag of this cache. More...
 

Protected Attributes

bool _active
 
int _fontSize
 
bool _showHelperLines
 

Detailed Description

The MarkerOrthoViewRendererCache class specifies the interface to store and replay marker geometry information using a QPainter.

This class has to be reimplemented by all specialized MarkerOrthoViewRenderers.

Definition at line 50 of file MarkerOrthoViewRenderer.hh.

Constructor & Destructor Documentation

◆ MarkerOrthoViewRendererCache() [1/2]

MarkerOrthoViewRendererCache::MarkerOrthoViewRendererCache ( )

◆ MarkerOrthoViewRendererCache() [2/2]

MarkerOrthoViewRendererCache::MarkerOrthoViewRendererCache ( MarkerOrthoViewRendererCache const &  cache)

◆ ~MarkerOrthoViewRendererCache()

virtual MarkerOrthoViewRendererCache::~MarkerOrthoViewRendererCache ( )
virtual

Member Function Documentation

◆ clone()

virtual MarkerOrthoViewRendererCache* MarkerOrthoViewRendererCache::clone ( ) const
pure virtual

◆ setActive()

void MarkerOrthoViewRendererCache::setActive ( bool  active)

Set the active flag of this cache.

If the cache is inactive a call to the render() method is a noop.

Parameters
activeThe new active flag value

◆ active()

bool MarkerOrthoViewRendererCache::active ( ) const

Get the active flag of this cache.

Returns
The current active flag

◆ setShowHelperLines()

void MarkerOrthoViewRendererCache::setShowHelperLines ( bool  showHelperLines)

Set the showHelperLines flag of this cache.

If this flag is set additional helper lines for specific marker types are drawn.

Parameters
showHelperLinesThe new showHelperLines flag value

◆ showHelperLines()

bool MarkerOrthoViewRendererCache::showHelperLines ( ) const

Get the showHelperLines flag of this cache.

Returns
The current showHelperLines flag

◆ setFontSize()

void MarkerOrthoViewRendererCache::setFontSize ( int  fontSize)

Set the font size for text drawn by this cache.

Parameters
fontSizeThe font size to use for drawing text

◆ fontSize()

int MarkerOrthoViewRendererCache::fontSize ( ) const

Get the font size for text drawn by this cache.

Returns
The font size to use for drawing text

◆ render()

virtual void MarkerOrthoViewRendererCache::render ( QPainter *  painter) const
pure virtual

Render the content of the cache into the given painter.

This function is called from the MarkerOrthoViewRenderer::render(QPainter*) method at every repaint. Pen color and width are already set when this function is called to reflect label and selection status, so change these pen properties only if you want to highlight or demote parts of the visualization.

Parameters
painterThe painter to pass painter commands to

Implemented in PointMarkerOrthoViewRendererCache, SHSurfaceMarkerOrthoViewRendererCache, SurfaceMarkerOrthoViewRendererCache, CellMarkerOrthoViewRendererCache, NucleusMarkerOrthoViewRendererCache, and SphereMarkerOrthoViewRendererCache.

Field Documentation

◆ _active

bool MarkerOrthoViewRendererCache::_active
protected

Definition at line 140 of file MarkerOrthoViewRenderer.hh.

◆ _showHelperLines

bool MarkerOrthoViewRendererCache::_showHelperLines
protected

Definition at line 140 of file MarkerOrthoViewRenderer.hh.

◆ _fontSize

int MarkerOrthoViewRendererCache::_fontSize
protected

Definition at line 141 of file MarkerOrthoViewRenderer.hh.


The documentation for this class was generated from the following file: