CustusX  2023.01.05-dev+develop.0da12
An IGT application
cx::GraphicalBox Class Reference

#include <cxGraphicalBox.h>

Inheritance diagram for cx::GraphicalBox:

Signals

void changed ()
 

Public Member Functions

 GraphicalBox ()
 
virtual ~GraphicalBox ()
 
void setRenderWindow (vtkRenderWindowPtr renderWindow)
 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 d space More...
 
void setMaxBoundingBox (const DoubleBoundingBox3D &bb_d)
 set BB in d space More...
 
void setPosition (const Transform3D &rMd)
 set BB position More...
 
DoubleBoundingBox3D getMaxBoundingBox ()
 
bool getInteractive () const
 
void setInteractive (bool on)
 
bool getVisible () const
 
void setVisible (bool on)
 

Friends

class GraphicalBoxCallback
 
class GraphicalBoxEnableCallback
 

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 43 of file cxGraphicalBox.h.

Constructor & Destructor Documentation

cx::GraphicalBox::GraphicalBox ( )
explicit

Definition at line 88 of file cxGraphicalBox.cpp.

cx::GraphicalBox::~GraphicalBox ( )
virtual

Definition at line 97 of file cxGraphicalBox.cpp.

Member Function Documentation

void cx::GraphicalBox::changed ( )
signal
DoubleBoundingBox3D cx::GraphicalBox::getBoundingBox ( )

get BB in data space

get current cropping box in ref coords

Definition at line 113 of file cxGraphicalBox.cpp.

bool cx::GraphicalBox::getInteractive ( ) const

Definition at line 161 of file cxGraphicalBox.cpp.

DoubleBoundingBox3D cx::GraphicalBox::getMaxBoundingBox ( )

return the largest useful bounding box for the current selection

Definition at line 169 of file cxGraphicalBox.cpp.

bool cx::GraphicalBox::getVisible ( ) const

Definition at line 147 of file cxGraphicalBox.cpp.

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

set BB in d space

Definition at line 118 of file cxGraphicalBox.cpp.

void cx::GraphicalBox::setInteractive ( bool  on)

Definition at line 152 of file cxGraphicalBox.cpp.

void cx::GraphicalBox::setMaxBoundingBox ( const DoubleBoundingBox3D bb_d)

set BB in d space

void cx::GraphicalBox::setPosition ( const Transform3D rMd)

set BB position

Definition at line 128 of file cxGraphicalBox.cpp.

void cx::GraphicalBox::setRenderWindow ( vtkRenderWindowPtr  renderWindow)

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

Definition at line 105 of file cxGraphicalBox.cpp.

void cx::GraphicalBox::setVisible ( bool  on)

Definition at line 138 of file cxGraphicalBox.cpp.

Friends And Related Function Documentation

friend class GraphicalBoxCallback
friend

Definition at line 77 of file cxGraphicalBox.h.

friend class GraphicalBoxEnableCallback
friend

Definition at line 78 of file cxGraphicalBox.h.


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