#include <MarkerRenderer.hh>
Definition at line 45 of file MarkerRenderer.hh.
◆ MarkerRenderer() [1/2]
◆ MarkerRenderer() [2/2]
◆ ~MarkerRenderer()
virtual MarkerRenderer::~MarkerRenderer |
( |
| ) |
|
|
virtual |
◆ marker()
Marker* MarkerRenderer::marker |
( |
| ) |
const |
◆ view()
◆ isDragging()
bool MarkerRenderer::isDragging |
( |
| ) |
const |
◆ setDragging()
void MarkerRenderer::setDragging |
( |
bool |
drag | ) |
|
◆ clone()
Implemented in MarkerOrthoViewRenderer, NucleusMarkerOrthoViewRenderer, PointMarkerOrthoViewRenderer, SHSurfaceMarkerOrthoViewRenderer, SurfaceMarkerOrthoViewRenderer, SphereMarkerOrthoViewRenderer, CellMarkerOrthoViewRenderer, PointMarkerOpenGlRenderingViewRenderer, SphereMarkerOpenGlRenderingViewRenderer, CellMarkerOpenGlRenderingViewRenderer, CylinderMarkerOpenGlRenderingViewRenderer, MarkerOpenGlRenderingViewRenderer, NucleusMarkerOpenGlRenderingViewRenderer, SHSurfaceMarkerOpenGlRenderingViewRenderer, SurfaceMarkerOpenGlRenderingViewRenderer, and CylinderMarkerOrthoViewRenderer.
◆ cacheUpdatesEnabled()
bool MarkerRenderer::cacheUpdatesEnabled |
( |
| ) |
const |
◆ render()
virtual void MarkerRenderer::render |
( |
QPainter * |
painter = NULL | ) |
const |
|
pure virtual |
◆ userInteractionEvent()
Reimplemented in NucleusMarkerOrthoViewRenderer, PointMarkerOrthoViewRenderer, SHSurfaceMarkerOrthoViewRenderer, SurfaceMarkerOrthoViewRenderer, SphereMarkerOrthoViewRenderer, CylinderMarkerOrthoViewRenderer, PointMarkerOpenGlRenderingViewRenderer, SphereMarkerOpenGlRenderingViewRenderer, CylinderMarkerOpenGlRenderingViewRenderer, NucleusMarkerOpenGlRenderingViewRenderer, SHSurfaceMarkerOpenGlRenderingViewRenderer, and SurfaceMarkerOpenGlRenderingViewRenderer.
◆ setCacheUpdatesEnabled
void MarkerRenderer::setCacheUpdatesEnabled |
( |
bool |
enable | ) |
|
|
slot |
Enables or disables the updates of the rendering cache.
This usually means that changes in the Marker or the View position don't lead to an update of the view. This is useful, if you have to programmatically perform many small operations on the marker of which not each should trigger a repaint.
- Parameters
-
enable | true to enable, false to disable cache updates |
◆ updateCache
virtual void MarkerRenderer::updateCache |
( |
| ) |
const |
|
virtualslot |
Update the rendering cache.
This function is called by the associated Marker if its content changes or by the ViewWidget if the ViewPosition changes such that an cache update might be necessary. Reimplement this function if you have expensive computations that should not be done at every repaint. The default implementation only calls the update() function of the view. You can disable the cache updates using the setCacheUpdatesEnabled() function. This is important if you programmatically perform many operations on the Marker, of which each would need a cache update. After the sequence of operations, you have to call updateCache() explicitely to apply the changes. After cache update update() of the view is called to visualize the changes. So if many markers are involved you should call setUpdatesEnabled(false) to the view before these changes.
◆ p_marker
Marker* MarkerRenderer::p_marker |
|
protected |
◆ p_view
◆ _dragging
bool MarkerRenderer::_dragging |
|
protected |
The documentation for this class was generated from the following file: