#include <OrthoViewWidget.hh>
|
| OrthoViewWidget (MultiChannelModel *model, QWidget *parent=0, Qt::WindowFlags f=0) |
|
| ~OrthoViewWidget () |
|
void | addChannel (ChannelSpecs *channel) |
|
int | fontSize () const |
|
bool | interpolation () const |
|
MultiChannelModel * | model () const |
|
OrthoViewPlane * | orthoViewPlane (int orthogonalDimension) |
|
void | paint (QPainter &painter) |
|
void | paint (QXmlStreamWriter &svgStream, blitz::TinyVector< double, 3 > const &shapePx, double marginPx, blitz::TinyVector< double, 3 > const &lowerBoundUm, blitz::TinyVector< double, 3 > const &upperBoundUm, double scaleBarLengthUm, std::string const &font, double fontSizePt, iRoCS::ProgressReporter *pr=NULL) |
|
blitz::TinyVector< double, 3 > | positionUm () const |
|
blitz::TinyVector< float, 3 > | px2Um (blitz::TinyVector< float, 3 > const &positionPx) |
| Get the model micrometer position of the given pixel position. More...
|
|
double | px2Um (double positionPx, int dimension) |
| Get the model micrometer position of the given pixel position along the specified dimension. More...
|
|
void | removeChannel (ChannelSpecs *channel) |
|
double | scaleToPx (double distanceUm) |
| Get the pixel distance in the view for the given micrometer distance. More...
|
|
double | scaleToUm (double distancePx) |
| Get the micrometer distance for the given pixel distance in the view. More...
|
|
bool | showHelperLines () const |
|
bool | snapToVoxelGrid () const |
|
blitz::TinyVector< float, 3 > | um2Px (blitz::TinyVector< float, 3 > const &positionUm) |
| Get the pixel position of the given model position in micrometers in the view widget. More...
|
|
double | um2Px (double positionUm, int dimension) |
| Get the pixel position of the given model position in micrometers in the view widget for the specified dimension. More...
|
|
ViewWidget::ViewType | viewType () const |
|
OrthoViewPlane * | xyView () |
|
OrthoViewPlane * | xzView () |
|
double | zoom () const |
|
OrthoViewPlane * | zyView () |
|
Definition at line 50 of file OrthoViewWidget.hh.
◆ ViewType
Enumerator |
---|
OrthoView | |
OpenGlRenderingView | |
Definition at line 48 of file ViewWidget.hh.
◆ OrthoViewWidget()
OrthoViewWidget::OrthoViewWidget |
( |
MultiChannelModel * |
model, |
|
|
QWidget * |
parent = 0 , |
|
|
Qt::WindowFlags |
f = 0 |
|
) |
| |
◆ ~OrthoViewWidget()
OrthoViewWidget::~OrthoViewWidget |
( |
| ) |
|
◆ viewType()
◆ addChannel()
◆ removeChannel()
void OrthoViewWidget::removeChannel |
( |
ChannelSpecs * |
channel | ) |
|
|
virtual |
◆ xyView()
◆ xzView()
◆ zyView()
◆ orthoViewPlane()
OrthoViewPlane* OrthoViewWidget::orthoViewPlane |
( |
int |
orthogonalDimension | ) |
|
◆ interpolation()
bool OrthoViewWidget::interpolation |
( |
| ) |
const |
◆ zoom()
double OrthoViewWidget::zoom |
( |
| ) |
const |
◆ fontSize()
int OrthoViewWidget::fontSize |
( |
| ) |
const |
◆ um2Px() [1/2]
blitz::TinyVector<float,3> OrthoViewWidget::um2Px |
( |
blitz::TinyVector< float, 3 > const & |
positionUm | ) |
|
Get the pixel position of the given model position in micrometers in the view widget.
This transformation respects the model bounding box and the currently set zoom of the view.
- Parameters
-
positionUm | The micrometer position to locate in the view widget |
- Returns
- The corresponding pixel position in the view widget.
◆ scaleToPx()
double OrthoViewWidget::scaleToPx |
( |
double |
distanceUm | ) |
|
Get the pixel distance in the view for the given micrometer distance.
- Parameters
-
distanceUm | The micrometer distance |
- Returns
- The same distance in pixels.
◆ um2Px() [2/2]
double OrthoViewWidget::um2Px |
( |
double |
positionUm, |
|
|
int |
dimension |
|
) |
| |
Get the pixel position of the given model position in micrometers in the view widget for the specified dimension.
This transformation respects the model bounding box and the currently set zoom of the view.
- Parameters
-
positionUm | The micrometer position to locate in the view widget |
dimension | The vector component of the position to evaluate |
- Returns
- The corresponding pixel position along the given dimension in the view widget.
◆ px2Um() [1/2]
blitz::TinyVector<float,3> OrthoViewWidget::px2Um |
( |
blitz::TinyVector< float, 3 > const & |
positionPx | ) |
|
Get the model micrometer position of the given pixel position.
This transformation respects the model bounding box and the currently set zoom of the view.
- Parameters
-
positionPx | The pixel position in the view |
- Returns
- The corresponding micrometer position in the model.
◆ scaleToUm()
double OrthoViewWidget::scaleToUm |
( |
double |
distancePx | ) |
|
Get the micrometer distance for the given pixel distance in the view.
- Parameters
-
distancePx | The pixel distance |
- Returns
- The same distance in micrometers.
◆ px2Um() [2/2]
double OrthoViewWidget::px2Um |
( |
double |
positionPx, |
|
|
int |
dimension |
|
) |
| |
Get the model micrometer position of the given pixel position along the specified dimension.
This transformation respects the model bounding box and the currently set zoom of the view.
- Parameters
-
positionPx | The pixel position in the view |
dimension | The vector component of the position to evaluate |
- Returns
- The corresponding micrometer position in the model.
◆ paint() [1/2]
void OrthoViewWidget::paint |
( |
QPainter & |
painter | ) |
|
◆ paint() [2/2]
void OrthoViewWidget::paint |
( |
QXmlStreamWriter & |
svgStream, |
|
|
blitz::TinyVector< double, 3 > const & |
shapePx, |
|
|
double |
marginPx, |
|
|
blitz::TinyVector< double, 3 > const & |
lowerBoundUm, |
|
|
blitz::TinyVector< double, 3 > const & |
upperBoundUm, |
|
|
double |
scaleBarLengthUm, |
|
|
std::string const & |
font, |
|
|
double |
fontSizePt, |
|
|
iRoCS::ProgressReporter * |
pr = NULL |
|
) |
| |
◆ zoomChanged
void OrthoViewWidget::zoomChanged |
( |
double |
zoom | ) |
|
|
signal |
◆ redraw
virtual void OrthoViewWidget::redraw |
( |
| ) |
|
|
virtualslot |
◆ updateShape
void OrthoViewWidget::updateShape |
( |
| ) |
|
|
slot |
◆ setInterpolation
void OrthoViewWidget::setInterpolation |
( |
bool |
interpolation | ) |
|
|
slot |
◆ setZoom
void OrthoViewWidget::setZoom |
( |
double |
zoom | ) |
|
|
slot |
◆ updatePlaneData
◆ snapToVoxelGrid()
bool ViewWidget::snapToVoxelGrid |
( |
| ) |
const |
|
inherited |
◆ showHelperLines()
bool ViewWidget::showHelperLines |
( |
| ) |
const |
|
inherited |
◆ positionUm()
blitz::TinyVector<double,3> ViewWidget::positionUm |
( |
| ) |
const |
|
inherited |
◆ model()
◆ positionChanged
void ViewWidget::positionChanged |
( |
const blitz::TinyVector< double, 3 > & |
positionUm | ) |
|
|
signalinherited |
◆ setSnapToVoxelGrid
virtual void ViewWidget::setSnapToVoxelGrid |
( |
bool |
snap | ) |
|
|
virtualslotinherited |
◆ setShowHelperLines
virtual void ViewWidget::setShowHelperLines |
( |
bool |
show | ) |
|
|
virtualslotinherited |
◆ setPositionUm
virtual void ViewWidget::setPositionUm |
( |
const blitz::TinyVector< double, 3 > & |
positionUm | ) |
|
|
virtualslotinherited |
◆ OrthoViewPlane
◆ p_model
The documentation for this class was generated from the following file: