NorMIT-nav  2023.01.05-dev+develop.0da12
An IGT application
cx::InteractiveCropper Class Reference

#include <cxInteractiveCropper.h>

Inheritance diagram for cx::InteractiveCropper:

Public Slots

void showBoxWidget (bool on)
 
void useCropping (bool on)
 

Signals

void changed ()
 

Public Member Functions

 InteractiveCropper (ActiveDataPtr activeData)
 
void setView (ViewPtr view)
 adds an interactive box widget to the view. Press 'I' to show More...
 
DoubleBoundingBox3D getBoundingBox ()
 get BB in data space More...
 
void setBoundingBox (const DoubleBoundingBox3D &bb_d)
 set BB in reference space More...
 
void resetBoundingBox ()
 set bounding box back to initial size (entire volume) More...
 
DoubleBoundingBox3D getMaxBoundingBox ()
 
bool getUseCropping ()
 
bool getShowBoxWidget () const
 
std::vector< int > getDimensions ()
 

Friends

class CropBoxCallback
 
class CropBoxEnableCallback
 

Detailed Description

Helper class for cropping the active volume using a bounding box. The bounding box can be set either explicitly or using a vtkBoxWidget.

Definition at line 49 of file cxInteractiveCropper.h.

Constructor & Destructor Documentation

◆ InteractiveCropper()

cx::InteractiveCropper::InteractiveCropper ( ActiveDataPtr  activeData)
explicit

Definition at line 95 of file cxInteractiveCropper.cpp.

Member Function Documentation

◆ changed

void cx::InteractiveCropper::changed ( )
signal

◆ getBoundingBox()

DoubleBoundingBox3D cx::InteractiveCropper::getBoundingBox ( )

get BB in data space

get current cropping box in ref coords

Definition at line 174 of file cxInteractiveCropper.cpp.

◆ getDimensions()

std::vector< int > cx::InteractiveCropper::getDimensions ( )

Definition at line 241 of file cxInteractiveCropper.cpp.

◆ getMaxBoundingBox()

DoubleBoundingBox3D cx::InteractiveCropper::getMaxBoundingBox ( )

return the largest useful bounding box for the current selection

Definition at line 323 of file cxInteractiveCropper.cpp.

◆ getShowBoxWidget()

bool cx::InteractiveCropper::getShowBoxWidget ( ) const

Definition at line 234 of file cxInteractiveCropper.cpp.

◆ getUseCropping()

bool cx::InteractiveCropper::getUseCropping ( )

Definition at line 227 of file cxInteractiveCropper.cpp.

◆ resetBoundingBox()

void cx::InteractiveCropper::resetBoundingBox ( )

set bounding box back to initial size (entire volume)

Definition at line 213 of file cxInteractiveCropper.cpp.

◆ setBoundingBox()

void cx::InteractiveCropper::setBoundingBox ( const DoubleBoundingBox3D bb_d)

set BB in reference space

Definition at line 181 of file cxInteractiveCropper.cpp.

◆ setView()

void cx::InteractiveCropper::setView ( ViewPtr  view)

adds an interactive box widget to the view. Press 'I' to show

Definition at line 127 of file cxInteractiveCropper.cpp.

◆ showBoxWidget

void cx::InteractiveCropper::showBoxWidget ( bool  on)
slot

Definition at line 155 of file cxInteractiveCropper.cpp.

◆ useCropping

void cx::InteractiveCropper::useCropping ( bool  on)
slot

Definition at line 187 of file cxInteractiveCropper.cpp.

Friends And Related Function Documentation

◆ CropBoxCallback

friend class CropBoxCallback
friend

Definition at line 73 of file cxInteractiveCropper.h.

◆ CropBoxEnableCallback

friend class CropBoxEnableCallback
friend

Definition at line 74 of file cxInteractiveCropper.h.


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