Skip to content
Snippets Groups Projects
Commit 5e94990d authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

ENH: add center accessor

parent 5be7e4a6
Branches
Tags
No related merge requests found
...@@ -169,6 +169,14 @@ public: ...@@ -169,6 +169,14 @@ public:
itkSetStringMacro(Label); itkSetStringMacro(Label);
itkGetStringMacro(Label); itkGetStringMacro(Label);
/** Set center*/
void SetCenter(typename ImageType::IndexType index)
{
m_RenderingModel->SetExtractRegionCenter(index);
m_RenderingModel->SetScaledExtractRegionCenter(index);
m_RenderingModel->Update();
}
/** Update and show the widget (you should call Fl::run() to hold to /** Update and show the widget (you should call Fl::run() to hold to
* display */ * display */
void Update(); void Update();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment