<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Ok thank you Dean.<br>
    <br>
    <div class="moz-cite-prefix">Am 08.03.2016 um 15:43 schrieb DL I:<br>
    </div>
    <blockquote
cite="mid:CABX+vo=hARPGsp1He4ixNvKWmb-svKZSGzTOO6ymhgi1FpHU0w@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>
                    <div>
                      <div>
                        <div>Hi Imre,<br>
                          <br>
                        </div>
                        it sounds like you want to set a specific pair
                        of window/level values instead of<br>
                      </div>
                      interactively setting them by mouse movement. 
                      vtkResliceImageViewer is<br>
                    </div>
                    a subclass of vtkImageViewer2 which has methods to
                    set window and level values:<br>
                  </div>
                  void SetColorWindow(double w)<br>
                </div>
                void SetColorLevel(double l)<br>
                <br>
              </div>
              If you dont want the viewer's vtkInteractorStyleImage to
              do window/levelling you<br>
            </div>
            can handle those events and process them yourself by
            subclassing your own <br>
          </div>
          interactor style from vtkInteractorStyleImage.<br>
          <br>
        </div>
        - Dean<br>
        <div>
          <div>
            <div>
              <div><br>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Mar 8, 2016 at 8:05 AM, Imre
          Goretzki <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:goretzki.imre@gmail.com" target="_blank">goretzki.imre@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey guys,<br>
            <br>
            I have a question about the attributes when holding down the
            left mouse button while moving the cursor up and down<br>
            in the render window.<br>
            <br>
            Set up is a combination of QVTKWidget and
            vtkResliceImageViewer:<br>
            <br>
            view = vtkSmartPointer<vtkResliceImageViewer><br>
            <br>
            ...<br>
            <br>
            view->SetInputData(vtkImageData);<br>
ui->display->SetRenderWindow(view->GetRenderWindow())<br>
view->SetupInteractor(ui->display->GetRenderWindow()->GetInteractor());<br>
            view->Render();<br>
            ui->display->update();<br>
            <br>
            ui->display: QVTKWidget<br>
            view: vtkSmartPointer<vtkResliceImageViewer><br>
            <br>
            Whenever I hold the left mouse button and move the cursor,
            the displayed image becomes darker (while moving up)<br>
            and brighter (while moving down) respectively.<br>
            <br>
            I want to set the attribute to a certain level. I guess I
            have to override some events, but I need to know the
            attribute that will be set / changed during the described
            processes.<br>
            <br>
            Thanks in advance<br>
            <br>
            Imre<br>
            _______________________________________________<br>
            Powered by <a moz-do-not-send="true"
              href="http://www.kitware.com" rel="noreferrer"
              target="_blank">www.kitware.com</a><br>
            <br>
            Visit other Kitware open-source projects at <a
              moz-do-not-send="true"
              href="http://www.kitware.com/opensource/opensource.html"
              rel="noreferrer" target="_blank"><a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></a><br>
            <br>
            Please keep messages on-topic and check the VTK FAQ at: <a
              moz-do-not-send="true"
              href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer"
              target="_blank"><a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a></a><br>
            <br>
            Search the list archives at: <a moz-do-not-send="true"
              href="http://markmail.org/search/?q=vtkusers"
              rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
            <br>
            Follow this link to subscribe/unsubscribe:<br>
            <a moz-do-not-send="true"
              href="http://public.kitware.com/mailman/listinfo/vtkusers"
              rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>