Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cx::OptimizedUpdateWidget Class Reference

Interface for all classes following the modified/prepaint paradigm. More...

#include <cxOptimizedUpdateWidget.h>

Inheritance diagram for cx::OptimizedUpdateWidget:
cx::BaseWidget cx::CheckBoxWidget cx::ColorSelectWidget cx::FilenameWidget cx::LabeledLineEditWidget cx::ScalarInteractionWidget cx::SliderRangeGroupWidget cx::ActiveMeshPropertiesWidget cx::ActiveToolPropertiesWidget cx::ActiveToolWidget cx::ActiveVolumeWidget cx::BronchoscopyNavigationWidget cx::BrowserWidget cx::ClipperWidget cx::ClippingWidget cx::ColorWidget cx::CompactFilterSetupWidget cx::ConsoleWidget cx::CroppingWidget cx::DataSelectWidget cx::DicomWidget cx::EBUSCalibrationWidget cx::EraserWidget cx::ExportWidget cx::FileWatcherWidget cx::FilterSetupWidget cx::FiltersWidget cx::FrameTreeWidget cx::HelpWidget cx::ICPWidget cx::ImageRenderPropertiesWidget cx::ImportDataTypeWidget cx::ImportWidget cx::InfoWidget cx::LabeledComboBoxWidget cx::LapFrameToolCalibrationWidget cx::ManageClippersWidget cx::ManualImageRegistrationWidget cx::ManualPatientRegistrationWidget cx::MeshGlyphsWidget cx::MeshPropertiesWidget cx::MeshTextureWidget cx::MetricWidget cx::NavigationWidget cx::OverlayWidget cx::PipelineWidget cx::PipelineWidgetFilterLine cx::PlaybackWidget cx::PluginFrameworkWidget cx::PlusConnectWidget cx::PresetWidget cx::ProbeConfigWidget cx::Q_OBJECTExportDataTypeWidget cx::ReconstructionWidget cx::RecordSessionWidget cx::RegistrationBaseWidget cx::RegistrationHistoryWidget cx::RegistrationTypeWidget cx::SamplerWidget cx::SelectClippersForDataWidget cx::SelectClippersForImageWidget cx::SelectClippersForMeshWidget cx::ShadingWidget cx::ShapeSensorWidget cx::SingleMetricWidget cx::SoundSpeedConverterWidget cx::SpaceEditWidget cx::StringListSelectWidget cx::TabbedWidget cx::TemporalCalibrationWidget cx::ToolManagerWidget cx::ToolManualCalibrationWidget cx::ToolPropertiesWidget cx::ToolTipCalibrateWidget cx::ToolTipSampleWidget cx::TrackPadWidget cx::TrainingWidget cx::TransferFunction2DColorWidget cx::TransferFunction2DOpacityWidget cx::TransferFunction2DWidget cx::TransferFunction3DWidget cx::TransferFunctionAlphaWidget cx::TransferFunctionColorWidget cx::TransferFunctionWidget cx::Transform3DWidget cx::USAcqusitionWidget cx::VideoConnectionWidget cx::ViewGroupPropertiesWidget cx::VirtualCameraRotationWidget cx::SliderGroupWidget cx::SpinBoxAndDialGroupWidget cx::SpinBoxAndSliderGroupWidget cx::SpinBoxGroupWidget cx::SpinBoxInfiniteSliderGroupWidget

Public Slots

virtual void setModified ()
 

Public Member Functions

 OptimizedUpdateWidget (QWidget *parent=NULL)
 
virtual ~OptimizedUpdateWidget ()
 
void forcePrePaint ()
 

Protected Member Functions

virtual void prePaintEvent ()
 
virtual void paintEvent (QPaintEvent *event)
 

Detailed Description

Interface for all classes following the modified/prepaint paradigm.

Use this class when the widget is modified several times between each repaint. Instead of doing expensive computations upon setModified(), the computations are rather deferred to a pre paint step. This is similar to the VTK modified/update paradigm.

NOTE: In order for this to work, the widget itself must have a visible region. If the widget is completely covered by child widgets or other widgets, no paintEvent will come, and the prePaintEvent will not be called. See ScalarInteractionWidget for an example of how to hack this if necessary.

Author
christiana
Date
Nov 15, 2012

Definition at line 41 of file cxOptimizedUpdateWidget.h.

Constructor & Destructor Documentation

cx::OptimizedUpdateWidget::OptimizedUpdateWidget ( QWidget *  parent = NULL)

Definition at line 20 of file cxOptimizedUpdateWidget.cpp.

virtual cx::OptimizedUpdateWidget::~OptimizedUpdateWidget ( )
inlinevirtual

Definition at line 46 of file cxOptimizedUpdateWidget.h.

Member Function Documentation

void cx::OptimizedUpdateWidget::forcePrePaint ( )

Definition at line 25 of file cxOptimizedUpdateWidget.cpp.

void cx::OptimizedUpdateWidget::paintEvent ( QPaintEvent *  event)
protectedvirtual

Override. Calls prePaintEvent() provided that setModified() has been called.

Reimplemented in cx::TransferFunctionColorWidget, and cx::TransferFunctionAlphaWidget.

Definition at line 30 of file cxOptimizedUpdateWidget.cpp.

void cx::OptimizedUpdateWidget::setModified ( )
virtualslot

Call to trigger a call to prePaintEvent() prior to next paintEvent()

Definition at line 36 of file cxOptimizedUpdateWidget.cpp.


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