dip::viewer::ViewPort class

Handles interaction in a certain display area to control the dip::viewer::ViewingOptions model

Contents

Derived classes

class dip::viewer::ControlViewPort
Allows the user to control how the image is displayed. more...
class dip::viewer::HistogramViewPort
Controls grey-value mapping range and shows color mapping. more...
class dip::viewer::ImageViewPort
more...
class dip::viewer::LinkViewPort
Handles viewer linking. more...
class dip::viewer::SliceViewPort
more...
class dip::viewer::StatusViewPort
Displays the dip::viewer::Viewer’s status. more...
class dip::viewer::TensorViewPort
Allows the user to control which tensor elements are visualized. more...

Functions

void click(int , int , int , int , int ) virtual
Handles mouse clicking interaction
auto height() const -> int
Viewport height
void motion(int , int , int ) virtual
Handles mouse dragging interaction
void place(int x, int y, int width, int height) virtual
Places the viewport
void rebuild() virtual
Prepares the associated view for rendering
void render() virtual
Renders the associated view
void screenToView(int x, int y, double* ix, double* iy) virtual
Converts screen coordinates into local view coordinates
auto viewer() -> class Viewer*
Parent viewer
auto width() const -> int
Viewport width
auto x() const -> int
Screen coordinate of left edge
auto y() const -> int
Screen coordinate of bottom edge

Function documentation

void place( int x, int y, int width, int height) virtual

Places the viewport

void rebuild( ) virtual

Prepares the associated view for rendering

void render( ) virtual

Renders the associated view

void click( int , int , int , int , int ) virtual

Handles mouse clicking interaction

void motion( int , int , int ) virtual

Handles mouse dragging interaction

void screenToView( int x, int y, double* ix, double* iy) virtual

Converts screen coordinates into local view coordinates

class Viewer* viewer( )

Parent viewer

int x( ) const

Screen coordinate of left edge

int y( ) const

Screen coordinate of bottom edge

int width( ) const

Viewport width

int height( ) const

Viewport height