~ubuntu-branches/ubuntu/wily/ginkgocadx/wily-proposed

« back to all changes in this revision

Viewing changes to src/cadxcore/export/contracts/ipixelsbluringcontract.cpp

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2014-01-09 07:37:09 UTC
  • mfrom: (1.2.3)
  • Revision ID: package-import@ubuntu.com-20140109073709-rpuh5x3p3finvtze
Tags: 3.6.0.1228.33+dfsg-1
New upstream release [December 2013]

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
*
12
12
*/
13
13
#include "ipixelsbluringcontract.h"
14
 
#include <main/controllers/hangingprotocolcontroller.h>
 
14
#include <main/controllers/modalitysettingscontroller.h>
15
15
#include <api/iwidgetsmanager.h>
16
16
#include <api/ivista.h>
17
17
#include <api/istudycontext.h>
27
27
void GNC::GCS::IPixelsBluringContract::Setup(const std::string& modality)
28
28
{
29
29
        if (GetManager() != NULL && GetManager()->GetVista() != NULL) {
30
 
                GNC::GCS::Ptr<HangingProtocol> tmpHanging = GetManager()->GetVista()->GetEstudio()->hangingProtocol;
31
 
                if (!tmpHanging.IsValid()) {
32
 
                        tmpHanging = new GNC::GCS::HangingProtocol();
33
 
                }
34
 
                GNC::GCS::Ptr<DefaultModalitySettings> ptr = tmpHanging->getModalitySettings(modality);
 
30
                GNC::GCS::Ptr<DefaultModalitySettings> ptr = GNC::GCS::ModalitySettingsController::Instance()->getModalitySettings(modality);
35
31
                if (ptr.IsValid()) {
36
32
                        int interpolationMode = VTK_LINEAR_INTERPOLATION;
37
33
                        switch(ptr->getInterpolationMode())