iRoCS Toolbox  1.1.0
Public Member Functions | Protected Attributes
SurfaceMarkerOrthoViewRendererCache Class Reference

The SurfaceMarkerOrthoViewRendererCache class stores and replays marker geometry information using a QPainter. More...

#include "SphereMarkerOrthoViewRenderer.hh"

Inheritance diagram for SurfaceMarkerOrthoViewRendererCache:
Collaboration diagram for SurfaceMarkerOrthoViewRendererCache:

Public Member Functions

 SurfaceMarkerOrthoViewRendererCache ()
 
 SurfaceMarkerOrthoViewRendererCache (SurfaceMarkerOrthoViewRendererCache const &cache)
 
virtual ~SurfaceMarkerOrthoViewRendererCache ()
 
bool active () const
 Get the active flag of this cache. More...
 
virtual MarkerOrthoViewRendererCacheclone () const
 Get a new copy of this cache. More...
 
int fontSize () const
 Get the font size for text drawn by this cache. More...
 
std::vector< blitz::TinyVector< QPointF, 2 > > const & lines () const
 Get read-only access to the lines vector. More...
 
std::vector< blitz::TinyVector< QPointF, 2 > > & lines ()
 Get random access to the lines vector. More...
 
virtual void render (QPainter *painter) const
 Render the content of the cache into the given painter. More...
 
void setActive (bool active)
 Set the active flag of this cache. More...
 
void setCross (blitz::TinyVector< QLineF, 2 > const &cross)
 Set the cross lines to the given lines. More...
 
void setFontSize (int fontSize)
 Set the font size for text drawn by this cache. More...
 
void setPoint (QPointF const &point)
 Set the point to the given QPoint. 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
 
blitz::TinyVector< QLineF, 2 > _cross
 
int _fontSize
 
std::vector< blitz::TinyVector< QPointF, 2 > > _lines
 
QPointF _point
 
bool _showCross
 
bool _showHelperLines
 

Detailed Description

The SurfaceMarkerOrthoViewRendererCache class stores and replays marker geometry information using a QPainter.

Definition at line 46 of file SurfaceMarkerOrthoViewRenderer.hh.

Constructor & Destructor Documentation

◆ SurfaceMarkerOrthoViewRendererCache() [1/2]

SurfaceMarkerOrthoViewRendererCache::SurfaceMarkerOrthoViewRendererCache ( )

◆ SurfaceMarkerOrthoViewRendererCache() [2/2]

SurfaceMarkerOrthoViewRendererCache::SurfaceMarkerOrthoViewRendererCache ( SurfaceMarkerOrthoViewRendererCache const &  cache)

◆ ~SurfaceMarkerOrthoViewRendererCache()

virtual SurfaceMarkerOrthoViewRendererCache::~SurfaceMarkerOrthoViewRendererCache ( )
virtual

Member Function Documentation

◆ clone()

virtual MarkerOrthoViewRendererCache* SurfaceMarkerOrthoViewRendererCache::clone ( ) const
virtual

Get a new copy of this cache.

Returns
The address to the clone of this cache.

Reimplemented from PointMarkerOrthoViewRendererCache.

Reimplemented in CellMarkerOrthoViewRendererCache.

◆ render()

virtual void SurfaceMarkerOrthoViewRendererCache::render ( QPainter *  painter) const
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

Reimplemented from PointMarkerOrthoViewRendererCache.

Reimplemented in CellMarkerOrthoViewRendererCache.

◆ lines() [1/2]

std::vector< blitz::TinyVector<QPointF,2> > const& SurfaceMarkerOrthoViewRendererCache::lines ( ) const

Get read-only access to the lines vector.

Returns
A read-only reference to the lines vector

◆ lines() [2/2]

std::vector< blitz::TinyVector<QPointF,2> >& SurfaceMarkerOrthoViewRendererCache::lines ( )

Get random access to the lines vector.

Returns
A random access reference to the lines vector

◆ setCross()

void PointMarkerOrthoViewRendererCache::setCross ( blitz::TinyVector< QLineF, 2 > const &  cross)
inherited

Set the cross lines to the given lines.

This implicitely changes the rendering mode to cross rendering.

Parameters
crossThe QLines defining the cross to draw.

◆ setPoint()

void PointMarkerOrthoViewRendererCache::setPoint ( QPointF const &  point)
inherited

Set the point to the given QPoint.

This implicitely changes the rendering mode to point rendering.

Parameters
pointThe QPoint to draw.

◆ setActive()

void MarkerOrthoViewRendererCache::setActive ( bool  active)
inherited

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
inherited

Get the active flag of this cache.

Returns
The current active flag

◆ setShowHelperLines()

void MarkerOrthoViewRendererCache::setShowHelperLines ( bool  showHelperLines)
inherited

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
inherited

Get the showHelperLines flag of this cache.

Returns
The current showHelperLines flag

◆ setFontSize()

void MarkerOrthoViewRendererCache::setFontSize ( int  fontSize)
inherited

Set the font size for text drawn by this cache.

Parameters
fontSizeThe font size to use for drawing text

◆ fontSize()

int MarkerOrthoViewRendererCache::fontSize ( ) const
inherited

Get the font size for text drawn by this cache.

Returns
The font size to use for drawing text

Field Documentation

◆ _lines

std::vector< blitz::TinyVector<QPointF,2> > SurfaceMarkerOrthoViewRendererCache::_lines
protected

Definition at line 100 of file SurfaceMarkerOrthoViewRenderer.hh.

◆ _showCross

bool PointMarkerOrthoViewRendererCache::_showCross
protectedinherited

Definition at line 102 of file PointMarkerOrthoViewRenderer.hh.

◆ _cross

blitz::TinyVector<QLineF,2> PointMarkerOrthoViewRendererCache::_cross
protectedinherited

Definition at line 103 of file PointMarkerOrthoViewRenderer.hh.

◆ _point

QPointF PointMarkerOrthoViewRendererCache::_point
protectedinherited

Definition at line 104 of file PointMarkerOrthoViewRenderer.hh.

◆ _active

bool MarkerOrthoViewRendererCache::_active
protectedinherited

Definition at line 140 of file MarkerOrthoViewRenderer.hh.

◆ _showHelperLines

bool MarkerOrthoViewRendererCache::_showHelperLines
protectedinherited

Definition at line 140 of file MarkerOrthoViewRenderer.hh.

◆ _fontSize

int MarkerOrthoViewRendererCache::_fontSize
protectedinherited

Definition at line 141 of file MarkerOrthoViewRenderer.hh.


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